|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception com.xml_project.morganaxquery.XPathException
public class XPathException
An XPathException is raised, if an error occurred during compilation or execution of an XPath or XQuery expression.
Nested Class Summary | |
---|---|
static class |
XPathException.ExceptionCode
Error conditions as in http://www.w3.org/TR/xquery/#id-errors |
Constructor Summary | |
---|---|
XPathException(XPathException.ExceptionCode code,
java.lang.String message)
Create a new XPathException. |
|
XPathException(XPathException.ExceptionCode code,
java.lang.String message,
int line,
int column)
Create a new XPathException. |
|
XPathException(XPathException.ExceptionCode code,
java.lang.String message,
com.xml_project.morganaxquery.lexer.LexedSymbol.Position pos)
Create a new XPathException. |
|
XPathException(XS_QName errorName,
java.lang.String message,
XdmSequence errorItem)
Create a new XPathException. |
Method Summary | |
---|---|
javax.xml.namespace.QName |
getErrorName()
Returns the error condition as a QName object. |
XPathException.ExceptionCode |
getExceptionCode()
Returns the error condition as an ExceptionCode object |
java.lang.String |
getMessage()
|
java.lang.String |
getRawMessage()
Returns only the message associated with this expection without error condition and/or position. |
boolean |
is(XPathException.ExceptionCode code)
Test whether the error condition is of a special type |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XPathException(XS_QName errorName, java.lang.String message, XdmSequence errorItem)
Create a new XPathException.
errorName
- message
- errorItem
- public XPathException(XPathException.ExceptionCode code, java.lang.String message)
Create a new XPathException.
code
- message
- public XPathException(XPathException.ExceptionCode code, java.lang.String message, com.xml_project.morganaxquery.lexer.LexedSymbol.Position pos)
Create a new XPathException.
code
- message
- pos
- public XPathException(XPathException.ExceptionCode code, java.lang.String message, int line, int column)
Create a new XPathException.
code
- message
- line
- column
- Method Detail |
---|
public XPathException.ExceptionCode getExceptionCode()
Returns the error condition as an ExceptionCode object
public boolean is(XPathException.ExceptionCode code)
Test whether the error condition is of a special type
code
- the error condition to test for.
public javax.xml.namespace.QName getErrorName()
Returns the error condition as a QName object.
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getRawMessage()
Returns only the message associated with this expection without error condition and/or position.
public java.lang.String toString()
toString
in class java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |