Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
adapter_errors.cpp
Go to the documentation of this file.
1
6
#include "
network/adapters/adapter_errors.hpp
"
7
8
OUTCOME_CPP_DEFINE_CATEGORY
(
kagome::network
,
AdaptersError
, e) {
9
using
E =
kagome::network::AdaptersError
;
10
switch
(e) {
11
case
E::EMPTY_DATA:
12
return
"No data in buffer."
;
13
case
E::DATA_SIZE_CORRUPTED:
14
return
"UVAR size does not equal to data size in buffer."
;
15
case
E::PARSE_FAILED:
16
return
"Got an error while parsing."
;
17
case
E::UNEXPECTED_VARIANT:
18
return
"Unexpected variant type."
;
19
case
E::CAST_FAILED:
20
return
"Got an error while casting."
;
21
}
22
return
"unknown error (invalid AdaptersError)"
;
23
}
OUTCOME_CPP_DEFINE_CATEGORY
OUTCOME_CPP_DEFINE_CATEGORY(kagome::network, AdaptersError, e)
Definition:
adapter_errors.cpp:8
kagome::network::AdaptersError
AdaptersError
interface adapters errors
Definition:
adapter_errors.hpp:15
adapter_errors.hpp
kagome::network
Definition:
author_api_impl.hpp:37
core
network
adapters
adapter_errors.cpp
Generated by
1.8.11