Class SContractViolationException

    • Constructor Detail

      • SContractViolationException

        public SContractViolationException​(java.lang.String message,
                                           java.util.List<java.lang.String> explanations)
        Constructs an SContractViolationException with the specified detail message and the explanations.
        Parameters:
        message - the specified detail message
        explanations - the explanations
      • SContractViolationException

        public SContractViolationException​(java.lang.String message,
                                           java.lang.Exception e)
    • Method Detail

      • getExplanations

        public java.util.List<java.lang.String> getExplanations()
        Returns the explanations of why the contract is not fulfilled.
        Returns:
        the explanations
      • getSimpleMessage

        public java.lang.String getSimpleMessage()