Class ExceptionHandler
java.lang.Object
org.jboss.resteasy.core.ExceptionHandler
-
Field Summary
-
Constructor Summary
ConstructorDescriptionExceptionHandler
(ResteasyProviderFactory providerFactory, Set<String> unwrappedExceptions) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
executeExactExceptionMapper
(Throwable exception) Deprecated.protected jakarta.ws.rs.core.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.jakarta.ws.rs.core.Response
executeExceptionMapper
(Throwable exception) Deprecated.protected jakarta.ws.rs.core.Response
executeExceptionMapper
(Throwable exception, RESTEasyTracingLogger logger) Execute an ExceptionMapper if one exists for the given exception.jakarta.ws.rs.core.Response
executeExceptionMapperForClass
(Throwable exception, Class clazz) Deprecated.protected jakarta.ws.rs.core.Response
executeExceptionMapperForClass
(Throwable exception, Class clazz, RESTEasyTracingLogger logger) protected jakarta.ws.rs.core.Response
handleApplicationException
(HttpRequest request, ApplicationException e, RESTEasyTracingLogger logger) protected jakarta.ws.rs.core.Response
handleClientErrorException
(HttpRequest request, jakarta.ws.rs.ClientErrorException e) jakarta.ws.rs.core.Response
handleException
(HttpRequest request, Throwable e) protected jakarta.ws.rs.core.Response
handleFailure
(HttpRequest request, Failure failure) protected jakarta.ws.rs.core.Response
handleReaderException
(HttpRequest request, ReaderException e, RESTEasyTracingLogger logger) protected jakarta.ws.rs.core.Response
handleWebApplicationException
(jakarta.ws.rs.WebApplicationException wae) protected jakarta.ws.rs.core.Response
handleWriterException
(HttpRequest request, WriterException e, RESTEasyTracingLogger logger) boolean
protected jakarta.ws.rs.core.Response
unwrapException
(HttpRequest request, Throwable e, RESTEasyTracingLogger logger)
-
Field Details
-
providerFactory
-
unwrappedExceptions
-
mapperExecuted
protected boolean mapperExecuted
-
-
Constructor Details
-
ExceptionHandler
-
-
Method Details
-
isMapperExecuted
public boolean isMapperExecuted() -
executeExactExceptionMapper
protected jakarta.ws.rs.core.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. -
executeExceptionMapperForClass
protected jakarta.ws.rs.core.Response executeExceptionMapperForClass(Throwable exception, Class clazz, RESTEasyTracingLogger logger) -
executeExceptionMapperForClass
@Deprecated public jakarta.ws.rs.core.Response executeExceptionMapperForClass(Throwable exception, Class clazz) Deprecated. -
handleApplicationException
protected jakarta.ws.rs.core.Response handleApplicationException(HttpRequest request, ApplicationException e, RESTEasyTracingLogger logger) -
executeExceptionMapper
protected jakarta.ws.rs.core.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. -
unwrapException
protected jakarta.ws.rs.core.Response unwrapException(HttpRequest request, Throwable e, RESTEasyTracingLogger logger) -
handleFailure
-
handleClientErrorException
protected jakarta.ws.rs.core.Response handleClientErrorException(HttpRequest request, jakarta.ws.rs.ClientErrorException e) -
handleWriterException
protected jakarta.ws.rs.core.Response handleWriterException(HttpRequest request, WriterException e, RESTEasyTracingLogger logger) -
handleReaderException
protected jakarta.ws.rs.core.Response handleReaderException(HttpRequest request, ReaderException e, RESTEasyTracingLogger logger) -
handleWebApplicationException
protected jakarta.ws.rs.core.Response handleWebApplicationException(jakarta.ws.rs.WebApplicationException wae) -
handleException
-