package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.1.tar.gz
sha256=91dc3168bc12fdd6032c16f9990018fd54f91cea50d9f6eb798e4d5eecd9c6a6
sha512=a93c4bf39d80d2c595d361b393f0f1fd2fd078e5bd714988e835a0b5ac8c8c48d3b4cbe2e11d33c9168d9f2f44818b6a60e38b32773bd4967c24794abbf323dd

doc/shakuhachi.libs/Skhclibs/Error/index.html

Module Skhclibs.ErrorSource

Operations on errors.

Sourcetype t =
  1. | SqlError of {
    1. rc : Sqlite3.Rc.t;
    2. message : string;
    }
    (*

    SqlError occures while manipulating the database

    *)
  2. | LoadConfigError of SkhcConfig.Err.t
    (*

    LoadConfigError occures when trying to load a configuration file.

    *)
  3. | FileCreation of string
    (*

    FileCreation occures when a file creation file.

    *)
  4. | Message of string
    (*

    Message is a raw error message.

    *)
  5. | Exn of exn
    (*

    Exn is an exception.

    *)

type of shakuhachi error.

Sourceval sql_error : Sqlite3.Rc.t -> string -> t

sql_error rc msg creates a sql error with rc and msg.

Sourceval sql_error' : (Sqlite3.Rc.t * string) -> t

sql_error (rc, msg) creates a sql error with rc and msg.

Sourceval load_config_error : SkhcConfig.Err.t -> t

load_config_error error creates an error from a SkhcConfig.Err.t error.

Sourceval file_creation : string -> t

file_creation msg cretes an error when a file creation file.

Sourceval message : string -> t

message msg creates a message from msg.

Sourceval message' : ('a, Format.formatter, unit, t) format4 -> 'a

message' fmt is message but takes a format instead of a string.

Sourceval exn : exn -> t

exn e creates an error from a cought exception.

Sourceval to_string : t -> string

to_string e is the string representation of e.