Class SContractViolationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.bonitasoft.engine.commons.exceptions.SBonitaException
org.bonitasoft.engine.core.process.instance.api.exceptions.SContractViolationException
All Implemented Interfaces:
Serializable

public class SContractViolationException extends SBonitaException
Thrown when the SContractDefinition is not fulfilled.
Since:
7.0
Author:
Emmanuel Duchastenier
See Also:
  • Constructor Details

    • SContractViolationException

      public SContractViolationException(String message, List<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(String message, Exception e)
  • Method Details

    • getExplanations

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

      public String getSimpleMessage()