package fred

  1. Overview
  2. Docs
type api_error = {
  1. error_code : int;
  2. error_message : string;
}

Type of returned API error

val api_error_of_yojson : Yojson.Safe.t -> api_error Ppx_deriving_yojson_runtime.error_or
val pp_api_error : Ppx_deriving_runtime.Format.formatter -> api_error -> Ppx_deriving_runtime.unit
val show_api_error : api_error -> Ppx_deriving_runtime.string
OCaml

Innovation. Community. Security.