rclcpp  master
C++ ROS Client Library API
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
rclcpp::exceptions::NameValidationError Class Reference

Thrown when a any kind of name (node, namespace, topic, etc.) is invalid. More...

#include <exceptions.hpp>

Inheritance diagram for rclcpp::exceptions::NameValidationError:
Inheritance graph
[legend]
Collaboration diagram for rclcpp::exceptions::NameValidationError:
Collaboration graph
[legend]

Public Member Functions

 NameValidationError (const char *name_type_, const char *name_, const char *error_msg_, size_t invalid_index_)
 
- Public Member Functions inherited from std::invalid_argument
invalid_argument (T... args)
 
what (T... args)
 

Static Public Member Functions

static std::string format_error (const char *name_type, const char *name, const char *error_msg, size_t invalid_index)
 

Public Attributes

const std::string name_type
 
const std::string name
 
const std::string error_msg
 
const size_t invalid_index
 

Detailed Description

Thrown when a any kind of name (node, namespace, topic, etc.) is invalid.

Constructor & Destructor Documentation

◆ NameValidationError()

rclcpp::exceptions::NameValidationError::NameValidationError ( const char *  name_type_,
const char *  name_,
const char *  error_msg_,
size_t  invalid_index_ 
)
inline

Member Function Documentation

◆ format_error()

static std::string rclcpp::exceptions::NameValidationError::format_error ( const char *  name_type,
const char *  name,
const char *  error_msg,
size_t  invalid_index 
)
static

Member Data Documentation

◆ name_type

const std::string rclcpp::exceptions::NameValidationError::name_type

◆ name

const std::string rclcpp::exceptions::NameValidationError::name

◆ error_msg

const std::string rclcpp::exceptions::NameValidationError::error_msg

◆ invalid_index

const size_t rclcpp::exceptions::NameValidationError::invalid_index

The documentation for this class was generated from the following file: