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

int
getColumnNumber()
Returns the column number at which the parse error occured.
String
getMessage()
Returns the detail message for this Exception
String
toString()
Return the String representation of this Exception

Methods inherited from class org.exolab.adaptx.xpath.XPathException

getException, printStackTrace, printStackTrace, printStackTrace

Constructor Details

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 Details

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