package links

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

Innovation. Community. Security.