Package org.jboss.resteasy.core
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.Response
executeExactExceptionMapper
(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.Response
executeExceptionMapper
(Throwable exception) Execute an ExceptionMapper if one exists for the given exception.javax.ws.rs.core.Response
executeExceptionMapperForClass
(Throwable exception, Class clazz) protected javax.ws.rs.core.Response
javax.ws.rs.core.Response
handleException
(HttpRequest request, Throwable e) protected javax.ws.rs.core.Response
handleFailure
(HttpRequest request, Failure failure) protected javax.ws.rs.core.Response
handleReaderException
(HttpRequest request, ReaderException e) protected javax.ws.rs.core.Response
handleWebApplicationException
(javax.ws.rs.WebApplicationException wae) protected javax.ws.rs.core.Response
handleWriterException
(HttpRequest request, WriterException e) boolean
protected javax.ws.rs.core.Response
unwrapException
(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
-