forked from boostorg/exception
documentation update
[SVN r50539]
This commit is contained in:
@ -417,7 +417,16 @@ boost
|
|||||||
<li>If dynamic_cast<std::exception const *>(&x) is not null, the returned string includes the output from std::exception::what.</li>
|
<li>If dynamic_cast<std::exception const *>(&x) is not null, the returned string includes the output from std::exception::what.</li>
|
||||||
<li>The returned string may include additional platform-specific diagnostic information.</li>
|
<li>The returned string may include additional platform-specific diagnostic information.</li>
|
||||||
</ul></div>
|
</ul></div>
|
||||||
</div><h2>Throwing Exceptions</h2>
|
<div class="RenoIncludeDIV"><h4>Example:</h4>
|
||||||
|
<p>this is a possible output from the <span class="RenoLink"><a href="diagnostic_information.html">diagnostic_information</a></span> function, as used in <i>libs/exception/example/example_io.cpp:</i></p>
|
||||||
|
<pre>libs\exception\example\example_io.cpp(83): Throw in function class boost::shared_ptr<struct _iobuf> __cdecl my_fopen(const char *,const char *)
|
||||||
|
Dynamic exception type: class boost::exception_detail::clone_impl<class fopen_error>
|
||||||
|
std::exception::what: example_io error
|
||||||
|
[struct tag_errno *] = 2, OS says "No such file or directory"
|
||||||
|
[struct tag_file_name *] = tmp1.txt
|
||||||
|
[struct tag_function *] = fopen
|
||||||
|
[struct tag_open_mode *] = rb</pre>
|
||||||
|
</div></div><h2>Throwing Exceptions</h2>
|
||||||
<div class="RenoIncludeDIV"><div class="RenoAutoDIV"><h3>throw_exception</h3>
|
<div class="RenoIncludeDIV"><div class="RenoAutoDIV"><h3>throw_exception</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="RenoIncludeDIV"><p><span class="RenoEscape">#<!--<wiki>`#</wiki>--></span>include <<span class="RenoLink"><a href="throw_exception_hpp.html">boost/throw_exception.hpp</a></span>></p>
|
<div class="RenoIncludeDIV"><p><span class="RenoEscape">#<!--<wiki>`#</wiki>--></span>include <<span class="RenoLink"><a href="throw_exception_hpp.html">boost/throw_exception.hpp</a></span>></p>
|
||||||
|
@ -41,7 +41,16 @@ boost
|
|||||||
<li>If dynamic_cast<std::exception const *>(&x) is not null, the returned string includes the output from std::exception::what.</li>
|
<li>If dynamic_cast<std::exception const *>(&x) is not null, the returned string includes the output from std::exception::what.</li>
|
||||||
<li>The returned string may include additional platform-specific diagnostic information.</li>
|
<li>The returned string may include additional platform-specific diagnostic information.</li>
|
||||||
</ul></div>
|
</ul></div>
|
||||||
</div><div class="RenoAutoDIV"><div class="RenoHR"><hr/></div>
|
<div class="RenoIncludeDIV"><h4>Example:</h4>
|
||||||
|
<p>this is a possible output from the <span class="RenoLink"><a href="diagnostic_information.html">diagnostic_information</a></span> function, as used in <i>libs/exception/example/example_io.cpp:</i></p>
|
||||||
|
<pre>libs\exception\example\example_io.cpp(83): Throw in function class boost::shared_ptr<struct _iobuf> __cdecl my_fopen(const char *,const char *)
|
||||||
|
Dynamic exception type: class boost::exception_detail::clone_impl<class fopen_error>
|
||||||
|
std::exception::what: example_io error
|
||||||
|
[struct tag_errno *] = 2, OS says "No such file or directory"
|
||||||
|
[struct tag_file_name *] = tmp1.txt
|
||||||
|
[struct tag_function *] = fopen
|
||||||
|
[struct tag_open_mode *] = rb</pre>
|
||||||
|
</div></div><div class="RenoAutoDIV"><div class="RenoHR"><hr/></div>
|
||||||
<h3>See Also:</h3>
|
<h3>See Also:</h3>
|
||||||
<div class="RenoPageList"><a href="BOOST_THROW_EXCEPTION.html">BOOST_THROW_EXCEPTION<br/>
|
<div class="RenoPageList"><a href="BOOST_THROW_EXCEPTION.html">BOOST_THROW_EXCEPTION<br/>
|
||||||
</a><a href="boost-exception.html">Boost Exception<br/>
|
</a><a href="boost-exception.html">Boost Exception<br/>
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -45,7 +45,16 @@ g()
|
|||||||
std::cerr << <span class="RenoLink"><a href="diagnostic_information.html">diagnostic_information</a></span>(e);
|
std::cerr << <span class="RenoLink"><a href="diagnostic_information.html">diagnostic_information</a></span>(e);
|
||||||
}
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
</div><div class="RenoAutoDIV"><div class="RenoHR"><hr/></div>
|
<div class="RenoIncludeDIV"><h4>Example:</h4>
|
||||||
|
<p>this is a possible output from the <span class="RenoLink"><a href="diagnostic_information.html">diagnostic_information</a></span> function, as used in <i>libs/exception/example/example_io.cpp:</i></p>
|
||||||
|
<pre>libs\exception\example\example_io.cpp(83): Throw in function class boost::shared_ptr<struct _iobuf> __cdecl my_fopen(const char *,const char *)
|
||||||
|
Dynamic exception type: class boost::exception_detail::clone_impl<class fopen_error>
|
||||||
|
std::exception::what: example_io error
|
||||||
|
[struct tag_errno *] = 2, OS says "No such file or directory"
|
||||||
|
[struct tag_file_name *] = tmp1.txt
|
||||||
|
[struct tag_function *] = fopen
|
||||||
|
[struct tag_open_mode *] = rb</pre>
|
||||||
|
</div></div><div class="RenoAutoDIV"><div class="RenoHR"><hr/></div>
|
||||||
<h3>See Also:</h3>
|
<h3>See Also:</h3>
|
||||||
<div class="RenoPageList"><a href="boost-exception.html">Boost Exception<br/>
|
<div class="RenoPageList"><a href="boost-exception.html">Boost Exception<br/>
|
||||||
</a></div>
|
</a></div>
|
||||||
|
Reference in New Issue
Block a user