Kagome
Polkadot Runtime Engine in C++17
adapter_errors.cpp
Go to the documentation of this file.
1 
7 
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(kagome::network, AdaptersError, e)
AdaptersError
interface adapters errors