Class OAuthErrorResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.revetsec.RevetsecException
com.revetsec.oauth.OAuthException
com.revetsec.oauth.OAuthErrorResponseException
- All Implemented Interfaces:
Serializable
A token, revocation or UserInfo endpoint error. The response body and its prose are never retained.
- Since:
- 1.0.0
- Author:
- Mark Allen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class OAuthException
OAuthException.Reason -
Method Summary
Modifier and TypeMethodDescriptionReturns the bounded, safe OAuth error code, if present.Returns a parsed Retry-After delay, if present and valid.Returns the endpoint's HTTP status, including 200 when the body reported an OAuth error.Methods inherited from class OAuthException
getReasonModifier 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
-
getStatus
-
getErrorCode
Returns the bounded, safe OAuth error code, if present.- Returns:
- the safe code
- Since:
- 1.0.0
-
getRetryAfter
Returns a parsed Retry-After delay, if present and valid.- Returns:
- the delay
- Since:
- 1.0.0
-