Error Codes
- group jls_ec
Standardize error code definitions.
See errc
Defines
-
JLS_ERROR_CODES(X)
The list of error codes for use by X macros.
-
JLS_ERROR_ENUM(NAME, TEXT)
The macro used to define the error code enum.
-
JLS_SUCCESS
A shorter, less confusing alias for success.
Functions
-
const char *jls_error_code_name(int ec)
Convert an error code into its short name.
- Parameters:
ec – [in] The error code (jls_error_code_e).
- Returns:
The short string name for the error code.
-
const char *jls_error_code_description(int ec)
Convert an error code into its description.
- Parameters:
ec – [in] The error code (jls_error_code_e).
- Returns:
The user-meaningful description of the error.
-
JLS_ERROR_CODES(X)