1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- #ifndef BOOST_PROPERTY_TREE_EXCEPTIONS_HPP_INCLUDED
- #define BOOST_PROPERTY_TREE_EXCEPTIONS_HPP_INCLUDED
- #include <boost/property_tree/ptree_fwd.hpp>
- #include <boost/any.hpp>
- #include <stdexcept>
- #include <string>
- namespace boost { namespace property_tree
- {
-
-
-
- class ptree_error : public std::runtime_error
- {
- public:
-
-
- ptree_error(const std::string &what);
- };
-
-
- class ptree_bad_data : public ptree_error
- {
- public:
-
-
-
-
-
- template<class T> ptree_bad_data(const std::string &what,
- const T &data);
-
-
-
- template<class T> T data() const;
- private:
- boost::any m_data;
- };
-
-
- class ptree_bad_path : public ptree_error
- {
- public:
-
-
-
- template<class T> ptree_bad_path(const std::string &what,
- const T &path);
-
-
- template<class T> T path() const;
- private:
- boost::any m_path;
- };
- }}
- #include <boost/property_tree/detail/exception_implementation.hpp>
- #endif
|