Class ExceptionHandler

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

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

    • providerFactory

      protected ResteasyProviderFactoryImpl providerFactory
    • unwrappedExceptions

      protected Set<String> unwrappedExceptions
    • mapperExecuted

      protected boolean mapperExecuted
  • Constructor Details

  • 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 - exception
      logger - logger
      Returns:
      response response object
    • executeExactExceptionMapper

      @Deprecated public jakarta.ws.rs.core.Response executeExactExceptionMapper(Throwable exception)
      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 - exception
      logger - logger
      Returns:
      true if an ExceptionMapper was found and executed
    • executeExceptionMapper

      @Deprecated public jakarta.ws.rs.core.Response executeExceptionMapper(Throwable exception)
      Deprecated.
    • unwrapException

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

      protected jakarta.ws.rs.core.Response handleFailure(HttpRequest request, Failure failure)
    • 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

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