Class InvalidRequestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.forgerock.oauth2.core.exceptions.OAuth2Exception
org.forgerock.oauth2.core.exceptions.InvalidRequestException
- All Implemented Interfaces:
Serializable
@SupportedAll
public class InvalidRequestException
extends org.forgerock.oauth2.core.exceptions.OAuth2Exception
Thrown when the request is missing any required parameters or is otherwise malformed.
- Since:
- 12.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new InvalidRequestException with the default message.InvalidRequestException(String message) Constructs a new InvalidRequestException with the specified message.InvalidRequestException(String message, org.forgerock.openam.oauth2.OAuth2Constants.UrlLocation parameterLocation) Constructs a new InvalidRequestException with the specified message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidRequestException
public InvalidRequestException()Constructs a new InvalidRequestException with the default message. -
InvalidRequestException
Constructs a new InvalidRequestException with the specified message. TheOAuth2Constants.UrlLocationfor the parameters are defaulted to QUERY.- Parameters:
message- The reason for the exception.
-
InvalidRequestException
public InvalidRequestException(String message, org.forgerock.openam.oauth2.OAuth2Constants.UrlLocation parameterLocation) Constructs a new InvalidRequestException with the specified message.- Parameters:
message- The reason for the exception.parameterLocation- Indicates the location of the parameters in the URL.
-