src/api/transport/error.hpp
Namespaces
Types
Types Documentation
enum ApiTransportError
| Enumerator |
Value |
Description |
| FAILED_SET_OPTION |
1 |
|
| FAILED_START_LISTENING |
|
|
| LISTENER_ALREADY_STARTED |
|
|
| CANNOT_ACCEPT_LISTENER_NOT_WORKING |
|
|
Source code
#ifndef SUPERGENIUS_SRC_API_TRANSPORT_ERROR_HPP
#define SUPERGENIUS_SRC_API_TRANSPORT_ERROR_HPP
#include "outcome/outcome.hpp"
namespace sgns::api {
enum class ApiTransportError {
FAILED_SET_OPTION = 1, // cannot set an option
FAILED_START_LISTENING, // cannot start listening, invalid address or port
// is busy
LISTENER_ALREADY_STARTED, // cannot start listener, already started
CANNOT_ACCEPT_LISTENER_NOT_WORKING, // cannot accept new connection, state
// mismatch
};
}
OUTCOME_HPP_DECLARE_ERROR_2(sgns::api, ApiTransportError)
#endif // SUPERGENIUS_SRC_API_TRANSPORT_ERROR_HPP
Updated on 2026-03-04 at 13:10:44 -0800