Class Error
java.lang.Object
net.sf.saxon.functions.AbstractFunction
net.sf.saxon.functions.SystemFunction
net.sf.saxon.functions.Error
- All Implemented Interfaces:
Callable, Function, GroundedValue, Item, Sequence
Implement XPath function fn:error()
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall(XPathContext context, Sequence[] arguments) Invoke the functionerror(XPathContext context, QNameValue errorCode, StringValue desc, SequenceIterator errObject) intgetSpecialProperties(Expression[] arguments) Determine the special properties of this function.booleanDetermine whether this is a vacuous expression as defined in the XQuery update specificationMethods inherited from class SystemFunction
dependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getCardinality, getCompilerName, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getNetCost, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getStaticBaseUriString, getStreamerName, importAttributes, isTrustedResultType, makeCall, makeFunction, makeFunctionCall, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, toShortString, toString, typeCheckCallerMethods inherited from class AbstractFunction
atomize, deepEquals, effectiveBooleanValue, getAnnotations, getStringValue, getStringValueCS, isArray, isMap, makeNewContext, simplify, typeCheckMethods inherited from class Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface GroundedValue
asIterable, concatenate, containsNode, materializeMethods inherited from interface Item
getLength, head, isStreamed, itemAt, iterate, reduce, subsequenceMethods inherited from interface Sequence
makeRepeatable
-
Constructor Details
-
Error
public Error()
-
-
Method Details
-
getSpecialProperties
Description copied from class:SystemFunctionDetermine the special properties of this function. The general rule is that a system function call is non-creative unless more details are defined in a subclass.- Overrides:
getSpecialPropertiesin classSystemFunction- Parameters:
arguments- the actual arguments supplied in a call to the function
-
isVacuousExpression
public boolean isVacuousExpression()Determine whether this is a vacuous expression as defined in the XQuery update specification- Returns:
- true if this expression is vacuous
-
error
public Item error(XPathContext context, QNameValue errorCode, StringValue desc, SequenceIterator errObject) throws XPathException - Throws:
XPathException
-
call
Description copied from interface:FunctionInvoke the function- Specified by:
callin interfaceCallable- Specified by:
callin interfaceFunction- Parameters:
context- the XPath dynamic evaluation contextarguments- the actual arguments to be supplied- Returns:
- the result of invoking the function
- Throws:
XPathException- if a dynamic error occurs within the function
-