Dealing with stack backtraces.
The Backtrace module deals with two different kinds of backtraces:
Backtrace.get)Backtrace.Exn)type tA Backtrace.t is a snapshot of the stack obtained by calling Backtrace.get. It is
represented as a string with newlines separating the frames. sexp_of_t splits the
string at newlines and removes some of the cruft, leaving a human-friendly list of
frames, but to_string does not.
include sig ... endval sexp_of_t : t ‑> Base__.Sexplib.Sexp.tval get : ?at_most_num_frames:int ‑> unit ‑> tval to_string : t ‑> stringmodule Exn : sig ... endBacktrace.Exn has functions for controlling and printing the backtrace of the most
recently raised exception.