XPathErrorCode class final

XPath 3.1 and XQuery standard error codes.

See www.w3.org/2005/xqt-errors/ for details.

Annotations
  • @immutable

Constructors

XPathErrorCode(String name, [String message = 'Unidentified error', String namespaceUri = standardNamespaceUri])
Creates a new XPathErrorCode with the given name, message, and optional namespaceUri.
const

Properties

code → String
The error code name (alias for name).
no setter
hashCode → int
The hash code for this object.
no setteroverride
message → String
The official standard error description.
final
name → String
The error code name (e.g. 'XPTY0004').
final
namespaceUri → String
The namespace URI of the error code.
final
qname → XPathQName
The qualified name of the error code in its error namespace.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

format([String? details]) → String
Formats the error message with the error code.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

tryFromCode(String code) → XPathErrorCode?
Looks up a known XPathErrorCode by its code name or qualified name, or returns null.

Constants

FOAP0001 → const XPathErrorCode
Wrong number of arguments.
FOAR0001 → const XPathErrorCode
Division by zero.
FOAR0002 → const XPathErrorCode
Numeric operation overflow/underflow.
FOAY0001 → const XPathErrorCode
Array index out of bounds.
FOAY0002 → const XPathErrorCode
Negative array length.
FOCA0001 → const XPathErrorCode
Input value too large for decimal.
FOCA0002 → const XPathErrorCode
Invalid lexical value.
FOCA0003 → const XPathErrorCode
Input value too large for integer.
FOCA0005 → const XPathErrorCode
NaN supplied as float/double value.
FOCA0006 → const XPathErrorCode
String to be cast to decimal has too many digits of precision.
FOCH0001 → const XPathErrorCode
Codepoint not valid.
FOCH0002 → const XPathErrorCode
Unsupported collation.
FOCH0003 → const XPathErrorCode
Unsupported normalization form.
FOCH0004 → const XPathErrorCode
Collation does not support collation units.
FODC0001 → const XPathErrorCode
No context document.
FODC0002 → const XPathErrorCode
Error retrieving resource.
FODC0003 → const XPathErrorCode
Function not defined as deterministic.
FODC0004 → const XPathErrorCode
Invalid collection URI.
FODC0005 → const XPathErrorCode
Invalid argument to fn:doc or fn:doc-available.
FODC0006 → const XPathErrorCode
String passed to fn:parse-xml is not a well-formed XML document.
FODT0001 → const XPathErrorCode
Overflow/underflow in date/time operation.
FODT0002 → const XPathErrorCode
Overflow/underflow in duration operation.
FODT0003 → const XPathErrorCode
Invalid timezone value.
FOER0000 → const XPathErrorCode
Unidentified error.
FOJS0001 → const XPathErrorCode
JSON syntax error.
FOJS0003 → const XPathErrorCode
JSON duplicate keys.
FOJS0005 → const XPathErrorCode
Invalid options.
FOJS0006 → const XPathErrorCode
Invalid XML representation of JSON.
FOJS0007 → const XPathErrorCode
Bad JSON escape sequence.
FONS0004 → const XPathErrorCode
No namespace found for prefix.
FORG0001 → const XPathErrorCode
Invalid value for cast/constructor.
FORG0002 → const XPathErrorCode
Invalid argument to fn:resolve-uri().
FORG0003 → const XPathErrorCode
Sequence contains more than one item.
FORG0004 → const XPathErrorCode
Sequence is empty.
FORG0005 → const XPathErrorCode
Sequence does not contain exactly one item.
FORG0006 → const XPathErrorCode
Invalid argument type.
FORG0008 → const XPathErrorCode
Both arguments to fn:dateTime have a specified timezone.
FORG0010 → const XPathErrorCode
Invalid date/time.
FORX0001 → const XPathErrorCode
Invalid regular expression flags.
FORX0002 → const XPathErrorCode
Invalid regular expression.
FORX0003 → const XPathErrorCode
Regular expression matches zero-length string.
FORX0004 → const XPathErrorCode
Invalid replacement string.
FOTY0012 → const XPathErrorCode
Argument contains node without typed value.
FOTY0013 → const XPathErrorCode
The argument to fn:data() contains a function item.
FOTY0015 → const XPathErrorCode
An argument to fn:deep-equal() contains a function item.
FOUT1170 → const XPathErrorCode
Resource is not a valid URI reference, or contains a fragment identifier.
FOUT1190 → const XPathErrorCode
Cannot decode resource using specified encoding.
FOUT1200 → const XPathErrorCode
Cannot retrieve resource.
SENR0001 → const XPathErrorCode
Item in sequence normalization is an attribute node or namespace node.
SEPM0004 → const XPathErrorCode
Invalid doctype-system or standalone parameter.
SEPM0016 → const XPathErrorCode
Invalid serialization parameter value.
SEPM0017 → const XPathErrorCode
Error evaluating serialization parameter setting.
SEPM0018 → const XPathErrorCode
Use-character-maps sequence length greater than one.
SEPM0019 → const XPathErrorCode
Duplicate serialization parameter.
SERE0020 → const XPathErrorCode
Numeric value cannot be represented in JSON.
SERE0022 → const XPathErrorCode
Duplicate map keys in JSON output.
SERE0023 → const XPathErrorCode
Sequence length greater than one in JSON output.
standardNamespaceUri → const String
The standard XPath/XQuery error namespace URI.
values → const List<XPathErrorCode>
Standard list of predefined XPath error codes.
XPDY0002 → const XPathErrorCode
Evaluation relies on dynamic context that has not been assigned a value.
XPDY0050 → const XPathErrorCode
Dynamic type does not match treat expression.
XPDY0130 → const XPathErrorCode
An implementation-dependent limit has been exceeded.
XPST0001 → const XPathErrorCode
Static context component not assigned a value.
XPST0003 → const XPathErrorCode
Expression is not a valid instance of the grammar.
XPST0005 → const XPathErrorCode
Static type of expression is empty-sequence().
XPST0008 → const XPathErrorCode
Undefined name in static context.
XPST0010 → const XPathErrorCode
Namespace axis is not supported.
XPST0017 → const XPathErrorCode
Function signature does not match.
XPST0051 → const XPathErrorCode
Atomic type not defined in in-scope schema types.
XPST0080 → const XPathErrorCode
Target type of cast is xs:NOTATION, xs:anySimpleType, or xs:anyAtomicType.
XPST0081 → const XPathErrorCode
Namespace prefix cannot be expanded using statically known namespaces.
XPTY0004 → const XPathErrorCode
Type error.
XPTY0018 → const XPathErrorCode
Result of path operator contains both nodes and non-nodes.
XPTY0019 → const XPathErrorCode
Path expression does not evaluate to a sequence of nodes.
XPTY0020 → const XPathErrorCode
Context item in axis step is not a node.
XQDY0137 → const XPathErrorCode
No two keys in a map may have the same key value.
XQST0039 → const XPathErrorCode
Duplicate parameter name in function definition.
XQST0070 → const XPathErrorCode
Reserved namespace URI in namespace declaration or EQName.