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
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 |
EvaluateException
public EvaluateException(java.lang.String cause)
EvaluateException
public EvaluateException(int line,
int column,
java.lang.String cause)
- Parameters:
column
- Current position in the expressioncause
- What's trouble ?
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()