|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.xml.transform.TransformerException
net.sf.saxon.trans.XPathException
public abstract class XPathException
XPathException is used to indicate an error in an XPath expression. It will generally be either a StaticError or a DynamicError; ValidationExceptions (arising from schema validation) form a third category
Nested Class Summary | |
---|---|
static class |
XPathException.Circularity
Subclass used to report circularities |
Constructor Summary | |
---|---|
XPathException(String message)
|
|
XPathException(String message,
SourceLocator loc)
|
|
XPathException(String message,
SourceLocator loc,
Throwable err)
|
|
XPathException(String message,
Throwable err)
|
|
XPathException(Throwable err)
|
Method Summary | |
---|---|
String |
getErrorCodeLocalPart()
Get the local part of the name of the error code |
String |
getErrorCodeNamespace()
Get the namespace URI part of the name of the error code |
Value |
getErrorObject()
|
boolean |
hasBeenReported()
|
boolean |
isTypeError()
|
StaticError |
makeStatic()
Force an exception to a static error |
void |
setErrorCode(String code)
Set the error code. |
void |
setErrorCode(String namespace,
String code)
Set the error code. |
void |
setErrorObject(Value value)
|
void |
setHasBeenReported()
|
void |
setIsTypeError(boolean is)
|
Methods inherited from class javax.xml.transform.TransformerException |
---|
getCause, getException, getLocationAsString, getLocator, getMessageAndLocation, initCause, printStackTrace, printStackTrace, printStackTrace, setLocator |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XPathException(String message)
public XPathException(Throwable err)
public XPathException(String message, Throwable err)
public XPathException(String message, SourceLocator loc)
public XPathException(String message, SourceLocator loc, Throwable err)
Method Detail |
---|
public StaticError makeStatic()
public void setIsTypeError(boolean is)
public boolean isTypeError()
public void setErrorCode(String code)
NamespaceConstant.ERR
code
- The local part of the name of the error codepublic void setErrorCode(String namespace, String code)
namespace
- The namespace URI part of the name of the error codecode
- The local part of the name of the error codepublic String getErrorCodeLocalPart()
public String getErrorCodeNamespace()
public void setErrorObject(Value value)
public Value getErrorObject()
public void setHasBeenReported()
public boolean hasBeenReported()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |