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:
java.io.Serializable
public class ConsequenceException extends java.lang.RuntimeExceptionIndicates an error during aConsequenceinvocation.- See Also:
Consequence, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConsequenceException()Construct.ConsequenceException(java.lang.String message)ConsequenceException(java.lang.String message, RuleImpl rule)Construct with a message.ConsequenceException(java.lang.String message, RuleImpl rule, java.lang.String info)ConsequenceException(java.lang.Throwable rootCause)Construct with a root cause.ConsequenceException(java.lang.Throwable rootCause, RuleImpl rule)Construct with a root cause.ConsequenceException(java.lang.Throwable rootCause, RuleImpl rule, java.lang.String info)Construct with a root cause.ConsequenceException(RuleImpl rule)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetInfo()java.lang.StringgetMessage()RuleImplgetRule()voidsetInfo(java.lang.String info)Set arbitrary extra information about the condition.java.lang.StringtoString()
-
-
-
Constructor Detail
-
ConsequenceException
public ConsequenceException()
Construct.
-
ConsequenceException
public ConsequenceException(java.lang.String message)
-
ConsequenceException
public ConsequenceException(java.lang.Throwable rootCause)
Construct with a root cause.- Parameters:
rootCause- The root cause of this exception.
-
ConsequenceException
public ConsequenceException(RuleImpl rule)
-
ConsequenceException
public ConsequenceException(java.lang.String message, RuleImpl rule)Construct with a message. Keep this from old ConsequenceException for backward compatability
-
ConsequenceException
public ConsequenceException(java.lang.Throwable rootCause, RuleImpl rule)Construct with a root cause. Keep this from old ConsequenceException for backward compatability- Parameters:
rootCause- The root cause of this exception.
-
ConsequenceException
public ConsequenceException(java.lang.String message, RuleImpl rule, java.lang.String info)
-
ConsequenceException
public ConsequenceException(java.lang.Throwable rootCause, RuleImpl rule, java.lang.String info)Construct with a root cause.- Parameters:
rootCause- The root cause of this exception.
-
-
Method Detail
-
getRule
public RuleImpl getRule()
-
setInfo
public void setInfo(java.lang.String info)
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
public java.lang.String getInfo()
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
-