Class PreconditionViolationException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class PreconditionViolationException
    extends ContractException
    One or more checkPreconditions have been violated.
    See Also:
    Serialized Form
    • 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

      • PreconditionViolationException

        public PreconditionViolationException​(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
      • PreconditionViolationException

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