|
Boost-Commit : |
From: emil_at_[hidden]
Date: 2008-04-15 18:23:19
Author: emildotchevski
Date: 2008-04-15 18:23:19 EDT (Tue, 15 Apr 2008)
New Revision: 44445
URL: http://svn.boost.org/trac/boost/changeset/44445
Log:
Boost Exception documentation fix
Text files modified:
trunk/libs/exception/doc/cloning.html | 6 +++---
trunk/libs/exception/doc/cloning_and_rethrowing.html | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
Modified: trunk/libs/exception/doc/cloning.html
==============================================================================
--- trunk/libs/exception/doc/cloning.html (original)
+++ trunk/libs/exception/doc/cloning.html 2008-04-15 18:23:19 EDT (Tue, 15 Apr 2008)
@@ -60,7 +60,7 @@
error = boost::<span class="RenoLink">current_exception</span>();
}
}</pre>
-<p>In the above example, note that <tt><span class="RenoLink">current_exception</span>()</tt> captures the original type of the exception object, even though <tt>e</tt> refers to the base type <tt>boost::<span class="RenoLink">exception</span></tt>. This original type can be thrown again using the <tt><span class="RenoLink">rethrow_exception</span>()</tt> function:</p>
+<p>In the above example, note that <tt><span class="RenoLink">current_exception</span>()</tt> captures the original type of the exception object. The exception can be thrown again using the <tt><span class="RenoLink">rethrow_exception</span>()</tt> function:</p>
<pre>// ...continued
void
@@ -72,9 +72,9 @@
if( error )
boost::<span class="RenoLink">rethrow_exception</span>(error);
}</pre>
-<p><tt><span class="RenoLink">Clone_exception</span>()</tt> could fail to copy the original exception object in the following cases:</p>
+<p><tt><span class="RenoLink">current_exception</span>()</tt> could fail to copy the original exception object in the following cases:</p>
<div><ul><li> if there is not enough memory, in which case the returned <tt><span class="RenoLink">exception_ptr</span></tt> points to an instance of <tt>std::bad_alloc</tt>, or</li>
-<li> if <tt><span class="RenoLink">enable_current_exception</span>()</tt> was not used in the throw-expression passed to the original <tt>throw</tt> statement, in which case the returned <tt><span class="RenoLink">exception_ptr</span></tt> points to an instance of <tt><span class="RenoLink">unknown_exception</span></tt>.</li>
+<li> if <tt><span class="RenoLink">enable_current_exception</span>()</tt> was not used in the throw-expression passed to the original <tt>throw</tt> statement and the current implementation does not have the necessary compiler-specific support to copy the exception automatically, in which case the returned <tt><span class="RenoLink">exception_ptr</span></tt> points to an instance of <tt><span class="RenoLink">unknown_exception</span></tt>.</li>
</ul></div>
<p>Regardless, the use of <tt><span class="RenoLink">current_exception</span>()</tt> and <tt><span class="RenoLink">rethrow_exception</span>()</tt> in the above examples is well-formed.</p>
</div></div><h3>See also:</h3>
Modified: trunk/libs/exception/doc/cloning_and_rethrowing.html
==============================================================================
--- trunk/libs/exception/doc/cloning_and_rethrowing.html (original)
+++ trunk/libs/exception/doc/cloning_and_rethrowing.html 2008-04-15 18:23:19 EDT (Tue, 15 Apr 2008)
@@ -38,7 +38,7 @@
error = boost::<span class="RenoLink">current_exception</span>();
}
}</pre>
-<p>In the above example, note that <tt><span class="RenoLink">current_exception</span>()</tt> captures the original type of the exception object, even though <tt>e</tt> refers to the base type <tt>boost::<span class="RenoLink">exception</span></tt>. This original type can be thrown again using the <tt><span class="RenoLink">rethrow_exception</span>()</tt> function:</p>
+<p>In the above example, note that <tt><span class="RenoLink">current_exception</span>()</tt> captures the original type of the exception object. The exception can be thrown again using the <tt><span class="RenoLink">rethrow_exception</span>()</tt> function:</p>
<pre>// ...continued
void
@@ -50,9 +50,9 @@
if( error )
boost::<span class="RenoLink">rethrow_exception</span>(error);
}</pre>
-<p><tt><span class="RenoLink">Clone_exception</span>()</tt> could fail to copy the original exception object in the following cases:</p>
+<p><tt><span class="RenoLink">current_exception</span>()</tt> could fail to copy the original exception object in the following cases:</p>
<div><ul><li> if there is not enough memory, in which case the returned <tt><span class="RenoLink">exception_ptr</span></tt> points to an instance of <tt>std::bad_alloc</tt>, or</li>
-<li> if <tt><span class="RenoLink">enable_current_exception</span>()</tt> was not used in the throw-expression passed to the original <tt>throw</tt> statement, in which case the returned <tt><span class="RenoLink">exception_ptr</span></tt> points to an instance of <tt><span class="RenoLink">unknown_exception</span></tt>.</li>
+<li> if <tt><span class="RenoLink">enable_current_exception</span>()</tt> was not used in the throw-expression passed to the original <tt>throw</tt> statement and the current implementation does not have the necessary compiler-specific support to copy the exception automatically, in which case the returned <tt><span class="RenoLink">exception_ptr</span></tt> points to an instance of <tt><span class="RenoLink">unknown_exception</span></tt>.</li>
</ul></div>
<p>Regardless, the use of <tt><span class="RenoLink">current_exception</span>()</tt> and <tt><span class="RenoLink">rethrow_exception</span>()</tt> in the above examples is well-formed.</p>
</div><h3>See also:</h3>
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk