Class GenericExceptionMapper

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

    @Provider
    public class GenericExceptionMapper
    extends Object
    implements javax.ws.rs.ext.ExceptionMapper<Exception>
    Jersey ExceptionMapper to be used when no specific exception mapper instance exists.
    • Constructor Detail

      • GenericExceptionMapper

        public GenericExceptionMapper()
    • Method Detail

      • toResponse

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