Class DefaultExceptionMapper

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

    @Provider
    public class DefaultExceptionMapper
    extends Object
    implements javax.ws.rs.ext.ExceptionMapper<Throwable>
    Default JAX-RS ExceptionMapper for all exceptions not supported by other ExceptionMapper
    • Constructor Detail

      • DefaultExceptionMapper

        public DefaultExceptionMapper()
    • Method Detail

      • toResponse

        public javax.ws.rs.core.Response toResponse​(Throwable exception)
        Specified by:
        toResponse in interface javax.ws.rs.ext.ExceptionMapper<Throwable>