Class 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 java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InvariantViolationException

        public InvariantViolationException​(java.lang.String message,
                                           java.lang.Throwable cause,
                                           int in_violations)
        Construct an exception.
        Parameters:
        cause - The cause
        message - The message
        in_violations - The number of violated conditions
      • InvariantViolationException

        public InvariantViolationException​(java.lang.String message,
                                           int in_violations)
        Construct an exception.
        Parameters:
        message - The message
        in_violations - The number of violated conditions