Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::property_tree::ptree_bad_data Class Reference

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

#include <exceptions.hpp>

Inheritance diagram for boost::property_tree::ptree_bad_data:
Collaboration diagram for boost::property_tree::ptree_bad_data:

Public Member Functions

template<class T >
 ptree_bad_data (const std::string &what, const T &data)
 Instantiate a ptree_bad_data instance with the given message and data. More...
 
 ~ptree_bad_data () throw ()
 
template<class T >
T data () const
 Retrieve the data associated with this error. More...
 

Detailed Description

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

Derives from ptree_error.

Constructor & Destructor Documentation

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.
boost::property_tree::ptree_bad_data::~ptree_bad_data ( )
throw (
)

Member Function Documentation

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.


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