NodeNotFoundException nnfe = new NodeNotFoundException("Sibling folders not found."); nnfe.initCause(ne); throw nnfe;
/** * getRequestRootFolder - select root folder view for given profile locators * * @param requestProfileLocators map of profile locators for request * @param requestUserPrincipal request user principal * @param requestForceReservedVisible force reserved/hidden folders visible for request * @return root folder view for request * @throws NodeNotFoundException if not found * @throws SecurityException if view access not granted */ public Folder getRequestRootFolder(Map<String,ProfileLocator> requestProfileLocators, String requestUserPrincipal, boolean requestForceReservedVisible) throws NodeNotFoundException { // validate and update session profile locators if modified if (updateSessionProfileLocators(requestProfileLocators, requestUserPrincipal, requestForceReservedVisible)) { // valid site view required from session profile locators AbstractSiteView view = getSiteView(); if (view != null) { // return root folder view from session site view return view.getRootFolderView(); } } // no root folder available throw new NodeNotFoundException("No root folder available in site view."); }
log.error(nnfe.getMessage(), nnfe); try request.getResponse().sendError(HttpServletResponse.SC_NOT_FOUND, nnfe.getMessage());
throw new NodeNotFoundException("No request page available in site view.");
NodeNotFoundException nnfe = new NodeNotFoundException("Sibling pages not found."); nnfe.initCause(ne); throw nnfe;
throw new NodeNotFoundException("No dynamic page matched " + requestPath + " request in site view.");
NodeNotFoundException nnfe = new NodeNotFoundException("Root links not found."); nnfe.initCause(ne); throw nnfe;
throw new NodeNotFoundException("No page matched " + requestPath + " request in site view.");
throw new NodeNotFoundException("Specified path " + path + " not found."); NodeNotFoundException nnfe = new NodeNotFoundException("Specified path " + path + " not found."); nnfe.initCause(ne); throw nnfe; NodeNotFoundException nnfeWrapper = new NodeNotFoundException("Specified path " + path + " not found."); nnfeWrapper.initCause(nnfe); throw nnfeWrapper; NodeNotFoundException nnfe = new NodeNotFoundException("Specified path " + path + " not found."); nnfe.initCause(ne); throw nnfe; throw new NodeNotFoundException("Specified path " + path + " not found or viewable/visible."); throw new NodeNotFoundException("Specified path " + path + " not found or viewable/visible.");
throw new NodeNotFoundException("Fragment definition for "+refId+" not found."); NodeNotFoundException nnfe = new NodeNotFoundException("Fragment definition for "+refId+" not found."); nnfe.initCause(ne); throw nnfe;