Module Jv.Error
Error objects.
type enum
=[
]
The type for a selection of DOMException error names. Do not match on
`Other
if your error is not listed, use a catch all_
branch and consultname
. This makes sure you code will work correctly if new cases are added in the future.
type t
The type for
Error
objects.
val v : ?name:Jstr.t -> Jstr.t -> t
v ~name msg
is an error with messagemsg
and namename
(defaults to"Error"
).