rmw  master
C API providing a middleware abstraction layer which is used to implement the rest of ROS.
Macros | Typedefs | Functions
error_handling.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <rcutils/error_handling.h>
#include "rmw/visibility_control.h"

Go to the source code of this file.

Macros

#define rmw_error_state_copy   rcutils_error_state_copy
 
#define rmw_error_state_fini   rcutils_error_state_fini
 
#define RMW_SET_ERROR_MSG(msg)   rmw_set_error_state(msg, __FILE__, __LINE__);
 Set the error message, as well as append the current file and line number. More...
 
#define RMW_SET_ERROR_MSG_ALLOC(msg, allocator)   rcutils_set_error_state(msg, __FILE__, __LINE__, allocator);
 
#define rmw_error_is_set   rcutils_error_is_set
 
#define rmw_get_error_state   rcutils_get_error_state
 
#define rmw_get_error_string   rcutils_get_error_string
 
#define rmw_get_error_string_safe   rcutils_get_error_string_safe
 
#define rmw_reset_error   rcutils_reset_error
 

Typedefs

typedef rcutils_error_state_t rmw_error_state_t
 

Functions

void rmw_set_error_state (const char *error_msg, const char *file, size_t line_number)
 Set the error state, implicitly uses rcutils_get_default_allocator(). More...
 

Macro Definition Documentation

◆ rmw_error_state_copy

#define rmw_error_state_copy   rcutils_error_state_copy

◆ rmw_error_state_fini

#define rmw_error_state_fini   rcutils_error_state_fini

◆ RMW_SET_ERROR_MSG

#define RMW_SET_ERROR_MSG (   msg)    rmw_set_error_state(msg, __FILE__, __LINE__);

Set the error message, as well as append the current file and line number.

See also
RCUTILS_SET_ERROR_MSG

◆ RMW_SET_ERROR_MSG_ALLOC

#define RMW_SET_ERROR_MSG_ALLOC (   msg,
  allocator 
)    rcutils_set_error_state(msg, __FILE__, __LINE__, allocator);

◆ rmw_error_is_set

#define rmw_error_is_set   rcutils_error_is_set

◆ rmw_get_error_state

#define rmw_get_error_state   rcutils_get_error_state

◆ rmw_get_error_string

#define rmw_get_error_string   rcutils_get_error_string

◆ rmw_get_error_string_safe

#define rmw_get_error_string_safe   rcutils_get_error_string_safe

◆ rmw_reset_error

#define rmw_reset_error   rcutils_reset_error

Typedef Documentation

◆ rmw_error_state_t

Function Documentation

◆ rmw_set_error_state()

void rmw_set_error_state ( const char *  error_msg,
const char *  file,
size_t  line_number 
)