Class ContractException

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ContractException​(java.lang.String message, int in_violations)
      Construct an exception.
      protected ContractException​(java.lang.String message, java.lang.Throwable cause, int in_violations)
      Construct an exception.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int violations()  
      • 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

      • ContractException

        protected ContractException​(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
      • ContractException

        protected ContractException​(java.lang.String message,
                                    int in_violations)
        Construct an exception.
        Parameters:
        message - The message
        in_violations - The number of violated conditions
    • Method Detail

      • violations

        public final int violations()
        Returns:
        The number of violated conditions (must be > 0).