package plebeia

  1. Overview
  2. Docs

1 Open type for error descriptions

type t = ..

2 Errors are show-able.

val register_printer : (t -> string option) -> unit
val show : t -> string
val pp : Format.formatter -> t -> unit

2 Handling

exception Error of t
val raise : t -> 'error

Raise an Error t error of the given t

val from_Ok : ('a, t) result -> 'a

Raise an exception when it is Error t

OCaml

Innovation. Community. Security.