Class OAuth20Exception
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.openstreetmap.josm.data.oauth.OAuthException
org.openstreetmap.josm.data.oauth.OAuth20Exception
- All Implemented Interfaces:
Serializable
A generic OAuth 2.0 exception
- Since:
- 18650
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOAuth20Exception(jakarta.json.JsonObject serverMessage) Create an exception from a server messageOAuth20Exception(Exception cause) Create a new exception with a specified causeOAuth20Exception(String message) Create a new exception with a given message -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
- See Also:
-
type
-
-
Constructor Details
-
OAuth20Exception
Create a new exception with a specified cause- Parameters:
cause- The cause leading to this exception
-
OAuth20Exception
Create a new exception with a given message- Parameters:
message- The message to use
-
OAuth20Exception
OAuth20Exception(jakarta.json.JsonObject serverMessage) Create an exception from a server message- Parameters:
serverMessage- The server message. Should conform to RFC 6747 Section 4.2.2, but in JSON format.
-
-
Method Details
-
getOAuthVersions
- Specified by:
getOAuthVersionsin classOAuthException
-
getMessage
- Overrides:
getMessagein classThrowable
-