15 #ifndef RCLCPP__EXCEPTIONS_HPP_ 16 #define RCLCPP__EXCEPTIONS_HPP_ 117 #endif // RCLCPP__EXCEPTIONS_HPP_ void throw_from_rcl_error(rcl_ret_t ret, const std::string &prefix="", bool reset_error=true)
Throw a C++ std::exception which was created based on an rcl error.
size_t line
Definition: exceptions.hpp:61
Definition: allocator_common.hpp:24
Thrown when an unregistered rclcpp::Event is encountered where a registered one was expected...
Definition: exceptions.hpp:107
InvalidNodeError()
Definition: exceptions.hpp:34
Definition: exceptions.hpp:51
std::string file
Definition: exceptions.hpp:60
virtual ~RCLErrorBase()
Definition: exceptions.hpp:56
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
Created when the ret is RCL_RET_INVALID_ARGUMENT.
Definition: exceptions.hpp:86
Created when the ret is RCL_RET_BAD_ALLOC.
Definition: exceptions.hpp:76
std::string message
Definition: exceptions.hpp:59
std::string formatted_message
Definition: exceptions.hpp:62
Thrown when a method is trying to use a node, but it is invalid.
Definition: exceptions.hpp:31
EventNotRegisteredError()
Definition: exceptions.hpp:110
InvalidEventError()
Definition: exceptions.hpp:102
Created when the return code does not match one of the other specialized exceptions.
Definition: exceptions.hpp:66
rcl_ret_t ret
Definition: exceptions.hpp:58
Thrown when an invalid rclcpp::Event object or SharedPtr is encountered.
Definition: exceptions.hpp:99