Class OAuth2Exception

    • Constructor Detail

      • OAuth2Exception

        public OAuth2Exception​(int statusCode,
                               String error,
                               String description)
        Constructs a new OAuth2Exception with specified status code, error and description. The OAuth2Constants.UrlLocation for the parameters are defaulted to QUERY.
        Parameters:
        statusCode - The status code of the exception. Maps to HTTP status codes.
        error - The error/name of the exception.
        description - The reason and description for the exception.
      • OAuth2Exception

        public OAuth2Exception​(int statusCode,
                               String error,
                               String description,
                               OAuth2Constants.UrlLocation parameterLocation)
        Constructs a new OAuth2Exception with specified status code, error and description.
        Parameters:
        statusCode - The status code of the exception. Maps to HTTP status codes.
        error - The error/name of the exception.
        description - The reason and description for the exception.
        parameterLocation - Indicates the location of the parameters in the URL.
    • Method Detail

      • getStatusCode

        public int getStatusCode()
        Gets the status code of the exception.
        Returns:
        The status code.
      • getError

        public String getError()
        Gets the error/name of the exception.
        Returns:
        The error.
      • getParameterLocation

        public OAuth2Constants.UrlLocation getParameterLocation()
        Gets the location of the parameters in the URL.
        Returns:
        the location of the parameters.