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 Summary
ConstructorsConstructorDescriptionRepositoryRuntimeExceptionMapper(javax.ws.rs.ext.Providers providers) Get the context Providers so we can rethrow the cause to an appropriate handler -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsetoResponse(org.fcrepo.kernel.api.exception.RepositoryRuntimeException e) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.fcrepo.http.commons.exceptionhandlers.ExceptionDebugLogging
debugException
-
Constructor Details
-
RepositoryRuntimeExceptionMapper
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:
toResponsein interfacejavax.ws.rs.ext.ExceptionMapper<org.fcrepo.kernel.api.exception.RepositoryRuntimeException>
-