com.japisoft.formula.node
Class EvaluateException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.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 line, int column, java.lang.String cause)
           
EvaluateException(java.lang.String cause)
           
 
Method Summary
 int getErrorColumn()
           
 int getErrorLine()
           
 int getPos()
          Deprecated. you must call the getErrorColumn method or getLine
 void setPos(int pos)
          Deprecated. you must call the setColumn method or setLine method
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

EvaluateException

public EvaluateException(java.lang.String cause)

EvaluateException

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

getPos

public int getPos()
Deprecated. you must call the getErrorColumn method or getLine

Returns:
the current expression error location

setPos

public void setPos(int pos)
Deprecated. you must call the setColumn method or setLine method


getErrorColumn

public int getErrorColumn()
Returns:
the last error column position

getErrorLine

public int getErrorLine()
Returns:
the last error line position

toString

public java.lang.String toString()