package obus

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

Register an error. The typical use of the functor is:

exception My_exception of string
let module M =
  OBus_error.Register(struct
                        exception E = My_exception
                        let name = "my.exception.name"
                      end)
in ()

But you can also write this with the syntax extension:

exception My_exception of string
  [@@obus "my.exception.name"]

Parameters

module Error : Error

Signature

OCaml

Innovation. Community. Security.