<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Class ptree_error</title> <link rel="stylesheet" href="../../boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.75.2"> <link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset"> <link rel="up" href="../../property_tree/reference.html#header.boost.property_tree.exceptions_hpp" title="Header <boost/property_tree/exceptions.hpp>"> <link rel="prev" href="../../property_tree/reference.html" title="Reference"> <link rel="next" href="ptree_bad_data.html" title="Class ptree_bad_data"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td> <td align="center"><a href="../../../../index.html">Home</a></td> <td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="../../property_tree/reference.html"><img src="../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../property_tree/reference.html#header.boost.property_tree.exceptions_hpp"><img src="../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="ptree_bad_data.html"><img src="../../../../doc/html/images/next.png" alt="Next"></a> </div> <div class="refentry" title="Class ptree_error"> <a name="boost.property_tree.ptree_error"></a><div class="titlepage"></div> <div class="refnamediv"> <h2><span class="refentrytitle">Class ptree_error</span></h2> <p>boost::property_tree::ptree_error — Base class for all property tree errors. Derives from <code class="computeroutput">std::runtime_error</code>. Call member function <code class="computeroutput">what</code> to get human readable message associated with the error. </p> </div> <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="emphasis"><em>// In header: <<a class="link" href="../../property_tree/reference.html#header.boost.property_tree.exceptions_hpp" title="Header <boost/property_tree/exceptions.hpp>">boost/property_tree/exceptions.hpp</a>> </em></span> <span class="bold"><strong>class</strong></span> <a class="link" href="ptree_error.html" title="Class ptree_error">ptree_error</a> { <span class="bold"><strong>public</strong></span>: <span class="emphasis"><em>// <a class="link" href="ptree_error.html#boost.property_tree.ptree_errorconstruct-copy-destruct">construct/copy/destruct</a></em></span> <a class="link" href="ptree_error.html#id900979-bb">ptree_error</a>(<span class="bold"><strong>const</strong></span> std::string &); <a class="link" href="ptree_error.html#id900995-bb">~ptree_error</a>(); };</pre></div> <div class="refsect1" title="Description"> <a name="id1443292"></a><h2>Description</h2> <div class="refsect2" title="ptree_error public construct/copy/destruct"> <a name="id1443296"></a><h3> <a name="boost.property_tree.ptree_errorconstruct-copy-destruct"></a><code class="computeroutput">ptree_error</code> public construct/copy/destruct</h3> <div class="orderedlist"><ol class="orderedlist" type="1"> <li class="listitem"> <pre class="literallayout"><a name="id900979-bb"></a>ptree_error(<span class="bold"><strong>const</strong></span> std::string & what);</pre>Instantiate a ptree_error instance with the given message. <p> </p> <div class="variablelist"><table border="0"> <col align="left" valign="top"> <tbody><tr> <td><p><span class="term">Parameters:</span></p></td> <td><div class="variablelist"><table border="0"> <col align="left" valign="top"> <tbody><tr> <td><p><span class="term"><code class="computeroutput">what</code></span></p></td> <td><p>The message to associate with this error. </p></td> </tr></tbody> </table></div></td> </tr></tbody> </table></div> </li> <li class="listitem"><pre class="literallayout"><a name="id900995-bb"></a>~ptree_error();</pre></li> </ol></div> </div> </div> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2008 Marcin Kalicinski<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="../../property_tree/reference.html"><img src="../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../property_tree/reference.html#header.boost.property_tree.exceptions_hpp"><img src="../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="ptree_bad_data.html"><img src="../../../../doc/html/images/next.png" alt="Next"></a> </div> </body> </html>