com.bc.jexp
Class ParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.bc.jexp.ParseException
All Implemented Interfaces:
Serializable

public class ParseException
extends Exception

An exception thrown by a ParserX.parse() call in order to signal a parser error.

Version:
$Revision$ $Date$
Author:
Norman Fomferra (norman.fomferra@brockmann-consult.de)
See Also:
Serialized Form

Constructor Summary
ParseException(int line, int column, String message)
          Constructs a new parser exception with the given position in source code and with the given message.
ParseException(String message)
          Constructs a new parser exception with the given message.
 
Method Summary
 int getColumn()
          Gets the _column number in the source code in which the error occurred.
 int getLine()
          Gets the source code _line number in which the error occurred.
 
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

ParseException

public ParseException(String message)
Constructs a new parser exception with the given message.

Parameters:
message - the error message

ParseException

public ParseException(int line,
                      int column,
                      String message)
Constructs a new parser exception with the given position in source code and with the given message.

Parameters:
line - the source code _line number in which the error occurred
column - the _column number in the source code in which the error occurred
message - the error message
Method Detail

getLine

public final int getLine()
Gets the source code _line number in which the error occurred.

Returns:
the _line number or -1 if not available

getColumn

public final int getColumn()
Gets the _column number in the source code in which the error occurred.

Returns:
the _column number or -1 if not available


Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.