plebeia
Plebeia.Error
1 Open type for error descriptions
plebeia.msync
plebeia.test_utils
type t = ..
type t +=
| 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 : Format.formatter -> t -> unit
2 Handling
exception Error of t
val raise : t -> 'error
Raise an Error t error of the given t
Error t
t
val from_Ok : ('a, t) result -> 'a
Raise an exception when it is Error t