Documentation of 'vmm3d.functions.ParseError' Java class
ParseError
vmm3d.functions

Class 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

      Constructors 
      Constructor and Description
      ParseError(java.lang.String errorMessage, int pos, java.lang.String sourceString) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, 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.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.