Function rcutils_get_error_state
Defined in File error_handling.h
Function Documentation
-
const rcutils_error_state_t *rcutils_get_error_state(void)
Return an rcutils_error_state_t which was set with rcutils_set_error_state().
The returned pointer will be NULL if no error has been set in this thread.
The returned pointer is valid until RCUTILS_SET_ERROR_MSG, rcutils_set_error_state, or rcutils_reset_error are called in the same thread.
- Returns:
A pointer to the current error state struct.