Define RCUTILS_SAFE_FWRITE_TO_STDERR_WITH_FORMAT_STRING_AND_APPEND_PREV_ERROR
Defined in File error_handling.h
Define Documentation
-
RCUTILS_SAFE_FWRITE_TO_STDERR_WITH_FORMAT_STRING_AND_APPEND_PREV_ERROR(format_string, ...)
Set the error message to stderr using a format string and format arguments, appending the previous error. This function sets the error message to stderr using the given format string, appending and resetting the previous error. The resulting formatted string is silently truncated at RCUTILS_ERROR_MESSAGE_MAX_LENGTH.
This will reset the previous error, if it exists. If there is no previous error, has same behavior as RCUTILS_SAFE_FWRITE_TO_STDERR_WITH_FORMAT_STRING.
- Parameters:
format_string – [in] The string to be used as the format of the error message.
... – [in] Arguments for the format string.