org.drools.semantics.java
Class NonBooleanExprException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.drools.DroolsException
                    |
                    +--org.drools.FactException
                          |
                          +--org.drools.AssertionException
                                |
                                +--org.drools.spi.ConditionException
                                      |
                                      +--org.drools.semantics.java.NonBooleanExprException
All Implemented Interfaces:
java.io.Serializable

public class NonBooleanExprException
extends ConditionException

Indicates an attempt to use a non-boolean expression in a condition.

Version:
$Id: NonBooleanExprException.java,v 1.2 2002/08/19 00:31:42 bob Exp $
Author:
bob mcwhirter
See Also:
Serialized Form

Constructor Summary
NonBooleanExprException(java.lang.String expr)
          Construct.
 
Method Summary
 java.lang.String getExpression()
          Retrieve the non-boolean expression.
 java.lang.String getMessage()
          Retrieve the error message.
 
Methods inherited from class org.drools.DroolsException
getLocalizedMessage, 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

NonBooleanExprException

public NonBooleanExprException(java.lang.String expr)
Construct.

Parameters:
expr - The invalid expression.
Method Detail

getExpression

public java.lang.String getExpression()
Retrieve the non-boolean expression.

Returns:
The expression.

getMessage

public java.lang.String getMessage()
Retrieve the error message.

Overrides:
getMessage in class DroolsException
Returns:
The error message.