Class RepositoryRuntimeExceptionMapper

    • Constructor Detail

      • 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 Detail

      • 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>