Moonpool.Exn_bt
Exception with backtrace.
Type changed
An exception bundled with a backtrace
type t = exn * Stdlib.Printexc.raw_backtrace
val exn : t -> exn
val bt : t -> Stdlib.Printexc.raw_backtrace
val raise : t -> 'a
val get : exn -> t
val get_callstack : int -> exn -> t
val make : exn -> Stdlib.Printexc.raw_backtrace -> t
Trivial builder
val show : t -> string
Simple printing
val pp : Stdlib.Format.formatter -> t -> unit
val unwrap : 'a result -> 'a
unwrap (Ok x)
is x
, unwrap (Error ebt)
re-raises ebt
.