#[non_exhaustive]pub enum LimitExceeded {
Depth {
max: u32,
line: u32,
column: u32,
},
Nesting {
max: u32,
},
Stack {
max: u32,
},
TailCalls {
max: u32,
},
}Expand description
The default maximum element depth of a document (ValidateOptions::max_depth), and
the limits Error::Limit reports.
A limit that a document or a transformation exceeded: the input is refused rather
than processed with an unbounded call stack.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Depth
An element is nested deeper than max elements (the document element is at
depth 1); line and column (1-based) are the start of its start tag.
Fields
Nesting
Template rules, built-in template rules, named templates and stylesheet functions
are invoked one inside another more than max deep.
Stack
The invocations in progress, and the expressions they evaluate, use more than max
bytes of the call stack, measured from the start of the transformation (a
StackLimit): a stylesheet whose templates or functions need more stack per
level than the nesting allows for.
TailCalls
A template ends with an xsl:call-template, which ends with another, and so on,
more than max times in a row: tail calls, which need no stack (Saxon runs them in
place, as the executor does), but would run for ever when the recursion does not
end.
Implementations§
Source§impl LimitExceeded
impl LimitExceeded
Sourcepub const fn max(self) -> u32
pub const fn max(self) -> u32
The limit’s value (bytes for LimitExceeded::Stack).
Trait Implementations§
Source§impl Clone for LimitExceeded
impl Clone for LimitExceeded
Source§fn clone(&self) -> LimitExceeded
fn clone(&self) -> LimitExceeded
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more