org.drools.spi
Class ConsequenceException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.drools.RuntimeDroolsException
                  extended byorg.drools.spi.ConsequenceException
All Implemented Interfaces:
java.io.Serializable

public class ConsequenceException
extends RuntimeDroolsException

Indicates an error during a Consequence invocation.

See Also:
Consequence, Serialized Form
 

Constructor Summary
ConsequenceException()
          Construct.
ConsequenceException(Rule rule)
           
ConsequenceException(java.lang.String message)
           
ConsequenceException(java.lang.String message, Rule rule)
          Construct with a message.
ConsequenceException(java.lang.String message, Rule rule, java.lang.String info)
           
ConsequenceException(java.lang.Throwable rootCause)
          Construct with a root cause.
ConsequenceException(java.lang.Throwable rootCause, Rule rule)
          Construct with a root cause.
ConsequenceException(java.lang.Throwable rootCause, Rule rule, java.lang.String info)
          Construct with a root cause.
 
Method Summary
 java.lang.String getInfo()
           
 Rule getRule()
           
 void setInfo(java.lang.String info)
          Set arbitrary extra information about the condition.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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(Rule rule)

ConsequenceException

public ConsequenceException(java.lang.String message,
                            Rule rule)
Construct with a message. Keep this from old ConsequenceException for backward compatability


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.
Method Detail

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()