Class RepositoryRuntimeExceptionMapper
- java.lang.Object
-
- org.fcrepo.http.commons.exceptionhandlers.RepositoryRuntimeExceptionMapper
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<RepositoryRuntimeException>
,ExceptionDebugLogging
@Provider public class RepositoryRuntimeExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<RepositoryRuntimeException>, ExceptionDebugLogging
- Since:
- 9/13/14
- Author:
- cabeer
-
-
Constructor Summary
Constructors Constructor Description RepositoryRuntimeExceptionMapper(javax.ws.rs.ext.Providers providers)
Get the context Providers so we can rethrow the cause to an appropriate handler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
toResponse(RepositoryRuntimeException e)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.fcrepo.http.commons.exceptionhandlers.ExceptionDebugLogging
debugException
-
-
-
-
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(RepositoryRuntimeException e)
- Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<RepositoryRuntimeException>
-
-