|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.xml_project.morganaxproc.xquery.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,
String message)
Create a new XPathException. |
|
XPathException(XPathException.ExceptionCode code,
String message,
int line,
int column)
Create a new XPathException. |
|
XPathException(XPathException.ExceptionCode code,
String message,
com.xml_project.morganaxproc.xquery.lexer.LexedSymbol.Position pos)
Create a new XPathException. |
|
XPathException(XS_QName errorName,
String message,
XdmSequence errorItem)
Create a new XPathException. |
|
| Method Summary | |
|---|---|
QName |
getErrorName()
Returns the error condition as a QName object. |
XPathException.ExceptionCode |
getExceptionCode()
Returns the error condition as an ExceptionCode object |
String |
getMessage()
|
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 |
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,
String message,
XdmSequence errorItem)
Create a new XPathException.
errorName - message - errorItem -
public XPathException(XPathException.ExceptionCode code,
String message)
Create a new XPathException.
code - message -
public XPathException(XPathException.ExceptionCode code,
String message,
com.xml_project.morganaxproc.xquery.lexer.LexedSymbol.Position pos)
Create a new XPathException.
code - message - pos -
public XPathException(XPathException.ExceptionCode code,
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 QName getErrorName()
Returns the error condition as a QName object.
public String getMessage()
getMessage in class Throwablepublic String getRawMessage()
Returns only the message associated with this expection without error condition and/or position.
public String toString()
toString in class Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||