public class XPathSyntaxException extends JaxenException
XPath,
Serialized Formdetail| Constructor and Description |
|---|
XPathSyntaxException(String xpath,
int position,
String message)
Construct.
|
| 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 occured.
|
String |
getXPath()
Retrieve the expression containing the error.
|
getRootCausegetDetail, getMessage, printStackTrace, printStackTrace, printStackTraceaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toStringpublic 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 © 2013. All Rights Reserved.