package obus

  1. Overview
  2. Docs
Pure Ocaml implementation of the D-Bus protocol

Install

dune-project
 Dependency

Authors

Maintainers

Sources

1.2.2.tar.gz
sha256=3bf0aeb00bf90cd4111483b37cefcb39af38ad6db1aeb6949a2fbecc13ff9a90
md5=7dd48f9bde3e069898fa08e9972596b5

doc/obus/OBus_error/Register/index.html

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