33 #ifndef _Y_VTS_FUNC_C_ 34 #define _Y_VTS_FUNC_C_ 44 lr_error_message(
"****** VTS ERROR: %s", message);
116 case VTCERR_INVALID_CONNECTION_INFO:
117 errortext =
"The corresponding handle does not exist or the connection information is corrupted. Disconnect and reconnect.";
120 case VTCERR_FAILED_TO_RESOLVE_ADDR:
121 errortext =
"Failed to resolve server address.";
124 case VTCERR_FAILED_TO_CREATE_SOCKET:
125 errortext =
"Failed to create socket.";
128 case VTCERR_FAILED_TO_CONNECT:
129 errortext =
"Failed to connect. Check the server name, port number, network connectivity, and whether server is on line.";
132 case VTCERR_INVALID_API_CALL:
133 errortext =
"Failed to get the API entry.";
136 case VTCERR_INCOMPLETE_REQUEST:
137 errortext =
"Communications packet from client is invalid.";
140 case VTCERR_FAILED_TO_RECV_RESPONSE:
141 errortext =
"No response received from server.";
144 case VTCERR_INCOMPLETE_RESPONSE:
145 errortext =
"Response from server is incomplete.";
148 case VTCERR_RESPONSE_ARGS_UNMATCH:
149 errortext =
"Unexpected count of arguments in server response.";
152 case VTCERR_INVALID_ARGUMENT:
153 errortext =
"Invalid argument.";
156 case VTCERR_HANDLE_NOT_EXIST:
157 errortext =
"Connection handle does not exist.";
160 case VTCERR_INNER_JSON_CONVERT:
161 errortext =
"Cannot parse server (JSON) response.";
164 case VTCERR_INNER_UTF8_CONVERT:
165 errortext =
"Cannot convert between UTF8 and Locale.";
168 case VTCERR_COL_FORMAT_ERROR:
169 errortext =
"Invalid or empty column name.";
172 case VTCERR_COL_VALUE_NO_MATCH:
173 errortext =
"Column names list and messages list do not have the same number of values. Check delimiters.";
176 case VTCERR_EVAL_STRING:
177 errortext =
"Error evaluating parameter value.";
180 case VTCERR_DATA_NOT_EXIST:
181 errortext =
"There is no data at the specified column and row.";
185 case VTCERR_OPERATION_ERROR_BASE:
186 errortext =
"Received error code VTCERR_OPERATION_ERROR_BASE.";
189 case VTCERR_SERVER_IS_BUSY:
190 errortext =
"Server is busy. Go away.";
193 case VTCERR_CLIENT_REQUEST_ERROR:
194 errortext =
"Client request error.";
198 errortext =
"Unknown VTC error code.";
210 #endif // _Y_VTS_FUNC_C_ void y_vts_report_error(char *message)
int y_vts_process_returncode(int returncode)
Error translation and reporting facility for VTS return codes. This will emit VTS errors using lr_err...