1
val to_string : exn -> string
2
val print : ('a -> 'b) -> 'a -> 'b
3
val catch : ('a -> 'b) -> 'a -> 'b
4
val print_backtrace : out_channel -> unit
5
val get_backtrace : unit -> string
6
val record_backtrace : bool -> unit
7
val backtrace_status : unit -> bool
8
val register_printer : (exn -> string option) -> unit
10
val get_raw_backtrace : unit -> raw_backtrace
11
val print_raw_backtrace : out_channel -> raw_backtrace -> unit
12
val raw_backtrace_to_string : raw_backtrace -> string
13
val get_callstack : int -> raw_backtrace
14
val set_uncaught_exception_handler : (exn -> raw_backtrace -> unit) -> unit
16
val backtrace_slots : raw_backtrace -> backtrace_slot array option
25
type t = backtrace_slot
26
val is_raise : t -> bool
27
val location : t -> location option
28
val format : int -> t -> string option
30
type raw_backtrace_slot
31
val raw_backtrace_length : raw_backtrace -> int
32
val get_raw_backtrace_slot : raw_backtrace -> int -> raw_backtrace_slot
33
val convert_raw_backtrace_slot : raw_backtrace_slot -> backtrace_slot
34
val exn_slot_id : exn -> int
35
val exn_slot_name : exn -> string