Class IllegalArgumentExceptionMapper

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

    @Provider
    public class IllegalArgumentExceptionMapper
    extends AbstractMapper<java.lang.IllegalArgumentException>
    Mapper for illegal argument exceptions to the BAD_REQUEST response code.
    • Constructor Detail

      • IllegalArgumentExceptionMapper

        public IllegalArgumentExceptionMapper()
    • 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.IllegalArgumentException>
        Returns:
        response status