package devkit

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Devkit_core.ExnSource

Dealing with exceptions

Sourcetype 'a result = [
  1. | `Ok of 'a
  2. | `Exn of exn
]
Sourceval catch : ('a -> 'b) -> 'a -> 'b option
Sourceval default : 'a -> ('b -> 'a) -> 'b -> 'a
Sourceval suppress : ('a -> unit) -> 'a -> unit
Sourceval map : ('a -> 'b) -> 'a -> [> `Exn of exn | `Ok of 'b ]
Sourceval to_string : exn -> string
Sourceval str : exn -> string
Sourceval fail : ?exn:exn -> ('a, unit, string, 'b) format4 -> 'a
Sourceval invalid_arg : ('a, unit, string, 'b) format4 -> 'a
Sourceval get_backtrace : unit -> string list
OCaml

Innovation. Community. Security.