Public Member Functions | Private Attributes | List of all members
boost::property_tree::ptree_bad_data Class Reference

#include <exceptions.hpp>

Inheritance diagram for boost::property_tree::ptree_bad_data:
Inheritance graph
[legend]

Public Member Functions

template<class T >
T data () const
 
template<class D >
data () const
 
template<class D >
 ptree_bad_data (const std::string &w, const D &d)
 
template<class T >
 ptree_bad_data (const std::string &what, const T &data)
 
 ~ptree_bad_data () throw ()
 
- Public Member Functions inherited from boost::property_tree::ptree_error
 ptree_error (const std::string &what)
 
 ~ptree_error () throw ()
 

Private Attributes

boost::any m_data
 

Detailed Description

Error indicating that translation from given value to the property tree data_type (or vice versa) failed. Derives from ptree_error.

Definition at line 40 of file exceptions.hpp.

Constructor & Destructor Documentation

◆ ptree_bad_data() [1/2]

template<class T >
boost::property_tree::ptree_bad_data::ptree_bad_data ( const std::string &  what,
const T data 
)

Instantiate a ptree_bad_data instance with the given message and data.

Parameters
whatThe message to associate with this error.
dataThe value associated with this error that was the source of the translation failure.

◆ ~ptree_bad_data()

boost::property_tree::ptree_bad_data::~ptree_bad_data ( )
throw (
)
inline

Definition at line 51 of file exception_implementation.hpp.

◆ ptree_bad_data() [2/2]

template<class D >
boost::property_tree::ptree_bad_data::ptree_bad_data ( const std::string &  w,
const D &  d 
)
inline

Definition at line 46 of file exception_implementation.hpp.

Member Function Documentation

◆ data() [1/2]

template<class T >
T boost::property_tree::ptree_bad_data::data ( ) const

Retrieve the data associated with this error. This is the source value that failed to be translated. You need to explicitly specify its type.

◆ data() [2/2]

template<class D >
D boost::property_tree::ptree_bad_data::data ( ) const
inline

Definition at line 56 of file exception_implementation.hpp.

Member Data Documentation

◆ m_data

boost::any boost::property_tree::ptree_bad_data::m_data
private

Definition at line 58 of file exceptions.hpp.


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


sick_visionary_ros
Author(s): SICK AG TechSupport 3D Snapshot
autogenerated on Thu Feb 8 2024 04:38:17