public class XPathSyntaxException extends JaxenException
Constructor and Description |
---|
XPathSyntaxException(String xpath,
int position,
String message)
Constructor
|
XPathSyntaxException(XPathSyntaxException e)
Create a new XPathSyntaxException wrapping an existing
org.jaxen.saxpath.XPathSyntaxException . |
Modifier and Type | Method and Description |
---|---|
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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public XPathSyntaxException(XPathSyntaxException e)
org.jaxen.saxpath.XPathSyntaxException
.e
- the exception that caused this exceptionpublic int getPosition()
public String getXPath()
public 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 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–2022 The Jaxen Project. All rights reserved.