<a id="h-ec"></a>

# Error Codes

### *group* Error codes

Standardize error code definitions. 

See [errc](http://www.cplusplus.com/reference/system_error/errc/)

### Defines

### JLS_ERROR_CODES(X)

The list of error codes for use by X macros. 

#### SEE ALSO
[https://en.wikipedia.org/wiki/X_Macro](https://en.wikipedia.org/wiki/X_Macro)

#### SEE ALSO
[http://www.drdobbs.com/cpp/the-x-macro/228700289](http://www.drdobbs.com/cpp/the-x-macro/228700289)

### JLS_ERROR_ENUM(NAME, TEXT)

The macro used to define the error code enum. 

### JLS_SUCCESS

A shorter, less confusing alias for success. 

### Enums

### enum jls_error_code_e

The list of error codes. 

*Values:*

### enumerator JLS_ERROR_CODE_COUNT

### 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](#group__jls__ec_1ga38cdc65919af47de75ff7f7546b46535)). 
* **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](#group__jls__ec_1ga38cdc65919af47de75ff7f7546b46535)). 
* **Returns:**
  The user-meaningful description of the error.
