|
|||||||||||
| 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.JaxenException
org.jaxen.XPathSyntaxException
Indicates an error during parsing of an XPath expression.
| Constructor Summary | |
XPathSyntaxException(String xpath,
int position,
String message)
Constructor |
|
XPathSyntaxException(XPathSyntaxException e)
Create a new XPathSyntaxException wrapping an existing org.jaxen.saxpath.XPathSyntaxException. |
|
| Method Summary | |
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. |
| 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, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public XPathSyntaxException(XPathSyntaxException e)
org.jaxen.saxpath.XPathSyntaxException.
e - the exception that caused this exception
public XPathSyntaxException(String xpath,
int position,
String message)
xpath - the erroneous XPath expressionposition - the position of the errormessage - the error message| Method Detail |
public 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.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||