#[non_exhaustive]pub enum ErrorCode {
Show 24 variants
Xpst0008,
Xpst0017,
Xpdy0002,
Xpdy0050,
Xpty0004,
Xpty0018,
Xpty0019,
Xpty0020,
Foar0001,
Foar0002,
Foca0002,
Foch0001,
Fodt0001,
Forg0001,
Forg0006,
Forx0001,
Forx0002,
Forx0003,
Forx0004,
Xtde1360,
Xtde1390,
Host,
Unsupported,
Internal,
}Expand description
The error code of a failed compilation or evaluation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Xpst0008
XPST0008: a variable that is not in scope (static).
Xpst0017
XPST0017: no function with that name and arity (static).
Xpdy0002
XPDY0002: the context item is absent.
Xpdy0050
XPDY0050: the root of the tree containing the context item is not a document node.
Xpty0004
XPTY0004: type error.
Xpty0018
XPTY0018: the last step of a path returns both nodes and atomic values.
Xpty0019
XPTY0019: a step of a path (other than the last) returns an atomic value.
Xpty0020
XPTY0020: the context item of an axis step is not a node.
Foar0001
FOAR0001: division by zero.
Foar0002
FOAR0002: numeric operation overflow.
Foca0002
FOCA0002: invalid lexical value.
Foch0001
FOCH0001: a code point that is not a valid XML character.
Fodt0001
FODT0001: date/time value out of range.
Forg0001
FORG0001: invalid value for a cast or constructor.
Forg0006
FORG0006: invalid argument type (effective boolean value, sum).
Forx0001
FORX0001: invalid regular expression flags.
Forx0002
FORX0002: invalid regular expression.
Forx0003
FORX0003: the regular expression matches a zero-length string.
Forx0004
FORX0004: invalid replacement string.
Xtde1360
XTDE1360: current() where no current item exists (XSLT).
Xtde1390
XTDE1390: the argument of system-property() is not a valid QName (XSLT).
Host
An error reported by the host (the XSLT layer): variables, user functions,
document(). The code is in the message.
Unsupported
Not an XPath error: a valid construct or value that this crate refuses on purpose rather than evaluating it differently from the reference engine.
Internal
Not an XPath error: a broken invariant of this crate (a bug).