Class 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:
    Serialized Form
    • Constructor Detail

      • InvalidRequestException

        public InvalidRequestException()
        Constructs a new InvalidRequestException with the default message.
      • InvalidRequestException

        public InvalidRequestException​(String message)
        Constructs a new InvalidRequestException with the specified message. The OAuth2Constants.UrlLocation for 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.