Package net.sf.saxon.trans
Class XPathException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.xml.transform.TransformerException
net.sf.saxon.trans.XPathException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DynamicError
,StaticError
,ValidationException
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
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Subclass used to report circularities -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXPathException
(String message) XPathException
(String message, Throwable err) XPathException
(String message, SourceLocator loc) XPathException
(String message, SourceLocator loc, Throwable err) XPathException
(Throwable err) -
Method Summary
Modifier and TypeMethodDescriptionGet the local part of the name of the error codeGet the namespace URI part of the name of the error codeboolean
boolean
Force an exception to a static errorvoid
setErrorCode
(String code) Set the error code.void
setErrorCode
(String namespace, String code) Set the error code.void
setErrorObject
(Value value) void
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
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, setStackTrace, toString
-
Field Details
-
Constructor Details
-
XPathException
-
XPathException
-
XPathException
-
XPathException
-
XPathException
-
-
Method Details
-
makeStatic
Force an exception to a static error -
setIsTypeError
public void setIsTypeError(boolean is) -
isTypeError
public boolean isTypeError() -
setErrorCode
Set the error code. The error code is a QName; this method sets the local part of the name, and if no other namespace has been set, it sets the namespace of the error code to the standard system namespaceNamespaceConstant.ERR
- Parameters:
code
- The local part of the name of the error code
-
setErrorCode
Set the error code. The error code is a QName; this method sets both parts of the name.- Parameters:
namespace
- The namespace URI part of the name of the error codecode
- The local part of the name of the error code
-
getErrorCodeLocalPart
Get the local part of the name of the error code- Returns:
- the local part of the name of the error code
-
getErrorCodeNamespace
Get the namespace URI part of the name of the error code- Returns:
- the namespace URI part of the name of the error code
-
setErrorObject
-
getErrorObject
-
setHasBeenReported
public void setHasBeenReported() -
hasBeenReported
public boolean hasBeenReported()
-