|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.jaxen.saxpath.SAXPathException
org.jaxen.saxpath.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.
Field Summary | |
---|---|
private static java.lang.String |
lineSeparator
|
private int |
position
|
private static long |
serialVersionUID
|
private java.lang.String |
xpath
|
Constructor Summary | |
---|---|
XPathSyntaxException(java.lang.String xpath,
int position,
java.lang.String message)
Creates a new XPathSyntaxException. |
Method Summary | |
---|---|
java.lang.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 java.lang.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. |
java.lang.String |
getXPath()
Returns the syntactically incorrect XPath expression. |
java.lang.String |
toString()
|
Methods inherited from class org.jaxen.saxpath.SAXPathException |
---|
getCause, initCause, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private java.lang.String xpath
private int position
private static final java.lang.String lineSeparator
Constructor Detail |
---|
public XPathSyntaxException(java.lang.String xpath, int position, java.lang.String message)
xpath
- the incorrect XPath expressionposition
- the index of the character at which the syntax error was detectedmessage
- the detail messageMethod Detail |
---|
public int getPosition()
Returns the index of the character at which the syntax error was detected in the XPath expression.
public java.lang.String getXPath()
Returns the syntactically incorrect XPath expression.
public java.lang.String toString()
toString
in class java.lang.Throwable
private java.lang.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.
public java.lang.String getMultilineMessage()
Returns a long formatted description of the error, including line breaks.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |