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:
java.io.Serializable
public final class InvariantViolationException extends ContractException
One or more invariants have been violated.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvariantViolationException(java.lang.String message, int in_violations)Construct an exception.InvariantViolationException(java.lang.String message, java.lang.Throwable cause, int in_violations)Construct an exception.
-
Method Summary
-
Methods inherited from class com.io7m.jaffirm.core.ContractException
violations
-
-
-
-
Constructor Detail
-
InvariantViolationException
public InvariantViolationException(java.lang.String message, java.lang.Throwable cause, int in_violations)Construct an exception.- Parameters:
cause- The causemessage- The messagein_violations- The number of violated conditions
-
InvariantViolationException
public InvariantViolationException(java.lang.String message, int in_violations)Construct an exception.- Parameters:
message- The messagein_violations- The number of violated conditions
-
-