package sugar
Module type Params.Strict_errorSource
This signature describes an Error module that has some control over unexpected exceptions.
If you want to handle unexpected exceptions as they appear, you should probably define an error case with the type exn, like in the code below:
module Error = struct
type t =
| Because_reasons
| Unexpected of exn
let panic e = Unexpected e
end