Class ExceptionHandler

java.lang.Object
org.jboss.resteasy.core.ExceptionHandler

public class ExceptionHandler extends Object
Version:
$Revision: 1 $
  • Field Details

    • providerFactory

      protected ResteasyProviderFactory providerFactory
    • unwrappedExceptions

      protected Set<String> unwrappedExceptions
    • mapperExecuted

      protected boolean mapperExecuted
  • Constructor Details

  • Method Details

    • isMapperExecuted

      public boolean isMapperExecuted()
    • executeExactExceptionMapper

      public javax.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.
      Parameters:
      exception -
      Returns:
    • executeExceptionMapperForClass

      public javax.ws.rs.core.Response executeExceptionMapperForClass(Throwable exception, Class clazz)
    • handleApplicationException

      protected javax.ws.rs.core.Response handleApplicationException(HttpRequest request, ApplicationException e)
    • executeExceptionMapper

      public javax.ws.rs.core.Response executeExceptionMapper(Throwable exception)
      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

      protected javax.ws.rs.core.Response unwrapException(HttpRequest request, Throwable e)
    • handleFailure

      protected javax.ws.rs.core.Response handleFailure(HttpRequest request, Failure failure)
    • handleWriterException

      protected javax.ws.rs.core.Response handleWriterException(HttpRequest request, WriterException e)
    • handleReaderException

      protected javax.ws.rs.core.Response handleReaderException(HttpRequest request, ReaderException e)
    • handleWebApplicationException

      protected javax.ws.rs.core.Response handleWebApplicationException(javax.ws.rs.WebApplicationException wae)
    • handleException

      public javax.ws.rs.core.Response handleException(HttpRequest request, Throwable e)