Module Extension.Error

An extensible set of possible errors

type t = error = ..
type t +=
  1. | Configuration
type t +=
  1. | Invalid of string
type t +=
  1. | Exit_requested of int
type t +=
  1. | Unknown_plugin of string
type t +=
  1. | Bug of exn * string
val pp : Stdlib.Format.formatter -> t -> unit

pp ppf err outputs a human readable description of err

val register_printer : (t -> string option) -> unit

register_printer to_string registers a printer for a subset of the errors.