Package com.io7m.jaffirm.core
Class PreconditionViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.io7m.jaffirm.core.ContractException
com.io7m.jaffirm.core.PreconditionViolationException
- All Implemented Interfaces:
Serializable
One or more checkPreconditions have been violated.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPreconditionViolationException(String message, int in_violations) Construct an exception.PreconditionViolationException(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
-
PreconditionViolationException
Construct an exception.- Parameters:
cause- The causemessage- The messagein_violations- The number of violated conditions
-
PreconditionViolationException
Construct an exception.- Parameters:
message- The messagein_violations- The number of violated conditions
-