|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.xmlpull.v1.builder.XmlBuilderException
org.xmlpull.v1.builder.xpath.saxpath.SAXPathException
org.xmlpull.v1.builder.xpath.jaxen.JaxenException
org.xmlpull.v1.builder.xpath.jaxen.XPathSyntaxException
public class XPathSyntaxException
Indicates an error during parsing of an XPath expression.
XPath,
Serialized Form| Field Summary |
|---|
| Fields inherited from class org.xmlpull.v1.builder.XmlBuilderException |
|---|
detail |
| Constructor Summary | |
|---|---|
XPathSyntaxException(java.lang.String xpath,
int position,
java.lang.String message)
Construct. |
|
| Method Summary | |
|---|---|
java.lang.String |
getMultilineMessage()
Retrieve the friendly multi-line error message. |
int |
getPosition()
Retrieve the position of the error. |
java.lang.String |
getPositionMarker()
Retrieve a string useful for denoting where the error occured. |
java.lang.String |
getXPath()
Retrieve the expression containing the error. |
| Methods inherited from class org.xmlpull.v1.builder.xpath.jaxen.JaxenException |
|---|
getRootCause |
| Methods inherited from class org.xmlpull.v1.builder.XmlBuilderException |
|---|
getDetail, getMessage, printStackTrace, printStackTrace, printStackTrace |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XPathSyntaxException(java.lang.String xpath,
int position,
java.lang.String message)
xpath - The erroneous xpath.position - The position of the error.message - The error message.| Method Detail |
|---|
public int getPosition()
public java.lang.String getXPath()
public java.lang.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 java.lang.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 | ||||||||