package extism

  1. Overview
  2. Docs

Extism error type

type t = [
  1. | `Msg of string
]

Error type

exception Error of t

Exception type

val unwrap : ('a, t) result -> 'a

Like Result.get_ok for t

val throw : t -> 'a

Raise t as an exception

OCaml

Innovation. Community. Security.