Package com.tnsai.idempotency
Class IdempotencyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.tnsai.exceptions.TnsAIException
com.tnsai.idempotency.IdempotencyException
- All Implemented Interfaces:
Serializable
Thrown when an idempotency-protected call produces an outcome the
framework cannot resolve safely (issue #91): a hard cache hit under
RetryBehavior.FAIL_FAST, a hash collision against a different
input, or the configured IdempotencyStore being unreachable
mid-call.- Since:
- 0.5.0 (issue #91)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhy the idempotency-protected call could not be resolved. -
Constructor Summary
ConstructorsConstructorDescriptionIdempotencyException(String key, IdempotencyException.IdempotencyConflict conflict, String message) IdempotencyException(String key, IdempotencyException.IdempotencyConflict conflict, String message, Throwable cause) -
Method Summary
Methods inherited from class com.tnsai.exceptions.TnsAIException
getContext, getMaxRetryAttempts, getMessage, getSuggestedRetryDelayMs, getThrownAt, isRetryable, wrapMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IdempotencyException
public IdempotencyException(String key, IdempotencyException.IdempotencyConflict conflict, String message) -
IdempotencyException
public IdempotencyException(String key, IdempotencyException.IdempotencyConflict conflict, String message, Throwable cause)
-
-
Method Details
-
getKey
-
getConflict
-
getErrorCode
Description copied from class:TnsAIExceptionGets the error code for this exception type. Format: TNSAI-XXX where XXX is derived from class name.- Overrides:
getErrorCodein classTnsAIException
-