Package org.fcrepo.http.commons.exceptionhandlers
package org.fcrepo.http.commons.exceptionhandlers
A variety of JAX-RS
ExceptionMappers handlers.- Author:
- osmandin
-
ClassDescriptionTranslate Java Security AccessControlExceptions into HTTP 403 Forbidden errorsFor generic BadRequestExceptions.A mapper for memento creation exceptionsConstraintExceptionMapper<T extends org.fcrepo.kernel.api.exception.ConstraintViolationException>Abstract class for constraint violation subclassesExternalContentException mapperIf an External Content Link header isn't formatted correctly or missing something, return a Bad Request error.For invalid namespace exceptions on CRUD actions for nodes/datastreamsMap an GhostNodeException to a response.If a client-provided header value fails to parse, return an HTTP 400 Bad Request.Translate InsufficientStorageException errors into HTTP error codesIf an HTTP request's processing is interrupted, return an HTTP 503 Service Unavailable.Translate InvalidACLExceptions into HTTP 409 CONFLICT errorsTranslate InvalidChecksumException errors into reasonable HTTP error codesFor invalid namespace exceptions on CRUD actions for nodes/datastreamsThe class translates
InvalidResourceIdentifierExceptions to its proper response code.Catch ItemNotFoundExceptionIf an injected JSON resource fails to parse, return an HTTP 400 Bad Request.Handle MementoDatetimeFormatException with HTTP 400 Bad Request.Mapper to display all the various constrainedby links and messages.Handle Jersey ParamExceptionCatch PathNotFoundExceptionCatch PathNotFoundRuntimeException(s)Maps PersistentItemConflictException to an appropriate http response.Maps PreconditionException to an appropriate http response.Handles Sparql query parsing exceptions thrown when querying or updating.Provide a quasi-useful stacktrace when a generic RepositoryException is caughtIf a session is requested that has been closed (or never existed), just return an HTTP 410 Gone.Mapper for transaction exceptionsTranslate UnsupportedAlgorithmException errors into reasonable HTTP error codesUnsupportedMediaType mapperHandle Jersey WebApplicationExceptionCatch all the exceptions!