Class ErrorHandler

java.lang.Object
org.rostore.service.ErrorHandler
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<Exception>

@Provider @Produces("application/json") public class ErrorHandler extends Object implements jakarta.ws.rs.ext.ExceptionMapper<Exception>
  • Constructor Details

    • ErrorHandler

      public ErrorHandler()
  • Method Details

    • toResponse

      @Produces("application/json") public jakarta.ws.rs.core.Response toResponse(Exception ex)
      Specified by:
      toResponse in interface jakarta.ws.rs.ext.ExceptionMapper<Exception>