org.jaxen.saxpath
Class XPathSyntaxException
public class XPathSyntaxException
Represents a syntax error in an XPath expression.
This is a compile-time error that is detectable irrespective of
the context in which the XPath expression is evaluated.
XPathSyntaxException(String xpath, int position, String message) - Creates a new XPathSyntaxException.
|
String | getMultilineMessage() -
Returns a long formatted description of the error,
including line breaks.
|
int | getPosition() -
Returns the index of the character at which the syntax error was detected
in the XPath expression.
|
private String | getPositionMarker() -
Returns a string in the form
" ^" which, when placed on the line
below the XPath expression in a monospaced font, should point to the
location of the error.
|
String | getXPath() -
Returns the syntactically incorrect XPath expression.
|
String | toString()
|
lineSeparator
private static final String lineSeparator
position
private int position
serialVersionUID
private static final long serialVersionUID
xpath
private String xpath
XPathSyntaxException
public XPathSyntaxException(String xpath,
int position,
String message)
Creates a new XPathSyntaxException.
xpath
- the incorrect XPath expressionposition
- the index of the character at which the syntax error was detectedmessage
- the detail message
getMultilineMessage
public String getMultilineMessage()
Returns a long formatted description of the error,
including line breaks.
- a longer description of the error on multiple lines
getPosition
public int getPosition()
Returns the index of the character at which the syntax error was detected
in the XPath expression.
- the character index in the XPath expression
at which the syntax error was detected
getPositionMarker
private String getPositionMarker()
Returns a string in the form " ^"
which, when placed on the line
below the XPath expression in a monospaced font, should point to the
location of the error.
getXPath
public String getXPath()
Returns the syntactically incorrect XPath expression.
- the syntactically incorrect XPath expression
toString
public String toString()