Report.Error
type 'a t = 'a error
The type of errors, parameterized by their payload/parameters.
val name : _ t -> string
Return the name/short description of an error.
val mnemonic : _ t -> string
Return the mnemonic of an error.
val print : Stdlib.Format.formatter -> ('a t * 'a) -> unit
Print an error.
val print_hints : Stdlib.Format.formatter -> ('a t * 'a) -> unit
Print an error's hints.
val print_doc : Stdlib.Format.formatter -> _ t -> unit
Print the (long) documentation for an error.
val user_interrupt : unit t
Error for a user interrupt.
val timeout : unit t
Error for timeouts.
val spaceout : unit t
Error for spaceouts.
val internal_error : (Stdlib.Format.formatter -> unit) t
Internal error, the param is a delayed printer (typically created using `Format.dprintf`).
val uncaught_exn : (exn * Stdlib.Printexc.raw_backtrace) t
Error for an uncaught exn (together with a backtrace).