com.graphbuilder.math
Class ExpressionParseException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.graphbuilder.math.ExpressionParseException
All Implemented Interfaces:
java.io.Serializable

public class ExpressionParseException
extends java.lang.RuntimeException

Exception thrown if expression cannot be parsed correctly.

See Also:
ExpressionTree, Serialized Form

Constructor Summary
ExpressionParseException(java.lang.String descrip, int index)
           
 
Method Summary
 java.lang.String getDescription()
          Returns the description that explains why the exception was thrown.
 int getIndex()
          Returns an index value into the expression string.
 java.lang.String toString()
          Returns a string formatted such as "(index) description".
 
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

ExpressionParseException

public ExpressionParseException(java.lang.String descrip,
                                int index)
Method Detail

getDescription

public java.lang.String getDescription()
Returns the description that explains why the exception was thrown.


getIndex

public int getIndex()
Returns an index value into the expression string. Note, the index value may be less than zero or greater then the length of the expression string.


toString

public java.lang.String toString()
Returns a string formatted such as "(index) description".