package obus

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

Module OBus_error.Register

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