public abstract class XPathException extends TransformerException
Modifier and Type | Class and Description |
---|---|
static class |
XPathException.Circularity
Subclass used to report circularities
|
Modifier and Type | Field and Description |
---|---|
(package private) String |
errorCode |
(package private) String |
errorCodeNamespace |
(package private) Value |
errorObject |
Constructor and Description |
---|
XPathException(String message) |
XPathException(String message,
SourceLocator loc) |
XPathException(String message,
SourceLocator loc,
Throwable err) |
XPathException(String message,
Throwable err) |
XPathException(Throwable err) |
Modifier and Type | Method and Description |
---|---|
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) |
getCause, getException, getLocationAsString, getLocator, getMessageAndLocation, initCause, printStackTrace, printStackTrace, printStackTrace, setLocator
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, setStackTrace, toString
String errorCodeNamespace
String errorCode
Value errorObject
public XPathException(String message)
public XPathException(Throwable err)
public XPathException(String message, SourceLocator loc)
public XPathException(String message, SourceLocator loc, Throwable err)
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()