package stdcompat
include module type of struct include Printexc end
Printexc.to_string_default e
returns a string representation of the exception e
, ignoring all registered exception printers.
Printexc.use_printers e
returns None
if there are no registered printers and Some s
with else as the resulting string otherwise.
Raw backtraces
Current call stack
Uncaught exceptions
val default_uncaught_exception_handler : exn -> Printexc.raw_backtrace -> unit
Printexc.default_uncaught_exception_handler
prints the exception and backtrace on standard error output.
Manipulation of backtrace information
These functions are used to traverse the slots of a raw backtrace and extract information from them in a programmer-friendly format.
Raw backtrace slots
Exception slots
type raw_backtrace = Printexc.raw_backtrace
type backtrace_slot = Printexc.backtrace_slot
module Slot = Printexc.Slot
type raw_backtrace_slot = Printexc.raw_backtrace_slot
val raise_with_backtrace : exn -> raw_backtrace -> 'a
val get_raw_backtrace_next_slot :
Printexc.raw_backtrace_slot ->
Printexc.raw_backtrace_slot option
val set_uncaught_exception_handler :
(exn -> Printexc.raw_backtrace -> unit) ->
unit
val backtrace_slots :
Printexc.raw_backtrace ->
Printexc.backtrace_slot array option
val raw_backtrace_length : Printexc.raw_backtrace -> int
val get_raw_backtrace_slot :
Printexc.raw_backtrace ->
int ->
Printexc.raw_backtrace_slot
val convert_raw_backtrace_slot :
Printexc.raw_backtrace_slot ->
Printexc.backtrace_slot
val get_callstack : int -> raw_backtrace
val get_raw_backtrace : unit -> Printexc.raw_backtrace
val print_raw_backtrace : out_channel -> Printexc.raw_backtrace -> unit
val raw_backtrace_to_string : Printexc.raw_backtrace -> string
val print_backtrace : out_channel -> unit
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>