package electrod

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

Module Libelectrod.MsgSource

Contains all error messages and error handling stuff.

Sourcemodule Location = Location

An abbreviation.

Setting up the logging machinery

Sourcemodule LoggingSetup : sig ... end
Sourceval debug : 'a Logs.log
Sourceval info : 'a Logs.log
Sourceval warn : 'a Logs.log
Sourceval err : ('a, 'b) Logs.msgf -> 'b
Sourceval style : Logs.level -> Fmt.style
Sourcemodule Extract : sig ... end

Messages (errors, warnings...)

Sourceval code : int -> string

code num takes a message number and prints is as an error code (4 (zero-padded) digits). DO NOT EVER --EVER!-- CHANGE THE NUMBER OF A MESSAGE (AT WORST, DELETE THE MESSAGE AND LET THE NUMBER BE LOST). ONLY ADD MESSAGES AT THE END OF THE FOLLOWING MESSAGING MODULES.

Errors that stop the program

Sourcemodule Fatal : sig ... end

Warnings (the program does not fail)

Sourcemodule Warn : sig ... end
OCaml

Innovation. Community. Security.