Class OAuthResponseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.openhab.core.auth.client.oauth2.OAuthResponseException
All Implemented Interfaces:
Serializable

@NonNullByDefault public class OAuthResponseException extends Exception
This is an exception class for OAUTH specific errors. i.e. The error responses described in the RFC6749. Do NOT confuse this with Java errors.

To keep it simple, this exception class serves for both Authorization Request and Authorization Grant error response

The field names are kept exactly the same as the specification. This allows the error responses to be directly deserialized from JSON.

Author:
Gary Tse - Initial contribution
See Also:
  • Constructor Details

    • OAuthResponseException

      public OAuthResponseException()
  • Method Details

    • getError

      public String getError()
    • setError

      public void setError(String error)
    • getErrorDescription

      public String getErrorDescription()
    • setErrorDescription

      public void setErrorDescription(String errorDescription)
    • getErrorUri

      public String getErrorUri()
    • setErrorUri

      public void setErrorUri(String errorUri)
    • getState

      public String getState()
    • setState

      public void setState(String state)
    • toString

      public String toString()
      Overrides:
      toString in class Throwable