Class OAuthResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.openhab.core.auth.client.oauth2.OAuthResponseException
- All Implemented Interfaces:
Serializable
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetError()
getState()
void
void
setErrorDescription
(String errorDescription) void
setErrorUri
(String errorUri) void
toString()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace