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