Module for converting error code into a printable string. More...
Functions |
|
| char const * | nrf_strerror_get ( ret_code_t code) |
|
Function for getting a printable error string.
More...
|
|
| char const * | nrf_strerror_find ( ret_code_t code) |
|
Function for finding a printable error string.
More...
|
|
Detailed Description
Module for converting error code into a printable string.
Function Documentation
| char const* nrf_strerror_find | ( | ret_code_t | code | ) |
Function for finding a printable error string.
This function gets the error string in the same way as nrf_strerror_get , but if the string is not found, it returns NULL.
- Parameters
-
code Error code to convert.
- Returns
- Pointer to the printable string. If the string is not found, NULL is returned.
| char const* nrf_strerror_get | ( | ret_code_t | code | ) |
Function for getting a printable error string.
- Parameters
-
code Error code to convert.
- Note
- This function cannot fail. For the function that may fail with error translation, see nrf_strerror_find .
- Returns
- Pointer to the printable string. If the string is not found, it returns a simple string that says that the error is unknown.