Module Caml_js_exceptions

type t =
  1. | Any : 'a -> t
exception Error of t
val internalToOCamlException : Bs_stdlib_mini.Obj.t -> exn

This function has to be in this module Since Error is defined here

val caml_as_js_exn : exn -> t option