iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nrt::exception::PointCloud2FieldsException Class Reference

#include <nrt/PointCloud2/PointCloud2.H>

An exception that is thrown whenever there is an error related to the requested fields.

Definition at line 1297 of file PointCloud2.H.

Inheritance diagram for nrt::exception::PointCloud2FieldsException:
nrt::exception::Exception

Public Member Functions

 PointCloud2FieldsException () noexcept
 Construct a new exception for an incompatible set of fields.
 
 PointCloud2FieldsException (size_t count, size_t expected) noexcept
 Construct a new exception when number of fields is incorrect.
 
 PointCloud2FieldsException (std::string const &field) noexcept
 Construct a new exception with a specific field. More...
 
 PointCloud2FieldsException (std::string const &field, std::string const &message) noexcept
 Construct a new exception with a specific field and specific error message. More...
 
std::string const & field () const
 Get the field name that caused the error.
 
- Public Member Functions inherited from nrt::exception::Exception
 Exception () throw ()
 Constructor with a default non-specific error message.
 
 Exception (char const *msg) throw ()
 Constructor with a given error message. More...
 
 Exception (Exception const &e) throw ()
 Copy constructor.
 
virtual ~Exception () throw ()
 Virtual destructor for safe inheritance.
 
Exceptionoperator= (Exception const &e) throw ()
 Assignment.
 
char const * what () const throw ()
 Return a C string describing the error. More...
 

Additional Inherited Members

- Protected Attributes inherited from nrt::exception::Exception
char const * whatptr
 Pointer to a message, returned by what()
 

Constructor & Destructor Documentation

nrt::exception::PointCloud2FieldsException::PointCloud2FieldsException ( std::string const &  field)
noexcept

Construct a new exception with a specific field.

Parameters
fieldThe first field that encountered an error
nrt::exception::PointCloud2FieldsException::PointCloud2FieldsException ( std::string const &  field,
std::string const &  message 
)
noexcept

Construct a new exception with a specific field and specific error message.

Parameters
fieldThe first field that encountered an error
messageA message to be output after the field is listed

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