vmm.functions
Class ParseError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by vmm.functions.ParseError
All Implemented Interfaces:
java.io.Serializable

public class ParseError
extends java.lang.RuntimeException

An exception of type ParseError is thrown by a Parser when it encounters an error in the definition of a function that it is parsing.

See Also:
Serialized Form

Constructor Summary
ParseError(java.lang.String errorMessage, int pos, java.lang.String sourceString)
           
 
Method Summary
 int getErrorPosition()
          Returns the position in the string where the parser encountered the error.
 java.lang.String getSourceString()
          Returns the string in which the parser encountered the error.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParseError

public ParseError(java.lang.String errorMessage,
                  int pos,
                  java.lang.String sourceString)
Method Detail

getSourceString

public java.lang.String getSourceString()
Returns the string in which the parser encountered the error.


getErrorPosition

public int getErrorPosition()
Returns the position in the string where the parser encountered the error. The position is the usually index of the character that follows the token that was read most recently at the time the error occurred.