Octane API Client
Loading...
Searching...
No Matches
error_code.h
Go to the documentation of this file.
1
11#ifndef OCTANE_API_CLIENT_ERROR_CODE_H_
12#define OCTANE_API_CLIENT_ERROR_CODE_H_
13
14namespace octane {
17 = "ERR_API_CLIENT_INITIALIZATION_FAILED";
21 = "ERR_SERVER_HEALTH_STATUS_FAULTY";
26 = "ERR_CURL_INITIALIZATION_FAILED";
28 constexpr auto ERR_INCORRECT_HTTP_METHOD = "ERR_INCORRECT_HTTP_METHOD";
30 constexpr auto ERR_CURL_CONNECTION_FAILED = "ERR_CURL_CONNECTION_FAILED";
32 constexpr auto ERR_JSON_PARSE_FAILED = "ERR_JSON_PARSE_FAILED";
34 constexpr auto ERR_INVALID_RESPONSE = "ERR_INVALID_RESPONSE";
36 constexpr auto ERR_INVALID_REQUEST = "ERR_INVALID_REQUEST";
39 constexpr auto ERR_ROOM_ID_UNDEFINED = "ERR_ROOM_ID_UNDEFINED";
40 constexpr auto ERR_ROOM_DISCONNECTED = "ERR_ROOM_DISCONNECTED";
41 constexpr auto ERR_DUP_DEVICE = "ERR_DUP_DEVICE";
42 constexpr auto ERR_CONTENT_HASH_MISMATCH = "ERR_CONTENT_HASH_MISMATCH";
43 constexpr auto ERR_CONTENT_TYPE_DATA_MISMATCH = "ERR_CONTENT_TYPE_DATA_MISMATCH";
44} // namespace octane
45
46#endif // OCTANE_API_CLIENT_ERROR_CODE_H_
Definition: api_client.cpp:20
constexpr auto ERR_DUP_DEVICE
Definition: error_code.h:41
constexpr auto ERR_API_CLIENT_INITIALIZATION_FAILED
Used when ApiClient initialization failed.
Definition: error_code.h:17
constexpr auto ERR_INVALID_RESPONSE
Used when there was an unexpected response from the server.
Definition: error_code.h:34
constexpr auto ERR_CURL_INITIALIZATION_FAILED
Used when cURL initialization failed, such as inoctane::internal::HttpClient。
Definition: error_code.h:26
constexpr auto ERR_INVALID_REQUEST
Used when an unexpected request was issued.
Definition: error_code.h:36
constexpr auto ERR_INCORRECT_HTTP_METHOD
Used when an unexpected http method was issued.
Definition: error_code.h:28
constexpr auto ERR_SERVER_HEALTH_STATUS_FAULTY
Used when the server has incidents and is currently not available.
Definition: error_code.h:21
constexpr auto ERR_CURL_CONNECTION_FAILED
Used when cURL failed to connect.
Definition: error_code.h:30
constexpr auto ERR_CONTENT_TYPE_DATA_MISMATCH
Definition: error_code.h:43
constexpr auto ERR_ROOM_DISCONNECTED
Definition: error_code.h:40
constexpr auto ERR_ROOM_ID_UNDEFINED
Used when you are not connected to a room but getRoomStatus() and deleteRoom() was passed nothing.
Definition: error_code.h:39
constexpr auto ERR_CONTENT_HASH_MISMATCH
Definition: error_code.h:42
constexpr auto ERR_JSON_PARSE_FAILED
Used when JSON parse failed.
Definition: error_code.h:32