Module Stdune__.Exn
exception
Code_error of Stdune.Sexp.t
An programming error, that should be reported upstream. The error message shouldn't try to be developer friendly rather than user friendly.
exception
Loc_error of Stdune__.Loc0.t * string
val fatalf : ?loc:Stdune__.Loc0.t -> ('a, unit, string, string, string, 'b) Stdlib.format6 -> 'a
val code_error : string -> (string * Stdune.Sexp.t) list -> _
val protect : f:(unit -> 'a) -> finally:(unit -> unit) -> 'a
val protectx : 'a -> f:('a -> 'b) -> finally:('a -> unit) -> 'b
val pp_uncaught : backtrace:string -> Stdlib.Format.formatter -> t -> unit
val raise_with_backtrace : exn -> Stdlib.Printexc.raw_backtrace -> _