net.sf.saxon.trans

Class DynamicError


public class DynamicError
extends XPathException

Subclass of XPathException used for dynamic errors

Nested Class Summary

Nested classes/interfaces inherited from class net.sf.saxon.trans.XPathException

XPathException.Circularity

Constructor Summary

DynamicError(String message)
DynamicError(String message, SourceLocator loc)
DynamicError(String message, SourceLocator loc, Throwable err)
DynamicError(String message, String errorCode)
DynamicError(String message, String errorCode, XPathContext context)
DynamicError(String message, Throwable err)
DynamicError(Throwable err)

Method Summary

XPathContext
getXPathContext()
static DynamicError
makeDynamicError(TransformerException err)
void
maybeSetLocation(SourceLocator locator, XPathContext context)
Set the location and/or context of a message, only if they are not already set
void
setXPathContext(XPathContext context)

Methods inherited from class net.sf.saxon.trans.XPathException

getErrorCodeLocalPart, getErrorCodeNamespace, getErrorObject, getXPathContext, hasBeenReported, isStaticError, isTypeError, makeStatic, makeXPathException, maybeSetContext, maybeSetLocation, setErrorCode, setErrorCode, setErrorObject, setHasBeenReported, setIsStaticError, setIsTypeError, setXPathContext

Constructor Details

DynamicError

public DynamicError(String message)

DynamicError

public DynamicError(String message,
                    SourceLocator loc)

DynamicError

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

DynamicError

public DynamicError(String message,
                    String errorCode)

DynamicError

public DynamicError(String message,
                    String errorCode,
                    XPathContext context)

DynamicError

public DynamicError(String message,
                    Throwable err)

DynamicError

public DynamicError(Throwable err)

Method Details

getXPathContext

public XPathContext getXPathContext()
Overrides:
getXPathContext in interface XPathException

makeDynamicError

public static DynamicError makeDynamicError(TransformerException err)

maybeSetLocation

public void maybeSetLocation(SourceLocator locator,
                             XPathContext context)
Set the location and/or context of a message, only if they are not already set
Parameters:
locator - the current location (or null)
context - the current context (or null)

setXPathContext

public void setXPathContext(XPathContext context)
Overrides:
setXPathContext in interface XPathException