package stdcompat

  1. Overview
  2. Docs
include module type of struct include Stdlib.Printexc end
type t = exn = ..
val to_string_default : exn -> string
val use_printers : exn -> string option
type raw_backtrace_entry = Stdlib__Printexc.raw_backtrace_entry
val raw_backtrace_entries : Stdlib__Printexc.raw_backtrace -> raw_backtrace_entry array
val default_uncaught_exception_handler : exn -> Stdlib__Printexc.raw_backtrace -> unit
val backtrace_slots_of_raw_entry : raw_backtrace_entry -> Stdlib__Printexc.backtrace_slot array option
type raw_backtrace = Stdlib.Printexc.raw_backtrace
type backtrace_slot = Stdlib.Printexc.backtrace_slot
type location = Stdlib.Printexc.location = {
  1. filename : string;
  2. line_number : int;
  3. start_char : int;
  4. end_char : int;
}
val to_string : exn -> string
module Slot = Stdlib.Printexc.Slot
type raw_backtrace_slot = Stdlib.Printexc.raw_backtrace_slot
val raise_with_backtrace : exn -> raw_backtrace -> 'a
val get_raw_backtrace_next_slot : Stdlib.Printexc.raw_backtrace_slot -> Stdlib.Printexc.raw_backtrace_slot option
val set_uncaught_exception_handler : (exn -> Stdlib.Printexc.raw_backtrace -> unit) -> unit
val backtrace_slots : Stdlib.Printexc.raw_backtrace -> Stdlib.Printexc.backtrace_slot array option
val raw_backtrace_length : Stdlib.Printexc.raw_backtrace -> int
val get_raw_backtrace_slot : Stdlib.Printexc.raw_backtrace -> int -> Stdlib.Printexc.raw_backtrace_slot
val convert_raw_backtrace_slot : Stdlib.Printexc.raw_backtrace_slot -> Stdlib.Printexc.backtrace_slot
val exn_slot_id : exn -> int
val exn_slot_name : exn -> string
val get_callstack : int -> raw_backtrace
val get_raw_backtrace : unit -> Stdlib.Printexc.raw_backtrace
val print_raw_backtrace : Stdlib.out_channel -> Stdlib.Printexc.raw_backtrace -> unit
val raw_backtrace_to_string : Stdlib.Printexc.raw_backtrace -> string
val print_backtrace : Stdlib.out_channel -> unit
val get_backtrace : unit -> string
val record_backtrace : bool -> unit
val backtrace_status : unit -> bool
val register_printer : (exn -> string option) -> unit
val print : ('a -> 'b) -> 'a -> 'b
val catch : ('a -> 'b) -> 'a -> 'b
OCaml

Innovation. Community. Security.