org.drools.rule
Class InvalidRuleException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.drools.DroolsException
                    |
                    +--org.drools.rule.RuleConstructionException
                          |
                          +--org.drools.rule.InvalidRuleException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
NoConditionException, NoConsequenceException, NoParameterDeclarationException

public class InvalidRuleException
extends RuleConstructionException

Indicates an error regarding the semantic validity of a rule.

Author:
bob mcwhirter
See Also:
Serialized Form

Constructor Summary
InvalidRuleException(Rule rule)
          Construct.
 
Method Summary
 Rule getRule()
          Retrieve the invalid 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

InvalidRuleException

public InvalidRuleException(Rule rule)
Construct.

Parameters:
rule - The invalid Rule.
Method Detail

getRule

public Rule getRule()
Retrieve the invalid Rule.

Returns:
The invalid Rule.