Kagome
Polkadot Runtime Engine in C++17
error.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_API_TRANSPORT_ERROR_HPP
7 #define KAGOME_CORE_API_TRANSPORT_ERROR_HPP
8 
9 #include "outcome/outcome.hpp"
10 
11 namespace kagome::api {
12  enum class ApiTransportError {
13  FAILED_SET_OPTION = 1, // cannot set an option
14  FAILED_START_LISTENING, // cannot start listening, invalid address or port
15  // is busy
16  LISTENER_ALREADY_STARTED, // cannot start listener, already started
17  CANNOT_ACCEPT_LISTENER_NOT_WORKING, // cannot accept new connection, state
18  // mismatch
19  };
20 }
21 
23 
24 #endif // KAGOME_CORE_API_TRANSPORT_ERROR_HPP
OUTCOME_HPP_DECLARE_ERROR(kagome::api, JRpcServerImpl::Error)
ApiTransportError
Definition: error.hpp:12