public class XPathSyntaxException extends JaxenException
| Modifier and Type | Field and Description |
|---|---|
private int |
position
The position of the error
|
private static long |
serialVersionUID |
private java.lang.String |
xpath
The textual XPath expression
|
javaVersion| Constructor and Description |
|---|
XPathSyntaxException(java.lang.String xpath,
int position,
java.lang.String message)
Constructor
|
XPathSyntaxException(XPathSyntaxException e)
Create a new XPathSyntaxException wrapping an existing
org.jaxen.saxpath.XPathSyntaxException. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMultilineMessage()
Retrieve the friendly multi-line error message.
|
int |
getPosition()
Retrieve the position of the error.
|
java.lang.String |
getPositionMarker()
Retrieve a string useful for denoting where
the error occurred.
|
java.lang.String |
getXPath()
Retrieve the expression containing the error.
|
getCause, initCause, printStackTrace, printStackTraceprivate static final long serialVersionUID
private java.lang.String xpath
private int position
public XPathSyntaxException(XPathSyntaxException e)
org.jaxen.saxpath.XPathSyntaxException.e - the exception that caused this exceptionpublic XPathSyntaxException(java.lang.String xpath,
int position,
java.lang.String message)
xpath - the erroneous XPath expressionposition - the position of the errormessage - the error messagepublic int getPosition()
public java.lang.String getXPath()
public java.lang.String getPositionMarker()
This is a string composed of whitespace and
a marker at the position (see getPosition())
of the error. This is useful for creating
friendly multi-line error displays.
public java.lang.String getMultilineMessage()
This returns a multi-line string that contains the original erroneous XPath expression with a marker underneath indicating exactly where the error occurred.