Class HttpStatusExceptionHandler

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

    @Provider
    public class HttpStatusExceptionHandler
    extends Object
    implements javax.ws.rs.ext.ExceptionMapper<BusinessException>
    Provider for our HTTP Exceptions to use BusinessExceptions to be thrown to the client side if something bad happens on the server side
    • Constructor Detail

      • HttpStatusExceptionHandler

        public HttpStatusExceptionHandler()
    • Method Detail

      • toResponse

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