package protocol-9p

  1. Overview
  2. Docs

Common error reporting functions

type error = [
  1. | `Msg of string
    (*

    A fatal error condition; the string should be logged

    *)
]
type 'a t = ('a, error) result
val return : 'a -> ('a, error) result
val error_msg : ('a, Format.formatter, unit, ('b, [> `Msg of string ]) result) format4 -> 'a
val (>>=) : ('a, 'b) result -> ('a -> ('c, 'b) result) -> ('c, 'b) result
OCaml

Innovation. Community. Security.