Module Brassaia_eio_pack_io.Io_errors

module type S = sig ... end

Error manager for errors and exceptions defined in Errors and Io_intf.S.misc_error

module Io = Io.Unix
type t = [
  1. | `Double_close
  2. | `File_exists of string
  3. | `Invalid_parent_directory
  4. | `No_such_file_or_directory of string
  5. | `Not_a_file
  6. | `Read_out_of_bounds
  7. | `Invalid_argument
  8. | `Decoding_error
  9. | `Not_a_directory of string
  10. | `Index_failure of string
  11. | `Invalid_layout
  12. | `Corrupted_legacy_file
  13. | `Corrupted_mapping_file of string
  14. | `Pending_flush
  15. | `Rw_not_allowed
  16. | `Migration_needed
  17. | `Migration_to_lower_not_allowed
  18. | `Corrupted_control_file of string
  19. | `Sys_error of string
  20. | `V3_store_from_the_future
  21. | `Gc_forbidden_during_batch
  22. | `Unknown_major_pack_version of string
  23. | `Only_minimal_indexing_strategy_allowed
  24. | `Commit_key_is_dangling of string
  25. | `Dangling_key of string
  26. | `Gc_disallowed of string
  27. | `Node_or_contents_key_is_indexed of string
  28. | `Gc_process_error of string
  29. | `Corrupted_gc_result_file of string
  30. | `Gc_process_died_without_result_file of string
  31. | `Gc_forbidden_on_32bit_platforms
  32. | `Invalid_prefix_read of string
  33. | `Invalid_sparse_read of [ `After | `Before | `Hole ] * Import.int63
  34. | `Invalid_volume_read of [ `Empty | `Closed ] * Import.int63
  35. | `Inconsistent_store
  36. | `Closed
  37. | `Ro_not_allowed
  38. | `Io_misc of Io.misc_error
  39. | `Split_forbidden_during_batch
  40. | `Split_disallowed
  41. | `Multiple_empty_chunks
  42. | `Forbidden_during_gc
  43. | `Multiple_empty_volumes
  44. | `Volume_missing of string
  45. | `Volume_history_newer_than_archived_data of Import.int63 * Import.int63
  46. | `Lower_has_no_volume
  47. | `Add_volume_forbidden_during_gc
  48. | `Add_volume_requires_lower
  49. | `Volume_not_found of string
  50. | `No_tmp_path_provided
]
val t : [ `Add_volume_forbidden_during_gc | `Add_volume_requires_lower | `Closed | `Commit_key_is_dangling of string | `Corrupted_control_file of string | `Corrupted_gc_result_file of string | `Corrupted_legacy_file | `Corrupted_mapping_file of string | `Dangling_key of string | `Decoding_error | `Double_close | `File_exists of string | `Forbidden_during_gc | `Gc_disallowed of string | `Gc_forbidden_during_batch | `Gc_forbidden_on_32bit_platforms | `Gc_process_died_without_result_file of string | `Gc_process_error of string | `Inconsistent_store | `Index_failure of string | `Invalid_argument | `Invalid_layout | `Invalid_parent_directory | `Invalid_prefix_read of string | `Invalid_sparse_read of [ `After | `Before | `Hole ] * Optint.Int63.t | `Invalid_volume_read of [ `Closed | `Empty ] * Optint.Int63.t | `Io_misc of Io.misc_error | `Lower_has_no_volume | `Migration_needed | `Migration_to_lower_not_allowed | `Multiple_empty_chunks | `Multiple_empty_volumes | `No_such_file_or_directory of string | `No_tmp_path_provided | `Node_or_contents_key_is_indexed of string | `Not_a_directory of string | `Not_a_file | `Only_minimal_indexing_strategy_allowed | `Pending_flush | `Read_out_of_bounds | `Ro_not_allowed | `Rw_not_allowed | `Split_disallowed | `Split_forbidden_during_batch | `Sys_error of string | `Unknown_major_pack_version of string | `V3_store_from_the_future | `Volume_history_newer_than_archived_data of Optint.Int63.t * Optint.Int63.t | `Volume_missing of string | `Volume_not_found of string ] Brassaia_eio_pack_io.Import.Brassaia.Type.t
val raise_error : [< `Add_volume_forbidden_during_gc | `Add_volume_requires_lower | `Closed | `Commit_key_is_dangling of string | `Corrupted_control_file of string | `Corrupted_gc_result_file of string | `Corrupted_legacy_file | `Corrupted_mapping_file of string | `Dangling_key of string | `Decoding_error | `Double_close | `File_exists of string | `Forbidden_during_gc | `Gc_disallowed of string | `Gc_forbidden_during_batch | `Gc_forbidden_on_32bit_platforms | `Gc_process_died_without_result_file of string | `Gc_process_error of string | `Inconsistent_store | `Index_failure of string | `Invalid_argument | `Invalid_layout | `Invalid_parent_directory | `Invalid_prefix_read of string | `Invalid_sparse_read of [ `After | `Before | `Hole ] * Import.int63 | `Invalid_volume_read of [ `Closed | `Empty ] * Import.int63 | `Io_misc of Io.misc_error | `Lower_has_no_volume | `Migration_needed | `Migration_to_lower_not_allowed | `Multiple_empty_chunks | `Multiple_empty_volumes | `No_such_file_or_directory of string | `No_tmp_path_provided | `Node_or_contents_key_is_indexed of string | `Not_a_directory of string | `Not_a_file | `Only_minimal_indexing_strategy_allowed | `Pending_flush | `Read_out_of_bounds | `Ro_not_allowed | `Rw_not_allowed | `Split_disallowed | `Split_forbidden_during_batch | `Sys_error of string | `Unknown_major_pack_version of string | `V3_store_from_the_future | `Volume_history_newer_than_archived_data of Import.int63 * Import.int63 | `Volume_missing of string | `Volume_not_found of string ] -> 'a
val log_error : string -> [< `Add_volume_forbidden_during_gc | `Add_volume_requires_lower | `Closed | `Commit_key_is_dangling of string | `Corrupted_control_file of string | `Corrupted_gc_result_file of string | `Corrupted_legacy_file | `Corrupted_mapping_file of string | `Dangling_key of string | `Decoding_error | `Double_close | `File_exists of string | `Forbidden_during_gc | `Gc_disallowed of string | `Gc_forbidden_during_batch | `Gc_forbidden_on_32bit_platforms | `Gc_process_died_without_result_file of string | `Gc_process_error of string | `Inconsistent_store | `Index_failure of string | `Invalid_argument | `Invalid_layout | `Invalid_parent_directory | `Invalid_prefix_read of string | `Invalid_sparse_read of [< `After | `Before | `Hole ] * Import.int63 | `Invalid_volume_read of [< `Closed | `Empty ] * Import.int63 | `Io_misc of Io.misc_error | `Lower_has_no_volume | `Migration_needed | `Migration_to_lower_not_allowed | `Multiple_empty_chunks | `Multiple_empty_volumes | `No_such_file_or_directory of string | `No_tmp_path_provided | `Node_or_contents_key_is_indexed of string | `Not_a_directory of string | `Not_a_file | `Only_minimal_indexing_strategy_allowed | `Pending_flush | `Read_out_of_bounds | `Ro_not_allowed | `Rw_not_allowed | `Split_disallowed | `Split_forbidden_during_batch | `Sys_error of string | `Unknown_major_pack_version of string | `V3_store_from_the_future | `Volume_history_newer_than_archived_data of Import.int63 * Import.int63 | `Volume_missing of string | `Volume_not_found of string ] -> unit
val catch : (unit -> 'a) -> ('a, t) Stdlib.result
val raise_if_error : ('a, [< `Add_volume_forbidden_during_gc | `Add_volume_requires_lower | `Closed | `Commit_key_is_dangling of string | `Corrupted_control_file of string | `Corrupted_gc_result_file of string | `Corrupted_legacy_file | `Corrupted_mapping_file of string | `Dangling_key of string | `Decoding_error | `Double_close | `File_exists of string | `Forbidden_during_gc | `Gc_disallowed of string | `Gc_forbidden_during_batch | `Gc_forbidden_on_32bit_platforms | `Gc_process_died_without_result_file of string | `Gc_process_error of string | `Inconsistent_store | `Index_failure of string | `Invalid_argument | `Invalid_layout | `Invalid_parent_directory | `Invalid_prefix_read of string | `Invalid_sparse_read of [ `After | `Before | `Hole ] * Import.int63 | `Invalid_volume_read of [ `Closed | `Empty ] * Import.int63 | `Io_misc of Io.misc_error | `Lower_has_no_volume | `Migration_needed | `Migration_to_lower_not_allowed | `Multiple_empty_chunks | `Multiple_empty_volumes | `No_such_file_or_directory of string | `No_tmp_path_provided | `Node_or_contents_key_is_indexed of string | `Not_a_directory of string | `Not_a_file | `Only_minimal_indexing_strategy_allowed | `Pending_flush | `Read_out_of_bounds | `Ro_not_allowed | `Rw_not_allowed | `Split_disallowed | `Split_forbidden_during_batch | `Sys_error of string | `Unknown_major_pack_version of string | `V3_store_from_the_future | `Volume_history_newer_than_archived_data of Import.int63 * Import.int63 | `Volume_missing of string | `Volume_not_found of string ]) Stdlib.result -> 'a
val log_if_error : string -> ('a, [< `Add_volume_forbidden_during_gc | `Add_volume_requires_lower | `Closed | `Commit_key_is_dangling of string | `Corrupted_control_file of string | `Corrupted_gc_result_file of string | `Corrupted_legacy_file | `Corrupted_mapping_file of string | `Dangling_key of string | `Decoding_error | `Double_close | `File_exists of string | `Forbidden_during_gc | `Gc_disallowed of string | `Gc_forbidden_during_batch | `Gc_forbidden_on_32bit_platforms | `Gc_process_died_without_result_file of string | `Gc_process_error of string | `Inconsistent_store | `Index_failure of string | `Invalid_argument | `Invalid_layout | `Invalid_parent_directory | `Invalid_prefix_read of string | `Invalid_sparse_read of [< `After | `Before | `Hole ] * Import.int63 | `Invalid_volume_read of [< `Closed | `Empty ] * Import.int63 | `Io_misc of Io.misc_error | `Lower_has_no_volume | `Migration_needed | `Migration_to_lower_not_allowed | `Multiple_empty_chunks | `Multiple_empty_volumes | `No_such_file_or_directory of string | `No_tmp_path_provided | `Node_or_contents_key_is_indexed of string | `Not_a_directory of string | `Not_a_file | `Only_minimal_indexing_strategy_allowed | `Pending_flush | `Read_out_of_bounds | `Ro_not_allowed | `Rw_not_allowed | `Split_disallowed | `Split_forbidden_during_batch | `Sys_error of string | `Unknown_major_pack_version of string | `V3_store_from_the_future | `Volume_history_newer_than_archived_data of Import.int63 * Import.int63 | `Volume_missing of string | `Volume_not_found of string ]) Stdlib.result -> unit