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_path Class Reference

Error indicating that specified path does not exist. More...

#include <exceptions.hpp>

Inheritance diagram for boost::property_tree::ptree_bad_path:
Collaboration diagram for boost::property_tree::ptree_bad_path:

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...
 

Detailed Description

Error indicating that specified path does not exist.

Derives from ptree_error.

Constructor & Destructor Documentation

template<class T >
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.

Parameters
whatThe message to associate with this error.
pathThe path that could not be found in the property_tree.
boost::property_tree::ptree_bad_path::~ptree_bad_path ( )
throw (
)

Member Function Documentation

template<class T >
T boost::property_tree::ptree_bad_path::path ( ) const

Retrieve the invalid path.

You need to explicitly specify the type of path.


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