rclcpp  master
C++ ROS Client Library API
Classes | Namespaces | Functions
exceptions.hpp File Reference
#include <stdexcept>
#include <string>
#include <vector>
#include "rcl/error_handling.h"
#include "rcl/types.h"
#include "rclcpp/visibility_control.hpp"
#include "rcpputils/join.hpp"
Include dependency graph for exceptions.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  rclcpp::exceptions::InvalidNodeError
 Thrown when a method is trying to use a node, but it is invalid. More...
 
class  rclcpp::exceptions::NameValidationError
 Thrown when a any kind of name (node, namespace, topic, etc.) is invalid. More...
 
class  rclcpp::exceptions::InvalidNodeNameError
 Thrown when a node name is invalid. More...
 
class  rclcpp::exceptions::InvalidNamespaceError
 Thrown when a node namespace is invalid. More...
 
class  rclcpp::exceptions::InvalidTopicNameError
 Thrown when a topic name is invalid. More...
 
class  rclcpp::exceptions::InvalidServiceNameError
 Thrown when a service name is invalid. More...
 
class  rclcpp::exceptions::RCLErrorBase
 
class  rclcpp::exceptions::RCLError
 Created when the return code does not match one of the other specialized exceptions. More...
 
class  rclcpp::exceptions::RCLBadAlloc
 Created when the ret is RCL_RET_BAD_ALLOC. More...
 
class  rclcpp::exceptions::RCLInvalidArgument
 Created when the ret is RCL_RET_INVALID_ARGUMENT. More...
 
class  rclcpp::exceptions::RCLInvalidROSArgsError
 Created when the ret is RCL_RET_INVALID_ROS_ARGS. More...
 
class  rclcpp::exceptions::UnknownROSArgsError
 Thrown when unparsed ROS specific arguments are found. More...
 
class  rclcpp::exceptions::InvalidEventError
 Thrown when an invalid rclcpp::Event object or SharedPtr is encountered. More...
 
class  rclcpp::exceptions::EventNotRegisteredError
 Thrown when an unregistered rclcpp::Event is encountered where a registered one was expected. More...
 
class  rclcpp::exceptions::InvalidParametersException
 Thrown if passed parameters are inconsistent or invalid. More...
 
class  rclcpp::exceptions::InvalidParameterValueException
 Thrown if passed parameter value is invalid. More...
 
class  rclcpp::exceptions::ParameterAlreadyDeclaredException
 Thrown if parameter is already declared. More...
 
class  rclcpp::exceptions::ParameterNotDeclaredException
 Thrown if parameter is not declared, e.g. either set or get was called without first declaring. More...
 
class  rclcpp::exceptions::ParameterImmutableException
 Thrown if parameter is immutable and therefore cannot be undeclared. More...
 
class  rclcpp::exceptions::ParameterModifiedInCallbackException
 Thrown if parameter is modified while in a set callback. More...
 

Namespaces

 rclcpp
 This header provides the get_node_base_interface() template function.
 
 rclcpp::exceptions
 

Functions

void rclcpp::exceptions::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. More...