Class IllegalStateExceptionMapper

  • All Implemented Interfaces:
    javax.ws.rs.ext.ExceptionMapper<java.lang.IllegalStateException>

    @Provider
    public class IllegalStateExceptionMapper
    extends AbstractMapper<java.lang.IllegalStateException>
    Mapper for illegal state exceptions to the BAD_REQUEST response code.
    • Constructor Detail

      • IllegalStateExceptionMapper

        public IllegalStateExceptionMapper()
    • Method Detail

      • responseStatus

        protected javax.ws.rs.core.Response.Status responseStatus()
        Description copied from class: AbstractMapper
        Returns the response status to be given when the exception occurs.
        Specified by:
        responseStatus in class AbstractMapper<java.lang.IllegalStateException>
        Returns:
        response status