Module Sexp_conv.Exn_converter
val add_auto : ?finalise:bool -> exn -> (exn -> Sexplib0.Sexp.t) -> unitval add : ?finalise:bool -> extension_constructor -> (exn -> Sexplib0.Sexp.t) -> unitadd ?finalise constructor sexp_of_exnregisters exception S-expression convertersexp_of_exnfor exceptions with the givenconstructor.NOTE: If
finaliseistrue, then the exception will be automatically registered for removal with the GC (default). Finalisation will not work with exceptions that have been allocated outside the heap, which is the case for some standard ones e.g.Sys_error.- parameter finalise
default =
true
module For_unit_tests_only : sig ... end