com.japisoft.formula.node
Class EvaluateException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.japisoft.formula.node.EvaluateException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DivisionByZeroException

public class EvaluateException
extends java.lang.Exception

Evaluation error exception. Something is wrong in the formula generated tree. It can be bad data, or bad operators usage...

More information at : http://www.japisoft.com

Version:
1.0
Author:
(c) 2002-2003 JAPISOFT
See Also:
Exception, Serialized Form

Constructor Summary
EvaluateException(int pos, java.lang.String cause)
           
EvaluateException(java.lang.String cause)
           
 
Method Summary
 int getPos()
           
 void setPos(int pos)
           
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EvaluateException

public EvaluateException(java.lang.String cause)

EvaluateException

public EvaluateException(int pos,
                         java.lang.String cause)
Parameters:
pos - Current position in the expression
cause - What's trouble ?
Method Detail

getPos

public int getPos()
Returns:
the current expression error location

setPos

public void setPos(int pos)