Module Core_kernel.Error.Internal_repr

type info = Base__Error.t
type t =
| Could_not_construct of Base.Sexp.t
| String of string
| Exn of exn
| Sexp of Base.Sexp.t
| Tag_sexp of string * Base.Sexp.t * Base__.Source_code_position0.t option
| Tag_t of string * t
| Tag_arg of string * Base.Sexp.t * t
| Of_list of int option * t list
| With_backtrace of t * string

(** The second argument is the backtrace *)

The internal representation. It is exposed so that we can write efficient serializers outside of this module.

include sig ... end
val sexp_of_t : t ‑> Base__.Sexplib.Sexp.t
val of_info : info ‑> t
val to_info : t ‑> info