Class ExceptionHandler
java.lang.Object
org.jboss.resteasy.core.ExceptionHandler
- Version:
- $Revision: 1 $
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExceptionHandler(ResteasyProviderFactory providerFactory, Set<String> unwrappedExceptions) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponseexecuteExactExceptionMapper(Throwable exception) If there exists an Exception mapper for exception, execute it, otherwise, do NOT recurse up class hierarchy of exception.javax.ws.rs.core.ResponseexecuteExceptionMapper(Throwable exception) Execute an ExceptionMapper if one exists for the given exception.javax.ws.rs.core.ResponseexecuteExceptionMapperForClass(Throwable exception, Class clazz) protected javax.ws.rs.core.Responsejavax.ws.rs.core.ResponsehandleException(HttpRequest request, Throwable e) protected javax.ws.rs.core.ResponsehandleFailure(HttpRequest request, Failure failure) protected javax.ws.rs.core.ResponsehandleReaderException(HttpRequest request, ReaderException e) protected javax.ws.rs.core.ResponsehandleWebApplicationException(javax.ws.rs.WebApplicationException wae) protected javax.ws.rs.core.ResponsehandleWriterException(HttpRequest request, WriterException e) booleanprotected javax.ws.rs.core.ResponseunwrapException(HttpRequest request, Throwable e)
-
Field Details
-
providerFactory
-
unwrappedExceptions
-
mapperExecuted
protected boolean mapperExecuted
-
-
Constructor Details
-
ExceptionHandler
-
-
Method Details
-
isMapperExecuted
public boolean isMapperExecuted() -
executeExactExceptionMapper
If there exists an Exception mapper for exception, execute it, otherwise, do NOT recurse up class hierarchy of exception.- Parameters:
exception-- Returns:
-
executeExceptionMapperForClass
-
handleApplicationException
protected javax.ws.rs.core.Response handleApplicationException(HttpRequest request, ApplicationException e) -
executeExceptionMapper
Execute an ExceptionMapper if one exists for the given exception. Recurse to base class if not found- Parameters:
exception-- Returns:
- true if an ExceptionMapper was found and executed
-
unwrapException
-
handleFailure
-
handleWriterException
-
handleReaderException
-
handleWebApplicationException
protected javax.ws.rs.core.Response handleWebApplicationException(javax.ws.rs.WebApplicationException wae) -
handleException
-