org.jaxen
public class XPathSyntaxException extends JaxenException
Field Summary | |
---|---|
int | position The position of the error |
static long | serialVersionUID |
String | xpath The textual XPath expression |
Constructor Summary | |
---|---|
XPathSyntaxException(XPathSyntaxException e)
Create a new XPathSyntaxException wrapping an existing
org.jaxen.saxpath.XPathSyntaxException .
| |
XPathSyntaxException(String xpath, int position, String message) Constructor
|
Method Summary | |
---|---|
String | getMultilineMessage() Retrieve the friendly multi-line error message.
|
int | getPosition() Retrieve the position of the error.
|
String | getPositionMarker() Retrieve a string useful for denoting where
the error occurred.
|
String | getXPath() Retrieve the expression containing the error.
|
org.jaxen.saxpath.XPathSyntaxException
.
Parameters: e the exception that caused this exception
Parameters: xpath the erroneous XPath expression position the position of the error message the error message
This returns a multi-line string that contains the original erroneous XPath expression with a marker underneath indicating exactly where the error occurred.
Returns: the multi-line error message
Returns: the position of the error
This is a string composed of whitespace and a marker at the position (see {@link #getPosition}) of the error. This is useful for creating friendly multi-line error displays.
Returns: the error position marker
Returns: the erroneous expression