Class InvalidSealedStateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.revetsec.RevetsecException
com.revetsec.InvalidSealedStateException
- All Implemented Interfaces:
Serializable
Thrown when a sealed value cannot be opened.
Every failure to open a sealed value throws this one exception, with the same fixed message, no cause and nothing suppressed: a value that was tampered with, truncated, malformed, sealed for a different context, sealed under a key that is not configured, or expired. The exception deliberately does not say which, so it cannot help anyone probe the sealer.
Its category is ErrorCategory.VALIDATION_FAILURE, and it is never transient: retrying with the same
sealed value always fails the same way.
- Since:
- 1.0.0
- Author:
- Mark Allen
- See Also:
-
Method Summary
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