Class OAuthException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.revetsec.RevetsecException
com.revetsec.oauth.OAuthException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthorizationErrorException, OAuthConfigurationException, OAuthErrorResponseException, OAuthResponseException, OAuthTransportException, OAuthValidationException, PendingAuthorizationStoreException
@NotThreadSafe
public abstract sealed class OAuthException
extends RevetsecException
permits AuthorizationErrorException, OAuthErrorResponseException, OAuthValidationException, OAuthResponseException, OAuthTransportException, PendingAuthorizationStoreException, OAuthConfigurationException
An OAuth request, response, validation or transport failure. The reason and message are fixed; neither contains
authorization codes, pending state, client secrets or tokens. Applications catch this type or one of its leaves.
- Since:
- 1.0.0
- Author:
- Mark Allen
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns the fixed reason for this failure.Methods inherited from class RevetsecException
getCategory, isTemporaryConditionModifier and TypeMethodDescriptionfinal @NonNull ErrorCategoryReturns the category of this failure.Returns whether this failure is classified as a temporary condition.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getReason
Returns the fixed reason for this failure.- Returns:
- the reason
- Since:
- 1.0.0
-