Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
22
OUTCOME_HPP_DECLARE_ERROR
(
kagome::api
,
ApiTransportError
)
23
24
#endif // KAGOME_CORE_API_TRANSPORT_ERROR_HPP
kagome::api::ApiTransportError::LISTENER_ALREADY_STARTED
outcome.hpp
kagome::api::ApiTransportError::FAILED_START_LISTENING
OUTCOME_HPP_DECLARE_ERROR
OUTCOME_HPP_DECLARE_ERROR(kagome::api, JRpcServerImpl::Error)
kagome::api::ApiTransportError::FAILED_SET_OPTION
kagome::api::ApiTransportError
ApiTransportError
Definition:
error.hpp:12
kagome::api::ApiTransportError::CANNOT_ACCEPT_LISTENER_NOT_WORKING
kagome::api
Definition:
custom_json_writer.hpp:23
core
api
transport
error.hpp
Generated by
1.8.11