Package org.fcrepo.server.errors.servletExceptionExtensions

Examples of org.fcrepo.server.errors.servletExceptionExtensions.NotFound404Exception


            pw.flush();


        } catch (ObjectNotFoundException e) {
            logger.error("Object not found: " + pid + " - " + e.getMessage());
            throw new NotFound404Exception(request,
                                           actionLabel,
                                           e.getMessage(),
                                           new String[0]);
        } catch (DatastreamNotFoundException e) {
            logger.error("Datastream not found: " + pid + "/" + dsID + " - " + e.getMessage());
            throw new NotFound404Exception(request,
                                           actionLabel,
                                           e.getMessage(),
                                           new String[0]);

View Full Code Here


                        + "request");
            }
        } catch (MethodNotFoundException e) {
            logger.error("Method not found for request: " + requestURI
                    + " (actionLabel=" + actionLabel + ")", e);
            throw new NotFound404Exception("", e, request, actionLabel, e
                    .getMessage(), new String[0]);
        } catch (DatastreamNotFoundException e) {
            logger.error("Datastream not found for request: " + requestURI
                    + " (actionLabel=" + actionLabel + ")", e);
            throw new NotFound404Exception("", e, request, actionLabel, e
                    .getMessage(), new String[0]);
        } catch (ObjectNotFoundException e) {
            logger.error("Object not found for request: " + requestURI
                    + " (actionLabel=" + actionLabel + ")", e);
            throw new NotFound404Exception("", e, request, actionLabel, e
                    .getMessage(), new String[0]);
        } catch (DisseminationException e) {
            logger.error("Dissemination failed: " + requestURI
                    + " (actionLabel=" + actionLabel + ")", e);
            throw new NotFound404Exception("", e, request, actionLabel, e
                    .getMessage(), new String[0]);
        } catch (ObjectNotInLowlevelStorageException e) {
            logger.error("Object or datastream not found for request: "
                    + requestURI + " (actionLabel=" + actionLabel + ")", e);
            throw new NotFound404Exception("", e, request, actionLabel, e
                    .getMessage(), new String[0]);
        } catch (AuthzException ae) {
            logger.error("Authorization failed for request: " + requestURI
                    + " (actionLabel=" + actionLabel + ")", ae);
            throw RootException.getServletException(ae,
View Full Code Here

            listMethods(context, PID, asOfDateTime, xml, request, response);
            logger.debug("Finished listing methods");
        } catch (ObjectNotFoundException e) {
            logger.error("Object not found for request: " + requestURI
                    + " (actionLabel=" + ACTION_LABEL + ")", e);
            throw new NotFound404Exception(request,
                                           ACTION_LABEL,
                                           "",
                                           new String[0]);
        } catch (DisseminationException e) {
            logger.error("Error Listing Methods: " + requestURI + " (actionLabel="
                    + ACTION_LABEL + ")", e);
            throw new NotFound404Exception("Error Listing Methods",
                                           e,
                                           request,
                                           ACTION_LABEL,
                                           "",
                                           new String[0]);
        } catch (ObjectNotInLowlevelStorageException e) {
            logger.error("Object not found for request: " + requestURI
                    + " (actionLabel=" + ACTION_LABEL + ")", e);
            throw new NotFound404Exception(request,
                                           ACTION_LABEL,
                                           "",
                                           new String[0]);
        } catch (AuthzException ae) {
            logger.error("Authorization error listing methods", ae);
View Full Code Here

            listDatastreams(context, PID, asOfDateTime, xml, request, response);
            logger.debug("Finished listing datastreams");
        } catch (ObjectNotFoundException e) {
            logger.error("Object not found for request: " + requestURI
                    + " (actionLabel=" + ACTION_LABEL + ")", e);
            throw new NotFound404Exception(request,
                                           ACTION_LABEL,
                                           "",
                                           new String[0]);
        } catch (ObjectNotInLowlevelStorageException e) {
            logger.error("Object not found for request: " + requestURI
                    + " (actionLabel=" + ACTION_LABEL + ")", e);
            throw new NotFound404Exception(request,
                                           ACTION_LABEL,
                                           "",
                                           new String[0]);
        } catch (AuthzException ae) {
            logger.error("Authorization failed while listing datastreams", ae);
View Full Code Here

            getObjectHistory(context, PID, xml, response);
        } catch (ObjectNotFoundException e) {
            logger.error("Object not found for request: "
                    + request.getRequestURI() + " (actionLabel=" + ACTION_LABEL
                    + ")", e);
            throw new NotFound404Exception(request,
                                           ACTION_LABEL,
                                           "",
                                           new String[0]);
        } catch (ObjectNotInLowlevelStorageException e) {
            logger.error("Object not found for request: "
                    + request.getRequestURI() + " (actionLabel=" + ACTION_LABEL
                    + ")", e);
            throw new NotFound404Exception(request,
                                           ACTION_LABEL,
                                           "",
                                           new String[0]);
        } catch (AuthzException ae) {
            throw RootException.getServletException(ae,
View Full Code Here

TOP

Related Classes of org.fcrepo.server.errors.servletExceptionExtensions.NotFound404Exception

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.