Module SkhcConfig.ErrSource

Operations on errors while parsing a configuration file.

Sourcetype t =
  1. | ParsingError of string
  2. | MissingSection of string
  3. | MissingKey of string

The type of errors appearing while parsing a configuration file.

Sourceval parsing_error : string -> t

parsing_error msg creates a ParsingError error with msg.

Sourceval missing_section : string -> t

missing_section msg creates a MissingSection error with msg.

Sourceval missing_key : string -> t

missing_key msg create a MissingKey error with msg

Sourceval to_string : t -> string

to_string error returns the string representation of error;