package dune

  1. Overview
  2. Docs

Exceptions

type t = exn
val raise : exn -> _
val raise_notrace : exn -> _
val reraise : exn -> _
val protect : f:(unit -> 'a) -> finally:(unit -> unit) -> 'a
val protectx : 'a -> f:('a -> 'b) -> finally:('a -> unit) -> 'b
val pp_uncaught : backtrace:string -> Format.formatter -> t -> unit
val pp : Format.formatter -> t -> unit
val raise_with_backtrace : exn -> Printexc.raw_backtrace -> _
val equal : t -> t -> bool
val hash : t -> int
val to_dyn : t -> Dyn.t
OCaml

Innovation. Community. Security.