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
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 Summary
ConstructorsConstructorDescriptionUnknownQueryParameterException(Collection<String> unknownParameters, Collection<String> acceptedParameters) -
Method Summary
Modifier and TypeMethodDescriptionEvery query parameter the matched resource method declares, sorted.The rejected parameter names, in the order they appeared in the query string.Methods inherited from class jakarta.ws.rs.WebApplicationException
getResponseMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnknownQueryParameterException
public UnknownQueryParameterException(Collection<String> unknownParameters, Collection<String> acceptedParameters)
-
-
Method Details
-
getUnknownParameters
-
getAcceptedParameters
-