Class GlobalExceptionMapper

  • All Implemented Interfaces:
    javax.ws.rs.ext.ExceptionMapper<java.lang.Throwable>

    @Provider
    public class GlobalExceptionMapper
    extends AbstractExceptionMapper
    implements javax.ws.rs.ext.ExceptionMapper<java.lang.Throwable>
    • Constructor Detail

      • GlobalExceptionMapper

        public GlobalExceptionMapper()
    • Method Detail

      • toResponse

        public javax.ws.rs.core.Response toResponse​(java.lang.Throwable throwable)
        To response response.
        Specified by:
        toResponse in interface javax.ws.rs.ext.ExceptionMapper<java.lang.Throwable>
        Parameters:
        throwable - the throwable
        Returns:
        the response