Class InvalidRequestException

All Implemented Interfaces:
Serializable

@UnstableApi
public final class InvalidRequestException
extends TokenRequestException
The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed.
See Also:
Serialized Form
  • Constructor Details

    • InvalidRequestException

      public InvalidRequestException​(String errorDescription, String errorUri)
      Constructs a new InvalidRequestException using errorDescription and errorUri.
      Parameters:
      errorDescription - OPTIONAL. Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred. Values for the errorDescription parameter MUST NOT include characters outside the set %x20-21 / %x23-5B / %x5D-7E.
      errorUri - OPTIONAL. A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error. Values for the errorUri parameter MUST conform to the URI-reference syntax and thus MUST NOT include characters outside the set %x21 / %x23-5B / %x5D-7E.
    • InvalidRequestException

      public InvalidRequestException​(String errorDescription, String errorUri, Throwable cause)
      Constructs a new InvalidRequestException using errorDescription and errorUri.
      Parameters:
      errorDescription - OPTIONAL. Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred. Values for the errorDescription parameter MUST NOT include characters outside the set %x20-21 / %x23-5B / %x5D-7E.
      errorUri - OPTIONAL. A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error. Values for the errorUri parameter MUST conform to the URI-reference syntax and thus MUST NOT include characters outside the set %x21 / %x23-5B / %x5D-7E.
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)