Class UnknownQueryParameterException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.ws.rs.WebApplicationException
jakarta.ws.rs.ClientErrorException
jakarta.ws.rs.BadRequestException
ubic.gemma.rest.util.MalformedArgException
ubic.gemma.rest.util.UnknownQueryParameterException
All Implemented Interfaces:
Serializable

public class UnknownQueryParameterException extends MalformedArgException
Thrown when a request carries a query parameter the matched resource method cannot bind.

Extends MalformedArgException so the request stays a 400 through any handler that already treats a malformed argument as such; UnknownQueryParameterExceptionMapper is more specific and builds the structured body, naming each rejected parameter in location with LocationType.QUERY.

Author:
gemma
See Also:
  • Constructor Details

  • Method Details

    • getUnknownParameters

      public List<String> getUnknownParameters()
      The rejected parameter names, in the order they appeared in the query string.
    • getAcceptedParameters

      public Set<String> getAcceptedParameters()
      Every query parameter the matched resource method declares, sorted.