sig
type t = exn
exception Finally of t * t
exception Reraised of string * t
val reraise : t -> string -> 'a
val reraisef : t -> ('a, unit, string, unit -> 'b) format4 -> 'a
val to_string : t -> string
val sexp_of_t : t -> Sexplib.Sexp.t
val protectx : f:('a -> 'b) -> 'a -> finally:('a -> unit) -> 'b
val protect : f:(unit -> 'a) -> finally:(unit -> unit) -> 'a
val pp : Format.formatter -> t -> unit
val handle_uncaught : exit:bool -> (unit -> unit) -> unit
val handle_uncaught_with_exit_function :
exit:(int -> unit) -> (unit -> unit) -> unit
val reraise_uncaught : string -> (unit -> 'a) -> 'a
val backtrace : unit -> string
val ounit_tests : unit -> OUnit.test
val to_string : exn -> string
val to_string_hum : exn -> string
val unwrap : exn -> exn
module Exn_string :
sig
type t = Exn.Exn_string.t
val sexp_of_t : t -> Sexplib.Sexp.t
val t_of_sexp : Sexplib.Sexp.t -> t
val of_string : string -> t
val to_string : t -> string
val bin_size_t : t Bin_prot.Size.sizer
val bin_write_t : t Bin_prot.Map_to_safe.writer
val bin_write_t_ : t Bin_prot.Unsafe_write_c.writer
val bin_read_t : t Bin_prot.Read_ml.reader
val bin_read_t_ : t Bin_prot.Unsafe_read_c.reader
val bin_read_t__ : (int -> t) Bin_prot.Unsafe_read_c.reader
val bin_writer_t : t Bin_prot.Type_class.writer
val bin_reader_t : t Bin_prot.Type_class.reader
val bin_t : t Bin_prot.Type_class.t
val of_exn : exn -> t
end
val ounit_tests : unit -> OUnit.test
end