method ErrorTrace.trace
The frames of the ? operators this error crossed, innermost first (empty in profiles built with trace = false).
Example:
@error data Boom {}
fn inner() -> () | Boom {
fail Boom{}
}
fn outer() -> () | Boom {
inner()?
}
fn main() io {
match outer() {
Boom b => print("{b.trace()[0].r#fn}")
_ => {}
}
}Output
outer
fn trace() -> List<TraceFrame>Complexity. O(depth).
Since. 1.0.0-beta
Returns
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/types.oxl:952