package cryptodbm

  1. Overview
  2. Docs

All errors that may occur.

type error_location =
  1. | Subtable of string * int
    (*

    The error occured in the indicated subtable, with the given name (and number).

    *)
  2. | Table
    (*

    The error occured in the main table.

    *)
  3. | Any
    (*

    The location is undetermined.

    *)

Location where an error occured.

type error =
  1. | File_not_found of string
    (*

    The file does not exist or is not readable.

    *)
  2. | File_overwrite of string
    (*

    Overwriting an existing file is not allowed.

    *)
  3. | File_not_appendable of string
    (*

    Append mode: the file does not exist, or is not readable, or is not writeable.

    *)
  4. | File_not_writeable of string
    (*

    Write mode: the given permission does not allow writing to the file.

    *)
  5. | Bad_format of string * string
    (*

    The file format is wrong: Bad_format (expected, found)

    *)
  6. | Bad_password of error_location
    (*

    A wrong password was given to open a subtable or the database itself.

    *)
  7. | Bad_signature of error_location
    (*

    The signature found in the file or in a subtable is wrong.

    *)
  8. | No_signature of error_location
    (*

    No signature was found.

    *)
  9. | Is_Closed of error_location
    (*

    The table, or subtable, cannot be used because it is already closed.

    *)
  10. | Is_Already_Open of error_location
    (*

    This subtable cannot be opened because it has already been opened.

    *)
  11. | No_subtable of string
    (*

    No subtable with the given name exists. This error occurs when trying to open a standard subtable with open_uncrypted_subtable, or when trying to open an explicitly uncrypted subtable with open_subtable.

    *)
  12. | Subtable_exists of string
    (*

    A subtable with the given name already exists.

    *)
  13. | Subtable_overflow
    (*

    Too many subtables created. Current maximum is 2^14 - 1.

    *)
  14. | Overwrite of string * error_location
    (*

    Trying to overwrite a key, while may_overwrite was false.

    *)
  15. | Unbound of string * error_location
    (*

    Trying to read a key that is not bound.

    *)
  16. | DB_Error of exn
    (*

    Error when accessing the underlying database.

    *)
  17. | Corrupted of error_location * string
    (*

    Corrupted file: it does not have the expected structure. (An error message is given).

    *)
  18. | Backup_failure of exn
    (*

    Error when trying to create the backup.

    *)
exception Error of error

Exception raised when an error occurs.

val loc2s : error_location -> string

Printing functions.

val error2s : error -> string
OCaml

Innovation. Community. Security.