org.exolab.adaptx.xpath.engine

Class ParseException

public class ParseException extends XPathException

The main exception thrown when an Error occurs while parsing an XPath expression

Version: $Revision: 3633 $ $Date: 2003-03-01 02:38:44 -0500 (Sat, 01 Mar 2003) $

Author: Keith Visco

Constructor Summary
ParseException(String expr, String message)
Creates a new ParseException with the given message.
ParseException(String expr, String message, int columnNumber)
Creates a new ParseException with the given message.
Method Summary
intgetColumnNumber()
Returns the column number at which the parse error occured.
StringgetMessage()
Returns the detail message for this Exception
StringtoString()
Return the String representation of this Exception

Constructor Detail

ParseException

public ParseException(String expr, String message)
Creates a new ParseException with the given message.

Parameters: message the detail message for this Exception

ParseException

public ParseException(String expr, String message, int columnNumber)
Creates a new ParseException with the given message.

Parameters: message the detail message for this Exception

Method Detail

getColumnNumber

public int getColumnNumber()
Returns the column number at which the parse error occured.

Returns: the column number at which the parse error occured, or -1, if no column number was specified.

getMessage

public String getMessage()
Returns the detail message for this Exception

Returns: the detail message for this Exception

toString

public String toString()
Return the String representation of this Exception

Returns: the String representation of this Exception