Package org.drools.base.rule.consequence
Class ConsequenceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.drools.base.rule.consequence.ConsequenceException
- All Implemented Interfaces:
Serializable
Indicates an error during a
Consequence invocation.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct.ConsequenceException(String message) ConsequenceException(String message, RuleImpl rule) Construct with a message.ConsequenceException(String message, RuleImpl rule, String info) ConsequenceException(Throwable rootCause) Construct with a root cause.ConsequenceException(Throwable rootCause, RuleImpl rule) Construct with a root cause.ConsequenceException(Throwable rootCause, RuleImpl rule, String info) Construct with a root cause.ConsequenceException(RuleImpl rule) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ConsequenceException
public ConsequenceException()Construct. -
ConsequenceException
-
ConsequenceException
Construct with a root cause.- Parameters:
rootCause- The root cause of this exception.
-
ConsequenceException
-
ConsequenceException
Construct with a message. Keep this from old ConsequenceException for backward compatability -
ConsequenceException
Construct with a root cause. Keep this from old ConsequenceException for backward compatability- Parameters:
rootCause- The root cause of this exception.
-
ConsequenceException
-
ConsequenceException
Construct with a root cause.- Parameters:
rootCause- The root cause of this exception.
-
-
Method Details
-
getRule
-
setInfo
Set arbitrary extra information about the condition.The info property may be used to communicate the actual block text or other information in the case that Consequence does not have block text.
-
getInfo
-
getMessage
- Overrides:
getMessagein classThrowable
-
toString
-