org.drools.spi
Class ConsequenceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.drools.RuntimeDroolsException
                  extended by org.drools.spi.ConsequenceException
All Implemented Interfaces:
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(String message)
           
ConsequenceException(String message, Rule rule)
          Construct with a message.
ConsequenceException(String message, Rule rule, String info)
           
ConsequenceException(Throwable rootCause)
          Construct with a root cause.
ConsequenceException(Throwable rootCause, Rule rule)
          Construct with a root cause.
ConsequenceException(Throwable rootCause, Rule rule, String info)
          Construct with a root cause.
 
Method Summary
 String getInfo()
           
 String getMessage()
           
 Rule getRule()
           
 void setInfo(String info)
          Set arbitrary extra information about the condition.
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
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(String message)

ConsequenceException

public ConsequenceException(Throwable rootCause)
Construct with a root cause.

Parameters:
rootCause - The root cause of this exception.

ConsequenceException

public ConsequenceException(Rule rule)

ConsequenceException

public ConsequenceException(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(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(String message,
                            Rule rule,
                            String info)

ConsequenceException

public ConsequenceException(Throwable rootCause,
                            Rule rule,
                            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(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 class Throwable

toString

public String toString()
Overrides:
toString in class Throwable


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.