net.sf.saxon.trans

Class XPathException

public abstract class XPathException extends TransformerException

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 classXPathException.Circularity
Subclass used to report circularities
Field Summary
StringerrorCode
StringerrorCodeNamespace
ValueerrorObject
Constructor Summary
XPathException(String message)
XPathException(Throwable err)
XPathException(String message, Throwable err)
XPathException(String message, SourceLocator loc)
XPathException(String message, SourceLocator loc, Throwable err)
Method Summary
StringgetErrorCodeLocalPart()
Get the local part of the name of the error code
StringgetErrorCodeNamespace()
Get the namespace URI part of the name of the error code
ValuegetErrorObject()
booleanhasBeenReported()
booleanisTypeError()
StaticErrormakeStatic()
Force an exception to a static error
voidsetErrorCode(String code)
Set the error code.
voidsetErrorCode(String namespace, String code)
Set the error code.
voidsetErrorObject(Value value)
voidsetHasBeenReported()
voidsetIsTypeError(boolean is)

Field Detail

errorCode

String errorCode

errorCodeNamespace

String errorCodeNamespace

errorObject

Value errorObject

Constructor Detail

XPathException

public XPathException(String message)

XPathException

public XPathException(Throwable err)

XPathException

public XPathException(String message, Throwable err)

XPathException

public XPathException(String message, SourceLocator loc)

XPathException

public XPathException(String message, SourceLocator loc, Throwable err)

Method Detail

getErrorCodeLocalPart

public String getErrorCodeLocalPart()
Get the local part of the name of the error code

Returns: the local part of the name of the error code

getErrorCodeNamespace

public String 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

getErrorObject

public Value getErrorObject()

hasBeenReported

public boolean hasBeenReported()

isTypeError

public boolean isTypeError()

makeStatic

public StaticError makeStatic()
Force an exception to a static error

setErrorCode

public void setErrorCode(String code)
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 namespace ERR

Parameters: code The local part of the name of the error code

setErrorCode

public void setErrorCode(String namespace, String code)
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 code code The local part of the name of the error code

setErrorObject

public void setErrorObject(Value value)

setHasBeenReported

public void setHasBeenReported()

setIsTypeError

public void setIsTypeError(boolean is)