15 #ifndef RCLCPP__EXCEPTIONS_HPP_    16 #define RCLCPP__EXCEPTIONS_HPP_    35   : 
std::runtime_error(
"node is invalid") {}
    43     const char * name_type_,
    45     const char * error_msg_,
    46     size_t invalid_index_)
    47   : 
std::invalid_argument(format_error(name_type_, name_, error_msg_, invalid_index_)),
    48     name_type(name_type_), name(name_), error_msg(error_msg_), invalid_index(invalid_index_)
    53     const char * name_type,
    55     const char * error_msg,
    56     size_t invalid_index);
   117   const std::string & prefix = 
"",
   142   RCLError(
const RCLErrorBase & base_exc, 
const std::string & prefix);
   163     const std::string & prefix);
   165   RCLInvalidArgument(
const RCLErrorBase & base_exc, 
const std::string & prefix);
   173   : 
std::runtime_error(
"event is invalid") {}
   181   : 
std::runtime_error(
"event already registered") {}
   187 #endif  // RCLCPP__EXCEPTIONS_HPP_ Created when the return code does not match one of the other specialized exceptions. 
Definition: exceptions.hpp:136
 
Created when the ret is RCL_RET_INVALID_ARGUMENT. 
Definition: exceptions.hpp:156
 
InvalidNodeError()
Definition: exceptions.hpp:34
 
Thrown when a any kind of name (node, namespace, topic, etc.) is invalid. 
Definition: exceptions.hpp:39
 
Thrown when a topic name is invalid. 
Definition: exceptions.hpp:83
 
EventNotRegisteredError()
Definition: exceptions.hpp:180
 
Thrown when an unregistered rclcpp::Event is encountered where a registered one was expected...
Definition: exceptions.hpp:177
 
Thrown when an invalid rclcpp::Event object or SharedPtr is encountered. 
Definition: exceptions.hpp:169
 
Thrown when a service name is invalid. 
Definition: exceptions.hpp:92
 
InvalidEventError()
Definition: exceptions.hpp:172
 
Definition: allocator_common.hpp:24
 
Definition: parameter.hpp:235
 
std::string file
Definition: exceptions.hpp:130
 
InvalidNodeNameError(const char *node_name, const char *error_msg, size_t invalid_index)
Definition: exceptions.hpp:68
 
Thrown when a method is trying to use a node, but it is invalid. 
Definition: exceptions.hpp:31
 
rcl_ret_t ret
Definition: exceptions.hpp:128
 
void throw_from_rcl_error(rcl_ret_t ret, const std::string &prefix="", const rcl_error_state_t *error_state=nullptr, void(*reset_error)()=rcl_reset_error)
Throw a C++ std::exception which was created based on an rcl error. 
 
InvalidNamespaceError(const char *namespace_, const char *error_msg, size_t invalid_index)
Definition: exceptions.hpp:77
 
Definition: exceptions.hpp:121
 
const std::string name_type
Definition: exceptions.hpp:58
 
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
 
const size_t invalid_index
Definition: exceptions.hpp:61
 
const std::string error_msg
Definition: exceptions.hpp:60
 
InvalidTopicNameError(const char *namespace_, const char *error_msg, size_t invalid_index)
Definition: exceptions.hpp:86
 
std::string message
Definition: exceptions.hpp:129
 
Created when the ret is RCL_RET_BAD_ALLOC. 
Definition: exceptions.hpp:146
 
Thrown when a node namespace is invalid. 
Definition: exceptions.hpp:74
 
NameValidationError(const char *name_type_, const char *name_, const char *error_msg_, size_t invalid_index_)
Definition: exceptions.hpp:42
 
InvalidServiceNameError(const char *namespace_, const char *error_msg, size_t invalid_index)
Definition: exceptions.hpp:95
 
size_t line
Definition: exceptions.hpp:131
 
std::string formatted_message
Definition: exceptions.hpp:132
 
const std::string name
Definition: exceptions.hpp:59
 
virtual ~RCLErrorBase()
Definition: exceptions.hpp:126
 
Thrown when a node name is invalid. 
Definition: exceptions.hpp:65