package moonpool

  1. Overview
  2. Docs

Module Moonpool.Exn_btSource

Exception with backtrace.

Type changed

  • since 0.7
  • since 0.6

An exception bundled with a backtrace

Sourceval exn : t -> exn
Sourceval raise : t -> 'a
Sourceval get : exn -> t
Sourceval get_callstack : int -> exn -> t
Sourceval make : exn -> Printexc.raw_backtrace -> t

Trivial builder

Sourceval show : t -> string

Simple printing

Sourceval pp : Format.formatter -> t -> unit
Sourcetype nonrec 'a result = ('a, t) result
Sourceval unwrap : 'a result -> 'a

unwrap (Ok x) is x, unwrap (Error ebt) re-raises ebt.

  • since 0.7