parser
Class ExpressionParser.ParseException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--parser.ExpressionParser.ParseException
All Implemented Interfaces:
Serializable
Enclosing class:
ExpressionParser

public static class ExpressionParser.ParseException
extends Exception

Describes a error of a parsing.

Since:
notavaCC 1.0
See Also:
Serialized Form

Nested Class Summary
static class ExpressionParser.ParseException.AmbiguousGrammarError
           
 
Constructor Summary
ExpressionParser.ParseException(String msg, ExpressionParser.Token position)
           
ExpressionParser.ParseException(String msg, String sourceName, int index, int line, int column)
          Constructs an exception.
 
Method Summary
 int getColumn()
          Returns the column number where the exception occured.
 int getIndex()
          Returns the index number where the exception occured.
 int getLine()
          Returns the line number where the exception occured.
 String getSourceName()
          Returns the source name where the exception occured.
 
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

ExpressionParser.ParseException

public ExpressionParser.ParseException(String msg,
                                       String sourceName,
                                       int index,
                                       int line,
                                       int column)
Constructs an exception.

Parameters:
sourceName - the source name where the exception occured, or null if not supported.
index - the index number where the exception occured, or -1 if not supported.
line - the line number where the exception occured, or -1 if not supported.
column - the column number where the exception occured, or -1 if not supported.
Since:
notavaCC 1.0

ExpressionParser.ParseException

public ExpressionParser.ParseException(String msg,
                                       ExpressionParser.Token position)
Method Detail

getSourceName

public final String getSourceName()
                           throws UnsupportedOperationException
Returns the source name where the exception occured.

Returns:
the source name where the exception occured.
Throws:
UnsupportedOperationException - if the method is not suported.
Since:
notavaCC 1.0

getIndex

public final int getIndex()
                   throws UnsupportedOperationException
Returns the index number where the exception occured.

Returns:
the index number where the exception occured.
Throws:
UnsupportedOperationException - if the method is not suported.
Since:
notavaCC 1.0

getLine

public final int getLine()
                  throws UnsupportedOperationException
Returns the line number where the exception occured.

Returns:
the line number where the exception occured.
Throws:
UnsupportedOperationException - if the method is not suported.
Since:
notavaCC 1.0

getColumn

public final int getColumn()
                    throws UnsupportedOperationException
Returns the column number where the exception occured.

Returns:
the column number where the exception occured.
Throws:
UnsupportedOperationException - if the method is not suported.
Since:
notavaCC 1.0