Error indicating that specified path does not exist. More...
#include <exceptions.hpp>
Public Member Functions | |
template<class T > | |
ptree_bad_path (const std::string &what, const T &path) | |
Instantiate a ptree_bad_path with the given message and path data. More... | |
~ptree_bad_path () throw () | |
template<class T > | |
T | path () const |
Retrieve the invalid path. More... | |
Error indicating that specified path does not exist.
Derives from ptree_error.
boost::property_tree::ptree_bad_path::ptree_bad_path | ( | const std::string & | what, |
const T & | path | ||
) |
Instantiate a ptree_bad_path with the given message and path data.
what | The message to associate with this error. |
path | The path that could not be found in the property_tree. |
boost::property_tree::ptree_bad_path::~ptree_bad_path | ( | ) | ||
throw | ( | |||
) |
T boost::property_tree::ptree_bad_path::path | ( | ) | const |
Retrieve the invalid path.
You need to explicitly specify the type of path.