package irmin-pack

  1. Overview
  2. Docs
module Io : sig ... end
type t = [
  1. | `Closed
  2. | `Commit_key_is_dangling of string
  3. | `Corrupted_control_file
  4. | `Corrupted_gc_result_file of string
  5. | `Corrupted_legacy_file
  6. | `Corrupted_mapping_file of string
  7. | `Dangling_key of string
  8. | `Decoding_error
  9. | `Double_close
  10. | `File_exists of string
  11. | `Forbidden_during_gc
  12. | `Gc_disallowed
  13. | `Gc_forbidden_during_batch
  14. | `Gc_forbidden_on_32bit_platforms
  15. | `Gc_process_died_without_result_file of string
  16. | `Gc_process_error of string
  17. | `Inconsistent_store
  18. | `Index_failure of string
  19. | `Invalid_argument
  20. | `Invalid_layout
  21. | `Invalid_mapping_read of string
  22. | `Invalid_parent_directory
  23. | `Invalid_prefix_read of string
  24. | `Invalid_read_of_gced_object of string
  25. | `Io_misc of Io.misc_error
  26. | `Migration_needed
  27. | `Multiple_empty_chunks
  28. | `No_such_file_or_directory
  29. | `Node_or_contents_key_is_indexed of string
  30. | `Not_a_directory of string
  31. | `Not_a_file
  32. | `Only_minimal_indexing_strategy_allowed
  33. | `Pending_flush
  34. | `Read_out_of_bounds
  35. | `Ro_not_allowed
  36. | `Rw_not_allowed
  37. | `Split_forbidden_during_batch
  38. | `Sys_error of string
  39. | `Unknown_major_pack_version of string
  40. | `V3_store_from_the_future
]
val t : t Irmin.Type.t
val raise_error : [< t ] -> 'a
val log_error : string -> [< t ] -> unit
val catch : (unit -> 'a) -> ('a, t) Stdlib.result
val raise_if_error : ('a, [< t ]) Stdlib.result -> 'a
val log_if_error : string -> ('a, [< t ]) Stdlib.result -> unit
OCaml

Innovation. Community. Security.