Module Error.Internal_repr

type info = 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.

val sexp_of_t : t -> Base.Sexp.t
val of_info : info -> t
val to_info : t -> info