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.result
val return : 'a -> ('a, error) Result.result
val error_msg : ('a, Format.formatter, unit, ('b, [> `Msg of string ]) Result.result) format4 -> 'a
val (>>=) : ('a, 'b) Result.result -> ('a -> ('c, 'b) Result.result) -> ('c, 'b) Result.result
OCaml

Innovation. Community. Security.