package dune

  1. Overview
  2. Docs

Exceptions

exception Code_error of Usexp.t

An programming error, that should be reported upstream. The error message shouldn't try to be developer friendly rather than user friendly.

exception Fatal_error of string

A fatal error, that should be reported to the user in a nice way

exception Loc_error of Usexp.Loc.t * string
val fatalf : ?loc:Usexp.Loc.t -> ('a, unit, string, string, string, 'b) format6 -> 'a
val code_error : string -> (string * Usexp.t) list -> _
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 raise_with_backtrace : exn -> Printexc.raw_backtrace -> _
OCaml

Innovation. Community. Security.