Kagome
Polkadot Runtime Engine in C++17
protocol_error.cpp
Go to the documentation of this file.
1 
7 
10  switch (e) {
11  case E::GONE:
12  return "Protocol was switched off";
13  case E::PROTOCOL_NOT_IMPLEMENTED:
14  return "Protocol is not implemented";
15  case E::CAN_NOT_CREATE_STATUS:
16  return "Can not create status";
17  case E::NODE_NOT_SYNCHRONIZED_YET:
18  return "Node is not synchronized yet";
19  case E::GENESIS_NO_MATCH:
20  return "Local and remote genesis don't match";
21  case E::HANDSHAKE_ERROR:
22  return "Handshake exchange failed";
23  }
24  return "Unknown error (kagome::network::ProtocolError)";
25 }
OUTCOME_CPP_DEFINE_CATEGORY(kagome::network, ProtocolError, e)