public class XPathSyntaxException extends JaxenException
Constructor | 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 | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCause, initCause, printStackTrace, printStackTrace
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.
Copyright © 2001–2018 Codehaus. All rights reserved.