Package org.jboss.resteasy.core
Class ExceptionHandler
- java.lang.Object
-
- org.jboss.resteasy.core.ExceptionHandler
-
public class ExceptionHandler extends Object
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanmapperExecutedprotected ResteasyProviderFactoryImplproviderFactoryprotected Set<String>unwrappedExceptions
-
Constructor Summary
Constructors Constructor Description ExceptionHandler(ResteasyProviderFactory providerFactory, Set<String> unwrappedExceptions)
-
Method Summary
-
-
-
Field Detail
-
providerFactory
protected ResteasyProviderFactoryImpl providerFactory
-
mapperExecuted
protected boolean mapperExecuted
-
-
Constructor Detail
-
ExceptionHandler
public ExceptionHandler(ResteasyProviderFactory providerFactory, Set<String> unwrappedExceptions)
-
-
Method Detail
-
isMapperExecuted
public boolean isMapperExecuted()
-
executeExactExceptionMapper
protected Response executeExactExceptionMapper(Throwable exception, RESTEasyTracingLogger logger)
If there exists an Exception mapper for exception, execute it, otherwise, do NOT recurse up class hierarchy of exception.- Parameters:
exception- exceptionlogger- logger- Returns:
- response response object
-
executeExactExceptionMapper
@Deprecated public Response executeExactExceptionMapper(Throwable exception)
Deprecated.
-
executeExceptionMapperForClass
protected Response executeExceptionMapperForClass(Throwable exception, Class clazz, RESTEasyTracingLogger logger)
-
executeExceptionMapperForClass
@Deprecated public Response executeExceptionMapperForClass(Throwable exception, Class clazz)
Deprecated.
-
handleApplicationException
protected Response handleApplicationException(HttpRequest request, ApplicationException e, RESTEasyTracingLogger logger)
-
executeExceptionMapper
protected Response executeExceptionMapper(Throwable exception, RESTEasyTracingLogger logger)
Execute an ExceptionMapper if one exists for the given exception. Recurse to base class if not found.- Parameters:
exception- exceptionlogger- logger- Returns:
- true if an ExceptionMapper was found and executed
-
executeExceptionMapper
@Deprecated public Response executeExceptionMapper(Throwable exception)
Deprecated.
-
unwrapException
protected Response unwrapException(HttpRequest request, Throwable e, RESTEasyTracingLogger logger)
-
handleFailure
protected Response handleFailure(HttpRequest request, Failure failure)
-
handleClientErrorException
protected Response handleClientErrorException(HttpRequest request, ClientErrorException e)
-
handleWriterException
protected Response handleWriterException(HttpRequest request, WriterException e, RESTEasyTracingLogger logger)
-
handleReaderException
protected Response handleReaderException(HttpRequest request, ReaderException e, RESTEasyTracingLogger logger)
-
handleWebApplicationException
protected Response handleWebApplicationException(WebApplicationException wae)
-
handleException
public Response handleException(HttpRequest request, Throwable e)
-
-