Package org.drools.core.spi
Class ConsequenceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.drools.core.spi.ConsequenceException
-
- All Implemented Interfaces:
Serializable
public class ConsequenceException extends RuntimeException
Indicates an error during aConsequence
invocation.- See Also:
Consequence
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConsequenceException()
Construct.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getInfo()
String
getMessage()
RuleImpl
getRule()
void
setInfo(String info)
Set arbitrary extra information about the condition.String
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
ConsequenceException
public ConsequenceException()
Construct.
-
ConsequenceException
public ConsequenceException(String message)
-
ConsequenceException
public ConsequenceException(Throwable rootCause)
Construct with a root cause.- Parameters:
rootCause
- The root cause of this exception.
-
ConsequenceException
public ConsequenceException(RuleImpl rule)
-
ConsequenceException
public ConsequenceException(String message, RuleImpl rule)
Construct with a message. Keep this from old ConsequenceException for backward compatability
-
ConsequenceException
public ConsequenceException(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.
-
-
Method Detail
-
getRule
public RuleImpl getRule()
-
setInfo
public void setInfo(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 String getInfo()
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-