Class ExceptionHandler


  • public class ExceptionHandler
    extends Object
    Version:
    $Revision: 1 $
    Author:
    Bill Burke
    • Method Detail

      • isMapperExecuted

        public boolean isMapperExecuted()
      • executeExactExceptionMapper

        protected javax.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 javax.ws.rs.core.Response executeExactExceptionMapper​(Throwable exception)
        Deprecated.
      • executeExceptionMapperForClass

        @Deprecated
        public javax.ws.rs.core.Response executeExceptionMapperForClass​(Throwable exception,
                                                                        Class clazz)
        Deprecated.
      • executeExceptionMapper

        protected javax.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 javax.ws.rs.core.Response executeExceptionMapper​(Throwable exception)
        Deprecated.
      • handleFailure

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

        protected javax.ws.rs.core.Response handleClientErrorException​(HttpRequest request,
                                                                       javax.ws.rs.ClientErrorException 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)