Files
Thomas Leonard 5def4159ff Remove lwt from directory names
Makes it match the new package names, and also will shrink the diff for
the Eio port.
2024-11-07 13:16:31 +00:00

15 lines
283 B
OCaml

(** Errors returned by calls. *)
type t = [
| `Exception of Exception.t
| `Cancelled
]
let pp f = function
| `Exception ex -> Exception.pp f ex
| `Cancelled -> Fmt.pf f "cancelled"
let exn ?ty msg =
msg |> Fmt.kstr @@ fun reason ->
`Exception (Exception.v ?ty reason)