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";
20 return "unknown transport error";
OUTCOME_CPP_DEFINE_CATEGORY(kagome::api, ApiTransportError, e)