mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-06 03:05:30 -05:00
add Exn_bt.pp
This commit is contained in:
parent
d384fbcc70
commit
6a0d58e6e0
2 changed files with 3 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ let[@inline] get_callstack n exn =
|
||||||
make exn bt
|
make exn bt
|
||||||
|
|
||||||
let show self = Printexc.to_string (fst self)
|
let show self = Printexc.to_string (fst self)
|
||||||
|
let pp out self = Format.pp_print_string out (show self)
|
||||||
let[@inline] raise self = Printexc.raise_with_backtrace (exn self) (bt self)
|
let[@inline] raise self = Printexc.raise_with_backtrace (exn self) (bt self)
|
||||||
|
|
||||||
type nonrec 'a result = ('a, t) result
|
type nonrec 'a result = ('a, t) result
|
||||||
|
|
|
||||||
|
|
@ -22,4 +22,6 @@ val raise : t -> 'a
|
||||||
val show : t -> string
|
val show : t -> string
|
||||||
(** Simple printing *)
|
(** Simple printing *)
|
||||||
|
|
||||||
|
val pp : Format.formatter -> t -> unit
|
||||||
|
|
||||||
type nonrec 'a result = ('a, t) result
|
type nonrec 'a result = ('a, t) result
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue