package plebeia

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

1 Open type for error descriptions

type t = ..
type t +=
  1. | String of string
    (*

    Unstructured string error message

    *)

2 Errors are show-able.

val register_printer : (t -> string option) -> unit
val show : t -> string
val pp : Stdlib.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) Stdlib.result -> 'a

Raise an exception when it is Error t

OCaml

Innovation. Community. Security.