org.exolab.adaptx.xpath.engine
Class ParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.exolab.adaptx.xpath.XPathException
              extended by org.exolab.adaptx.xpath.engine.ParseException
All Implemented Interfaces:
java.io.Serializable

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
See Also:
Serialized Form

Constructor Summary
ParseException(java.lang.String expr, java.lang.String message)
          Creates a new ParseException with the given message.
ParseException(java.lang.String expr, java.lang.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.
 java.lang.String getMessage()
          Returns the detail message for this Exception
 java.lang.String toString()
          Return the String representation of this Exception
 
Methods inherited from class org.exolab.adaptx.xpath.XPathException
getException, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParseException

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

Parameters:
message - the detail message for this Exception

ParseException

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

Parameters:
message - the detail message for this Exception
Method Detail

getMessage

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

Overrides:
getMessage in class java.lang.Throwable
Returns:
the detail message for this Exception

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.

toString

public java.lang.String toString()
Return the String representation of this Exception

Overrides:
toString in class java.lang.Throwable
Returns:
the String representation of this Exception