package async_rpc_kernel

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file rpc_error.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
open Core_kernel

include Protocol.Rpc_error
include Sexpable.To_stringable (Protocol.Rpc_error)

exception Rpc of t * Info.t [@@deriving sexp]
let raise t connection_description = raise (Rpc (t, connection_description))

let sexp_of_t t ~get_connection_close_reason = match t with
  | Connection_closed ->
    [%sexp
      `Connection_closed (get_connection_close_reason () : Sexp.t)]
  | Bin_io_exn _
  | Write_error _
  | Uncaught_exn _
  | Unimplemented_rpc _
  | Unknown_query_id _
   -> sexp_of_t t
OCaml

Innovation. Community. Security.