org.drools.spi
Class ConditionException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.drools.DroolsException
              extended byorg.drools.FactException
                  extended byorg.drools.AssertionException
                      extended byorg.drools.spi.ConditionException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NonBooleanExprException, NonBooleanExprException, NonBooleanExprException

public class ConditionException
extends AssertionException

Indicates an error while applying a FilterCondition.

Author:
bob mcwhirter
See Also:
Condition, Serialized Form

Field Summary
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
ConditionException()
          Construct.
ConditionException(Rule rule)
           
ConditionException(String message)
           
ConditionException(String message, Rule rule, String info)
           
ConditionException(Throwable rootCause)
          Construct with a root cause.
ConditionException(Throwable rootCause, Rule rule, String info)
          Construct with a root cause.
 
Method Summary
 String getInfo()
           
 Rule getRule()
           
 void setInfo(String info)
          Set arbitrary extra information about the condition.
 void setRule(Rule rule)
           
 
Methods inherited from class org.drools.DroolsException
getLocalizedMessage, getMessage, getRootCause, printStackTrace, printStackTrace
 
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
 

Constructor Detail

ConditionException

public ConditionException()
Construct.


ConditionException

public ConditionException(String message)

ConditionException

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

Parameters:
rootCause - The root cause of this exception.

ConditionException

public ConditionException(Rule rule)

ConditionException

public ConditionException(String message,
                          Rule rule,
                          String info)

ConditionException

public ConditionException(Throwable rootCause,
                          Rule rule,
                          String info)
Construct with a root cause.

Parameters:
rootCause - The root cause of this exception.
Method Detail

setRule

public void setRule(Rule rule)

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 expression text or other information in the case that Condition does not have expression text.


getInfo

public String getInfo()


Copyright © 2001-2004 The Codehaus. All Rights Reserved.