Package com.io7m.jaffirm.core
Class InvariantViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.io7m.jaffirm.core.ContractException
com.io7m.jaffirm.core.InvariantViolationException
- All Implemented Interfaces:
Serializable
One or more invariants have been violated.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvariantViolationException(String message, int in_violations) Construct an exception.InvariantViolationException(String message, Throwable cause, int in_violations) Construct an exception. -
Method Summary
Methods inherited from class com.io7m.jaffirm.core.ContractException
violationsMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvariantViolationException
Construct an exception.- Parameters:
cause- The causemessage- The messagein_violations- The number of violated conditions
-
InvariantViolationException
Construct an exception.- Parameters:
message- The messagein_violations- The number of violated conditions
-