Class NameValidationError
Defined in File exceptions.hpp
Inheritance Relationships
Base Type
public std::invalid_argument
Derived Types
public rclcpp::exceptions::InvalidNamespaceError
(Class InvalidNamespaceError)public rclcpp::exceptions::InvalidNodeNameError
(Class InvalidNodeNameError)public rclcpp::exceptions::InvalidServiceNameError
(Class InvalidServiceNameError)public rclcpp::exceptions::InvalidTopicNameError
(Class InvalidTopicNameError)
Class Documentation
-
class NameValidationError : public std::invalid_argument
Thrown when a any kind of name (node, namespace, topic, etc.) is invalid.
Subclassed by rclcpp::exceptions::InvalidNamespaceError, rclcpp::exceptions::InvalidNodeNameError, rclcpp::exceptions::InvalidServiceNameError, rclcpp::exceptions::InvalidTopicNameError
Public Functions
-
inline NameValidationError(const char *name_type_, const char *name_, const char *error_msg_, size_t invalid_index_)
Public Members
-
const std::string name_type
-
const std::string name
-
const std::string error_msg
-
const size_t invalid_index
Public Static Functions
-
static std::string format_error(const char *name_type, const char *name, const char *error_msg, size_t invalid_index)
-
inline NameValidationError(const char *name_type_, const char *name_, const char *error_msg_, size_t invalid_index_)