Class OAuthClientMetadataCacheException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.revetsec.RevetsecException
com.revetsec.oauth.server.OAuthClientMetadataCacheException
- All Implemented Interfaces:
Serializable
Fixed-diagnostic optional-cache failure, distinct from a miss or comparison conflict. Providers
may throw this type without retaining backend messages or causes. A failed write may already have
happened; cached data still requires core validation. This type supplies no authoritative-store
outcome.
- Since:
- 1.0.0
- Author:
- Mark Allen
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe optional-cache failure reasons. -
Method Summary
Modifier and TypeMethodDescriptionCreates a fixed failure for an application cache provider; raw diagnostics and causes are not accepted.Returns the fixed failure reason.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
-
fromReason
public static @NonNull OAuthClientMetadataCacheException fromReason(@NonNull OAuthClientMetadataCacheException.Reason reason) Creates a fixed failure for an application cache provider; raw diagnostics and causes are not accepted.- Parameters:
reason- the fixed reason- Returns:
- the provider failure
- Throws:
NullPointerException- if reason is null- Since:
- 1.0.0
-
getReason
Returns the fixed failure reason.- Returns:
- the reason
- Since:
- 1.0.0
-