org.drools.spi
Class ConsequenceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.drools.DroolsException
org.drools.FactException
org.drools.AssertionException
org.drools.spi.ConsequenceException
- All Implemented Interfaces:
- java.io.Serializable
public class ConsequenceException
- extends AssertionException
Indicates an error while applying a Consequence.
- See Also:
Consequence
,
Serialized Form
-

Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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(Rule rule)
ConsequenceException
public ConsequenceException(java.lang.String message,
Rule rule)
- Construct with a message. Keep this from old ConsequenceException
for backward compatability
- Parameters:
rootCause
- The root cause of this exception.
ConsequenceException
public ConsequenceException(java.lang.Throwable rootCause,
Rule 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,
Rule rule,
java.lang.String info)
ConsequenceException
public ConsequenceException(java.lang.Throwable rootCause,
Rule rule,
java.lang.String info)
- Construct with a root cause.
- Parameters:
rootCause
- The root cause of this exception.
setRule
public void setRule(Rule rule)
getRule
public Rule 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()