tinyrpc/includes/net/error_code.hpp

27 lines
735 B
C++
Raw Normal View History

2025-01-21 16:35:26 +08:00
#pragma once
namespace tinyrpc {
enum ErrorCode {
2025-02-05 20:50:31 +08:00
ERROR_PEER_CLOSED = 1, // connect when peer close
2025-01-21 16:35:26 +08:00
ERROR_FAILED_CONNECT, // failed to connection peer host
ERROR_FAILED_GET_REPLY, // failed to get server reply
ERROR_FAILED_DESERIALIZE, // deserialize failed
ERROR_FAILED_SERIALIZE, // serialize failed
ERROR_FAILED_ENCODE, // encode failed
ERROR_FAILED_DECODE, // decode failed
ERROR_RPC_CALL_TIMEOUT, // call rpc timeout
ERROR_SERVICE_NOT_FOUND, // not found service name
ERROR_METHOD_NOT_FOUND, // not found method
ERROR_PARSE_SERVICE_NAME, // not found service name
2025-02-05 20:50:31 +08:00
ERROR_ASYNC_RPC_CALL_SINGLE_IOTHREAD = 12, // not supoort async rpc call when only have single iothread
2025-01-21 16:35:26 +08:00
};
}