Package com.tnsai.invariants
Class InvariantViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.tnsai.exceptions.TnsAIException
com.tnsai.invariants.InvariantViolationException
- All Implemented Interfaces:
Serializable
Exception thrown when an invariant condition is violated.
This exception is thrown by
when a
precondition, postcondition, or invariant evaluates to false.invalid reference
InvariantChecker
- Author:
- TnsAI Team
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionInvariantViolationException(String invariant, String actionName, InvariantViolationException.ViolationType type) InvariantViolationException(String invariant, String actionName, InvariantViolationException.ViolationType type, Object actualValue) -
Method Summary
Methods inherited from class com.tnsai.exceptions.TnsAIException
getContext, getErrorCode, 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
-
InvariantViolationException
public InvariantViolationException(String invariant, String actionName, InvariantViolationException.ViolationType type) -
InvariantViolationException
public InvariantViolationException(String invariant, String actionName, InvariantViolationException.ViolationType type, Object actualValue)
-
-
Method Details
-
getInvariant
-
getActionName
-
getType
-
getActualValue
-