Error indicating that translation from given value to the property tree data_type (or vice versa) failed. More...
#include <exceptions.hpp>


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... | |
Error indicating that translation from given value to the property tree data_type (or vice versa) failed.
Derives from ptree_error.
| 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.
| what | The message to associate with this error. |
| data | The value associated with this error that was the source of the translation failure. |
| boost::property_tree::ptree_bad_data::~ptree_bad_data | ( | ) | ||
| throw | ( | |||
| ) | ||||
| 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.