Kagome
Polkadot Runtime Engine in C++17
error.cpp
Go to the documentation of this file.
1 
7 
10  switch (e) {
11  case ApiTransportError::FAILED_SET_OPTION:
12  return "cannot set an option";
13  case ApiTransportError::FAILED_START_LISTENING:
14  return "cannot start listening, invalid address or port is busy";
15  case ApiTransportError::LISTENER_ALREADY_STARTED:
16  return "cannot start listener, already started";
17  case ApiTransportError::CANNOT_ACCEPT_LISTENER_NOT_WORKING:
18  return "cannot accept new connection, state mismatch";
19  }
20  return "unknown transport error";
21 }
ApiTransportError
Definition: error.hpp:12
OUTCOME_CPP_DEFINE_CATEGORY(kagome::api, ApiTransportError, e)
Definition: error.cpp:8