Class RepositoryRuntimeExceptionMapper

java.lang.Object
org.fcrepo.http.commons.exceptionhandlers.RepositoryRuntimeExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<org.fcrepo.kernel.api.exception.RepositoryRuntimeException>, ExceptionDebugLogging

@Provider public class RepositoryRuntimeExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<org.fcrepo.kernel.api.exception.RepositoryRuntimeException>, ExceptionDebugLogging
Since:
9/13/14
Author:
cabeer
  • Constructor Details

    • RepositoryRuntimeExceptionMapper

      public RepositoryRuntimeExceptionMapper(@Context javax.ws.rs.ext.Providers providers)
      Get the context Providers so we can rethrow the cause to an appropriate handler
      Parameters:
      providers - the providers
  • Method Details

    • toResponse

      public javax.ws.rs.core.Response toResponse(org.fcrepo.kernel.api.exception.RepositoryRuntimeException e)
      Specified by:
      toResponse in interface javax.ws.rs.ext.ExceptionMapper<org.fcrepo.kernel.api.exception.RepositoryRuntimeException>