Class GenericServiceExceptionMapper

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

    @Provider
    public class GenericServiceExceptionMapper
    extends AbstractExceptionMapper
    implements javax.ws.rs.ext.ExceptionMapper<GenericServiceException>
    Exception Mapper for GenericServiceException. Catches GenericServiceException and handles it and prepares appropriate response.
    • Constructor Detail

      • GenericServiceExceptionMapper

        public GenericServiceExceptionMapper()
    • Method Detail

      • toResponse

        public javax.ws.rs.core.Response toResponse​(GenericServiceException gse)
        To response response.
        Specified by:
        toResponse in interface javax.ws.rs.ext.ExceptionMapper<GenericServiceException>
        Parameters:
        gse - GenericServiceException
        Returns:
        Response