https://gitlab.com/tezos/tezos
Raw File
Tip revision: d39689be1feeb11dc1d66c8a1696089357801207 authored by Thomas Letan on 04 April 2024, 14:35:21 UTC
EVM Node: Reconnect to the EVM endpoint as observer
Tip revision: d39689b
unix_error.mli
(*****************************************************************************)
(*                                                                           *)
(* Open Source License                                                       *)
(* Copyright (c) 2021 Nomadic Labs, <contact@nomadic-labs.com>               *)
(*                                                                           *)
(* Permission is hereby granted, free of charge, to any person obtaining a   *)
(* copy of this software and associated documentation files (the "Software"),*)
(* to deal in the Software without restriction, including without limitation *)
(* the rights to use, copy, modify, merge, publish, distribute, sublicense,  *)
(* and/or sell copies of the Software, and to permit persons to whom the     *)
(* Software is furnished to do so, subject to the following conditions:      *)
(*                                                                           *)
(* The above copyright notice and this permission notice shall be included   *)
(* in all copies or substantial portions of the Software.                    *)
(*                                                                           *)
(* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR*)
(* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,  *)
(* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL   *)
(* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER*)
(* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING   *)
(* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER       *)
(* DEALINGS IN THE SOFTWARE.                                                 *)
(*                                                                           *)
(*****************************************************************************)

(** An encoding for Unix errors *)
val encoding : Unix.error Data_encoding.t

(**/**)

module Internal_for_tests : sig
  (** [get_constructor_name unix_err] gives the name of the specific [unix_err]
      error constructor.

      Beware, it is not converting the given unix error to string.
      It only gives a string representation of the error case.

      For instance, [get_constructor_name EACCES] evaluates in ["EACCES"]
      and [get_constructor_name @@ EUNKNOWNERR 42] evaluates in ["EUNKNOWNERR"]. *)
  val get_constructor_name : Unix.error -> string
end
back to top