diff --git a/doc/source/boost-exception.reno b/doc/source/boost-exception.reno
index 1cd0847..9750b41 100644
--- a/doc/source/boost-exception.reno
+++ b/doc/source/boost-exception.reno
@@ -23,9 +23,6 @@
.*\.(cpp|hpp|h)$
-
- /\*(?:[^\*]|\*[^/])*\*/|//[^\r\n]*|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|((?:(?:(?:[^\r\n\{\}"'/]|/\*(?:[^\*]|\*[^/])*\*/|//[^\r\n]*|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')+\r?\n)+(?!\r?\n))?[ \t]*\{[ \t]*)|\}[;\t ]*(?:\r?\n)?()
-
@@ -56,6 +53,183 @@
reno_context
+
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 6
+
+ reno_context
+
+
+
+
+
+ 1
+ 2
+ !!!boost/exception_ptr.hpp
This header file contains the following definitions/declarations:
(:pagelist link="backlink" layer="synopsis":)
+
+
+
+
+ 0
+
+ 7
+
+ reno_context
+
+
+
+
+
+ 1
+ 2
+ !!!boost/exception.hpp
This header file includes all other header files of Boost Exception:
(:pagelist tags="header":)
+
+
+
+
+ 0
+
+ 8
+
+ reno_context
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 9
+
+ reno_context
+
-
-
- 0
-
- 6
-
- reno_context
-
-
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- 7
-
- reno_context
-
-
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- 8
-
- reno_context
-
-
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- 9
-
- reno_context
-
-
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
0
@@ -293,55 +275,6 @@
reno_context
-
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- 11
-
- reno_context
-
-
-
- 0
-
- 13
+ 11
reno_context
@@ -442,28 +330,28 @@
2
- 0ABC82B04F3761C21F4588ABC9D5F82BAF3F293974F0ECE694303EFB59BA7376
- 3824507607
- 2762
- 516
- 8F3B5E1A267CA225679713F4DDF528041F573BC02D1DBCD8FFEF57EF0AA599B9
- 4197332561
- 180
- 2576
+ 427FFBF157B284A9FB0CF4FAEC4A9BB2ADA8AC6CB4F4C329FAE0FED649640E3E
+ 2573550761
+ 6200
+ 737
+ 865A7E598C4F2EDA41CCDFAD253F5E4699012898C97E29E3CB1C68DABA0C62B1
+ 2395321958
+ 721
+ 726
0
- ../../../../boost/exception/enable_current_exception.hpp
+ ../../../../boost/exception/info.hpp
0
0
- enable_current_exception
+ error_info
@@ -477,6 +365,96 @@
(:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+ 0
+
+ 12
+
+ reno_context
+
+
+
+
+
+
+ 1
+ FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717
+ 2229778754
+ 631
+ 319
+
+
+
+
+
+ 0
+ ../../example/cloning_2.cpp
+ 0
+ 0
+
+
+
+
+ Tutorial: Cloning and Re-throwing an Exception
+
+
+ cloning_and_rethrowing
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 13
+
+ reno_context
+
+
+
+
+
+
+ 1
+ E444EE9697EEADFDE0767E1D0242FC0E70D98E61FB1F0FFA099648DE509B82F3
+ 94503238
+ 773
+ 374
+
+
+
+
+
+ 0
+ ../../example/info_tuple.cpp
+ 0
+ 0
+
+
+
+
+ Tutorial: Adding Grouped Data to Exceptions
+
+
+ grouping_data
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
0
@@ -485,6 +463,93 @@
reno_context
+
+
+
+
+
+ 2
+ 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A
+ 1770110914
+ 587
+ 1207
+ 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D
+ 3929437933
+ 361
+ 213
+
+
+
+
+
+ 0
+ ../../../../boost/throw_exception.hpp
+ 0
+ 0
+
+
+
+
+ throw_exception
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 15
+
+ reno_context
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+ Index
+
+
+ name_idx
+
+
+
+
+
+ 1
+ 2
+ !Index
(:pagelist fmt="index" except_tags="noindex":)
+
+
+
+
+ 0
+
+ 16
+
+ reno_context
+
@@ -530,52 +595,7 @@
0
- 15
-
- reno_context
-
-
-
-
-
-
- 1
- 5EE6ED209B5DBBD30DFCDA1FD30719A799EE9DBD48A5176F73EADB588CAEB2AA
- 2442598207
- 94
- 227
-
-
-
-
-
- 0
- ../../../../boost/exception/info.hpp
- 0
- 0
-
-
-
-
- boost/exception/info.hpp
-
-
- exception_error_info_hpp
-
-
-
-
-
- 1
- 2
- !!!boost/exception/info.hpp
This header file contains the following definitions/declarations:
(:pagelist link="backlink" layer="synopsis":)
-
-
-
-
- 0
-
- 16
+ 17
reno_context
@@ -585,28 +605,28 @@
2
- 973F8368D72D56424349CBB81C8F3015CB9F4F0CD7B23A8C62C3DBADDA37CD57
- 3833800883
- 4832
- 514
- 9567A192BF523DDF741004FFF5BDB044D715FEB7CE9AEC89ACC25C1C33E48C4E
- 2232115228
- 381
- 26
+ E285EAA0D81E350113B888423C3FA5D2071F070FCA2759D99666EE07C0F8449F
+ 4208148208
+ 2125
+ 457
+ ACC64445E8B6AAEF58395C0083BC0247CDE33AC00ED8DB9B7B4F216325DEE410
+ 2943579912
+ 400
+ 1719
0
- ../../../../boost/exception_ptr.hpp
+ ../../../../boost/exception/enable_error_info.hpp
0
0
- unknown_exception
+ enable_error_info
@@ -624,7 +644,7 @@
0
- 17
+ 18
reno_context
@@ -633,1249 +653,32 @@
- 0
-
-
-
-
-
- 1
-
-
-
-
- Boost Exception
-
-
- boost-exception
-
-
-
-
-
- 113
- 2
- !!Abstract
The purpose of Boost Exception is to ease the design of exception class hierarchies and to help write exception handling and error reporting code.
It supports transporting of arbitrary data to the catch site, which is otherwise tricky due to the no-throw requirements (15.5.1) for exception classes. Data can be added to any exception object, either directly in the throw-expression (15.1), or at a later time as the exception object propagates up the call stack.
The ability to add data to exception objects after they have been passed to @@throw@@ is important, because often some of the information needed to handle an exception is unavailable in the context where the failure is detected.
Boost Exception also supports (:link
- 1
-
- 0
-
- 18
-
- reno_context
-
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
-
- Tutorial: Transporting of Exceptions between Threads
-
-
- cloning
-
-
-
-
- 2
- |cloning:) of exception objects, implemented non-intrusively and automatically by the @@boost::(:link
- 1
-
- 0
-
- 19
-
- reno_context
-
-
-
-
-
-
- 2
- 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A
- 1770110914
- 587
- 1207
- 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D
- 3929437933
- 361
- 213
-
-
-
-
-
- 0
- ../../../../boost/throw_exception.hpp
- 0
- 0
-
-
-
-
- throw_exception
-
-
-
-
-
-
-
- 2
- :)()@@ function.
!!!!Note:
Boost Exception was accepted as a Boost library on November 7 2007, however it has not yet been part of an official Boost release. Current version can be downloaded from (:link http://svn.boost.org/svn/boost/trunk | Boost SVN:).
!!Contents
#Tutorial
##(:link
- 1
-
- 0
-
- 20
-
- reno_context
-
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
-
- Tutorial: Transporting of Arbitrary Data to the Catch Site
-
-
- transporting_data
-
-
-
-
- 2
- :)
##(:link
- 1
-
- 0
-
- -5
-
-
- 2
- :)
##(:link
- 1
-
- 0
-
- -18
-
-
- 2
- :)
##(:link
- 1
-
- 0
-
- -6
-
-
- 2
- :)
#Documentation
##Class @@(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)@@
##Transporting of Arbitrary Data to the Catch Site
###@@(:link
- 1
-
- 0
-
- 21
-
- reno_context
-
-
-
-
-
-
- 2
- 427FFBF157B284A9FB0CF4FAEC4A9BB2ADA8AC6CB4F4C329FAE0FED649640E3E
- 2573550761
- 6200
- 737
- 865A7E598C4F2EDA41CCDFAD253F5E4699012898C97E29E3CB1C68DABA0C62B1
- 2395321958
- 721
- 726
-
-
-
-
-
- 0
- ../../../../boost/exception/info.hpp
- 0
- 0
-
-
-
-
- error_info
-
-
-
-
-
-
-
- 2
- :)@@
###@@(:link
- 1
-
- 0
-
- -8
-
-
- 2
- |operator<<:)()@@
###@@(:link
- 1
-
- 0
-
- -9
-
-
- 2
- :)()@@
###@@(:link
- 1
-
- 0
-
- -10
-
-
- 2
- :)()@@
###@@(:link
- 1
-
- 0
-
- 22
-
- reno_context
-
-
-
-
-
-
- 1
- 49D31376D97691F7C84A134B5D8C7C66EF1ED6901D376CA250D634AE2B38AB5E
- 549270010
- 163
- 572
-
-
-
-
-
- 0
- ../../../../boost/exception/info.hpp
- 0
- 0
-
-
-
-
- BOOST_ERROR_INFO
-
-
-
-
-
-
-
- 2
- :)@@
##Transporting of Exceptions between Threads
###@@(:link
- 1
-
- 0
-
- 23
-
- reno_context
-
-
-
-
-
-
- 2
- 973F8368D72D56424349CBB81C8F3015CB9F4F0CD7B23A8C62C3DBADDA37CD57
- 3833800883
- 4832
- 514
- ED09F845070FF7D381BE5EFB6B55313FD09FBA16B64B69992410380EFA45519C
- 2051939590
- 78
- 409
-
-
-
-
-
- 0
- ../../../../boost/exception_ptr.hpp
- 0
- 0
-
-
-
-
- exception_ptr
-
-
-
-
-
-
-
- 2
- :)@@
###@@(:link
- 1
-
- 0
-
- -13
-
-
- 2
- :)()@@
###@@(:link
- 1
-
- 0
-
- -14
-
-
- 2
- :)()@@
###@@(:link
- 1
-
- 0
-
- 24
-
- reno_context
-
-
-
-
-
-
- 2
- 973F8368D72D56424349CBB81C8F3015CB9F4F0CD7B23A8C62C3DBADDA37CD57
- 3833800883
- 4832
- 514
- 921FBF6991E17349BFF2AD6F165372F85AA9457DDB28E502ABB6B392BBA6B529
- 3119269037
- 284
- 4423
-
-
-
-
-
- 0
- ../../../../boost/exception_ptr.hpp
- 0
- 0
-
-
-
-
- copy_exception
-
-
-
-
-
-
-
- 2
- :)()@@
###@@(:link
- 1
-
- 0
-
- -11
-
-
- 2
- :)()@@
###@@(:link
- 1
-
- 0
-
- -16
-
-
- 2
- :)@@
##@@(:link
- 1
-
- 0
-
- -19
-
-
- 2
- :)()@@
##Headers
###@@(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :)@@
###@@(:link
- 1
-
- 0
-
- 25
-
- reno_context
-
-
-
-
-
-
- 1
- 40C2FBC8600FE6877A6D46EC005D97EB1F612B8687CCA297C838E10A80E089AA
- 2576029551
- 94
- 227
-
-
-
-
-
- 0
- ../../../../boost/exception_ptr.hpp
- 0
- 0
-
-
-
-
- boost/exception_ptr.hpp
-
-
- exception_cloning_hpp
-
-
-
-
- 2
- :)@@
###@@(:link
- 1
-
- 0
-
- 26
-
- reno_context
-
-
-
-
-
-
- 1
- 2C5F1B7E5C5052C9C9305848AB499A9C166D728EAAD25DC936B75FCA997A0650
- 3171555959
- 88
- 1
-
-
-
-
-
- 0
- ../../../../boost/throw_exception.hpp
- 0
- 0
-
-
-
-
- boost/throw_exception.hpp
-
-
- throw_exception_hpp
-
-
-
-
- 2
- :)@@
###@@(:link
- 1
-
- 0
-
- 27
-
- reno_context
-
-
-
-
-
-
- 1
- A9C65F105342D728DE9C996079E82DF25408B94A272090039FAAC12D29659F69
- 2378831669
- 94
- 227
-
-
-
-
-
- 0
- ../../../../boost/exception/enable_current_exception.hpp
- 0
- 0
-
-
-
-
- boost/exception/enable_current_exception.hpp
-
-
- exception_enable_exception_cloning_hpp
-
-
-
-
- 2
- :)@@
###@@(:link
- 1
-
- 0
-
- 28
-
- reno_context
-
-
-
-
-
-
- 1
- DFB8EFE8A4EE9FB101DC20A69A4217A96B78A272D7DE88D579CFE8ECCC070531
- 2228033283
- 94
- 227
-
-
-
-
-
- 0
- ../../../../boost/exception/enable_error_info.hpp
- 0
- 0
-
-
-
-
- boost/exception/enable_error_info.hpp
-
-
- exception_enable_error_info_hpp
-
-
-
-
- 2
- :)@@
###@@(:link
- 1
-
- 0
-
- -15
-
-
- 2
- :)@@
###@@(:link
- 1
-
- 0
-
- 29
-
- reno_context
-
-
-
-
-
-
- 1
- CAD6C404CB725D336A44920D2341ECA131149AB02C368B59028F8147F16737BF
- 2258638601
- 94
- 227
-
-
-
-
-
- 0
- ../../../../boost/exception/info_tuple.hpp
- 0
- 0
-
-
-
-
- boost/exception/info_tuple.hpp
-
-
- exception_error_info_group_hpp
-
-
-
-
- 2
- :)@@
###@@(:link
- 1
-
- 0
-
- 30
-
- reno_context
-
-
-
-
-
-
- 1
- EB524A8A61E5F1A93CE4336B980696C09E7ADF42A6B933BA76EFB1544AB7C4CC
- 2274957083
- 94
- 227
-
-
-
-
-
- 0
- ../../../../boost/exception/error_info.hpp
- 0
- 0
-
-
-
-
- boost/exception/error_info.hpp
-
-
- exception_error_info_value_hpp
-
-
-
-
- 2
- :)@@
###@@(:link
- 1
-
- 0
-
- 31
-
- reno_context
-
-
-
-
-
-
- 1
- C9AFCA0931CB65AE31811E702FC48CB22348149B1D259CD9161D391FEC640FA8
- 2324436793
- 94
- 227
-
-
-
-
-
- 0
- ../../../../boost/exception/exception.hpp
- 0
- 0
-
-
-
-
- boost/exception/exception.hpp
-
-
- exception_exception_hpp
-
-
-
-
- 2
- :)@@
#(:link
- 1
-
- 0
-
- 32
-
- reno_context
-
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
-
- Index
-
-
- name_idx
-
-
-
-
- 2
- :)
!!Synopsis
@@#include <(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :)>@@
[@namespace
boost
{
(:include
- 1
-
- 0
-
- -7
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -21
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -8
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -9
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -10
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -22
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -23
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -13
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -14
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -24
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -11
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -16
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -19
-
-
- 2
- decl:)
}@]
(:include
- 1
-
- 0
-
- -7
-
-
- 2
- :)
!!Transporting of Arbitrary Data to the Catch Site
(:include
- 1
-
- 0
-
- -21
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -8
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -9
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -10
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -22
-
-
- 2
- :)
!!Transporting of Exceptions between Threads
(:include
- 1
-
- 0
-
- -23
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -13
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -14
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -24
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -11
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -16
-
-
- 2
- :)
!!Throwing Exceptions
(:include
- 1
-
- 0
-
- -19
-
-
- 2
- :)
-
-
-
-
- 0
-
- -18
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -19
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -20
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -29
-
-
-
- 1
- 2
- !!!boost/exception/info_tuple.hpp
This header file contains the following definitions/declarations:
(:pagelist link="backlink" layer="synopsis":)
-
-
-
-
- 0
-
- -30
-
-
-
- 3
- 2
- !!!boost/exception/error_info.hpp
This header file contains the following declaration:
[@namespace
boost
{
template <class Tag, class T>
class (:link
- 1
-
- 0
-
- -21
-
-
- 2
- :);
}@]
-
-
-
-
- 0
-
- -21
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -22
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -23
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -24
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -25
-
-
-
- 1
- 2
- !!!boost/exception_ptr.hpp
This header file contains the following definitions/declarations:
(:pagelist link="backlink" layer="synopsis":)
-
-
-
-
- 0
-
- -26
-
-
-
- 1
- 2
- !!!boost/exception/throw_exception.hpp
This header file contains the following definitions/declarations:
(:pagelist link="backlink" layer="synopsis":)
-
-
-
-
- 0
-
- -27
-
-
-
- 1
- 2
- !!!boost/exception/enable_current_exception.hpp
This header file contains the following definitions/declarations:
(:pagelist link="backlink" layer="synopsis":)
-
-
-
-
- 0
-
- -31
-
-
-
- 1
- 2
- !!!boost/exception/exception.hpp
This header file contains the following definitions/declarations:
(:pagelist link="backlink" layer="synopsis":)
-
-
-
-
- 0
-
- -28
-
-
-
- 1
- 2
- !!!boost/exception/enable_error_info.hpp
This header file contains the following definitions/declarations:
(:pagelist link="backlink" layer="synopsis":)
-
-
-
-
- 0
-
- -32
-
-
-
- 1
- 2
- !Index
(:pagelist fmt="index" except_tags="noindex":)
-
-
-
-
- 0
-
- 33
-
- reno_context
-
-
-
-
-
-
- 1
- 5373E336DC4892A41D31694BCA1146382FC3137819A04689CA1F9FFAF1CFAB3B
- 4050491732
- 466
- 307
+ 2
+ 427FFBF157B284A9FB0CF4FAEC4A9BB2ADA8AC6CB4F4C329FAE0FED649640E3E
+ 2573550761
+ 6200
+ 737
+ 65D13C1BB0A16823F69A32BAB56A51CA317075C7FC8B7441EE0D9B57AF5AB2AC
+ 2592266329
+ 712
+ 1850
0
- ../../example/cloning_1.cpp
+ ../../../../boost/exception/info.hpp
0
0
- Tutorial: Using enable_current_exception() at the Time of the Throw
+ get_error_info
- using_enable_cloning
+
@@ -1883,59 +686,14 @@
1
2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
0
- 34
-
- reno_context
-
-
-
-
-
-
- 1
- 187BFD2B78A0DD006717B5B06FFD465E2468F521C32A86FB793F7A68AB5417F3
- 4276724153
- 574
- 382
-
-
-
-
-
- 0
- ../../example/error_info_1.cpp
- 0
- 0
-
-
-
-
- Tutorial: Adding of Arbitrary Data at the Point of the Throw
-
-
- adding_data_at_throw
-
-
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- 35
+ 19
reno_context
@@ -1988,7 +746,7 @@
0
- 36
+ 20
reno_context
@@ -2026,7 +784,7 @@
0
- 37
+ 21
reno_context
@@ -2083,7 +841,7 @@
0
- 38
+ 22
reno_context
@@ -2093,27 +851,216 @@
1
- E444EE9697EEADFDE0767E1D0242FC0E70D98E61FB1F0FFA099648DE509B82F3
- 94503238
- 773
- 374
+ DFB8EFE8A4EE9FB101DC20A69A4217A96B78A272D7DE88D579CFE8ECCC070531
+ 2228033283
+ 94
+ 227
0
- ../../example/info_tuple.cpp
+ ../../../../boost/exception/enable_error_info.hpp
0
0
- Tutorial: Adding Grouped Data to Exceptions
+ boost/exception/enable_error_info.hpp
- grouping_data
+ exception_enable_error_info_hpp
+
+
+
+
+
+ 1
+ 2
+ !!!boost/exception/enable_error_info.hpp
This header file contains the following definitions/declarations:
(:pagelist link="backlink" layer="synopsis":)
+
+
+
+
+ 0
+
+ 23
+
+ reno_context
+
+
+
+
+
+
+ 1
+ CAD6C404CB725D336A44920D2341ECA131149AB02C368B59028F8147F16737BF
+ 2258638601
+ 94
+ 227
+
+
+
+
+
+ 0
+ ../../../../boost/exception/info_tuple.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception/info_tuple.hpp
+
+
+ exception_error_info_group_hpp
+
+
+
+
+
+ 1
+ 2
+ !!!boost/exception/info_tuple.hpp
This header file contains the following definitions/declarations:
(:pagelist link="backlink" layer="synopsis":)
+
+
+
+
+ 0
+
+ 24
+
+ reno_context
+
+
+
+
+
+
+ 1
+ C9AFCA0931CB65AE31811E702FC48CB22348149B1D259CD9161D391FEC640FA8
+ 2324436793
+ 94
+ 227
+
+
+
+
+
+ 0
+ ../../../../boost/exception/exception.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception/exception.hpp
+
+
+ exception_exception_hpp
+
+
+
+
+
+ 1
+ 2
+ !!!boost/exception/exception.hpp
This header file contains the following definitions/declarations:
(:pagelist link="backlink" layer="synopsis":)
+
+
+
+
+ 0
+
+ 25
+
+ reno_context
+
+
+
+
+
+
+ 1
+ EB524A8A61E5F1A93CE4336B980696C09E7ADF42A6B933BA76EFB1544AB7C4CC
+ 2274957083
+ 94
+ 227
+
+
+
+
+
+ 0
+ ../../../../boost/exception/error_info.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception/error_info.hpp
+
+
+ exception_error_info_value_hpp
+
+
+
+
+
+ 3
+ 2
+ !!!boost/exception/error_info.hpp
This header file contains the following declaration:
[@namespace
boost
{
template <class Tag, class T>
class (:link
+ 1
+
+ 0
+
+ -11
+
+
+ 2
+ :);
}@]
+
+
+
+
+ 0
+
+ 26
+
+ reno_context
+
+
+
+
+
+
+ 1
+ 5373E336DC4892A41D31694BCA1146382FC3137819A04689CA1F9FFAF1CFAB3B
+ 4050491732
+ 466
+ 307
+
+
+
+
+
+ 0
+ ../../example/cloning_1.cpp
+ 0
+ 0
+
+
+
+
+ Tutorial: Using enable_current_exception() at the Time of the Throw
+
+
+ using_enable_cloning
@@ -2128,7 +1075,7 @@
0
- 39
+ 27
reno_context
@@ -2138,27 +1085,27 @@
1
- FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717
- 2229778754
- 631
- 319
+ 187BFD2B78A0DD006717B5B06FFD465E2468F521C32A86FB793F7A68AB5417F3
+ 4276724153
+ 574
+ 382
0
- ../../example/cloning_2.cpp
+ ../../example/error_info_1.cpp
0
0
- Tutorial: Cloning and Re-throwing an Exception
+ Tutorial: Adding of Arbitrary Data at the Point of the Throw
- cloning_and_rethrowing
+ adding_data_at_throw
@@ -2173,7 +1120,52 @@
0
- 40
+ 28
+
+ reno_context
+
+
+
+
+
+
+ 1
+ 5EE6ED209B5DBBD30DFCDA1FD30719A799EE9DBD48A5176F73EADB588CAEB2AA
+ 2442598207
+ 94
+ 227
+
+
+
+
+
+ 0
+ ../../../../boost/exception/info.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception/info.hpp
+
+
+ exception_error_info_hpp
+
+
+
+
+
+ 1
+ 2
+ !!!boost/exception/info.hpp
This header file contains the following definitions/declarations:
(:pagelist link="backlink" layer="synopsis":)
+
+
+
+
+ 0
+
+ 29
reno_context
@@ -2214,6 +1206,1011 @@
(:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+ 0
+
+ 30
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 6D87824C3C2750FDF44C61E4C06CEDDD45B2F77C309BDEC3A4F3F72AFF48953D
+ 629396270
+ 3191
+ 506
+ 8F3B5E1A267CA225679713F4DDF528041F573BC02D1DBCD8FFEF57EF0AA599B9
+ 4197332561
+ 180
+ 3005
+
+
+
+
+
+ 0
+ ../../../../boost/exception/enable_current_exception.hpp
+ 0
+ 0
+
+
+
+
+ enable_current_exception
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 31
+
+ reno_context
+
+
+
+
+
+
+ 1
+ AEB5EEC1A44A4F0B184A6F73617CB57E82CE06A15DB6036D54109C66CDE06EFF
+ 625364235
+ 290
+ 302
+
+
+
+
+
+ 0
+ ../../example/logging.cpp
+ 0
+ 0
+
+
+
+
+ Tutorial: Logging of boost::exception Objects
+
+
+ logging
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 32
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 973F8368D72D56424349CBB81C8F3015CB9F4F0CD7B23A8C62C3DBADDA37CD57
+ 3833800883
+ 4832
+ 514
+ 9567A192BF523DDF741004FFF5BDB044D715FEB7CE9AEC89ACC25C1C33E48C4E
+ 2232115228
+ 381
+ 26
+
+
+
+
+
+ 0
+ ../../../../boost/exception_ptr.hpp
+ 0
+ 0
+
+
+
+
+ unknown_exception
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 33
+
+ reno_context
+
+
+
+
+
+
+ 1
+ 2C5F1B7E5C5052C9C9305848AB499A9C166D728EAAD25DC936B75FCA997A0650
+ 3171555959
+ 88
+ 1
+
+
+
+
+
+ 0
+ ../../../../boost/throw_exception.hpp
+ 0
+ 0
+
+
+
+
+ boost/throw_exception.hpp
+
+
+ throw_exception_hpp
+
+
+
+
+
+ 1
+ 2
+ !!!boost/exception/throw_exception.hpp
This header file contains the following definitions/declarations:
(:pagelist link="backlink" layer="synopsis":)
+
+
+
+
+ 0
+
+ 34
+
+ reno_context
+
+
+
+
+
+
+ 1
+ A9C65F105342D728DE9C996079E82DF25408B94A272090039FAAC12D29659F69
+ 2378831669
+ 94
+ 227
+
+
+
+
+
+ 0
+ ../../../../boost/exception/enable_current_exception.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception/enable_current_exception.hpp
+
+
+ exception_enable_exception_cloning_hpp
+
+
+
+
+
+ 1
+ 2
+ !!!boost/exception/enable_current_exception.hpp
This header file contains the following definitions/declarations:
(:pagelist link="backlink" layer="synopsis":)
+
+
+
+
+ 0
+
+ 35
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 427FFBF157B284A9FB0CF4FAEC4A9BB2ADA8AC6CB4F4C329FAE0FED649640E3E
+ 2573550761
+ 6200
+ 737
+ 27AC1164E0A824D548386BEDCDC81DCAC283F3D286B0ECEE05B039BB8C392BFC
+ 1247954090
+ 249
+ 1599
+
+
+
+
+
+ 0
+ ../../../../boost/exception/info.hpp
+ 0
+ 0
+
+
+
+
+ operator<</exception
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 36
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 49EA85868C2355F4F7ED6CF9D05FDC08547EF85F76913E1FDBBC96F8712C6C83
+ 385672468
+ 2694
+ 503
+ 041A9EA55D30804689CD4DEB864994D595EDF33378B25EA81DB5DA2CF402E542
+ 1211481835
+ 1683
+ 846
+
+
+
+
+
+ 0
+ ../../../../boost/exception/exception.hpp
+ 0
+ 0
+
+
+
+
+ exception
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 37
+
+ reno_context
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+ Boost Exception
+
+
+ boost-exception
+
+
+
+
+
+ 113
+ 2
+ !!Abstract
The purpose of Boost Exception is to ease the design of exception class hierarchies and to help write exception handling and error reporting code.
It supports transporting of arbitrary data to the catch site, which is otherwise tricky due to the no-throw requirements (15.5.1) for exception classes. Data can be added to any exception object, either directly in the throw-expression (15.1), or at a later time as the exception object propagates up the call stack.
The ability to add data to exception objects after they have been passed to @@throw@@ is important, because often some of the information needed to handle an exception is unavailable in the context where the failure is detected.
Boost Exception also supports (:link
+ 1
+
+ 0
+
+ -8
+
+
+ 2
+ |cloning:) of exception objects, implemented non-intrusively and automatically by the @@boost::(:link
+ 1
+
+ 0
+
+ -14
+
+
+ 2
+ :)()@@ function.
!!!!Note:
Boost Exception was accepted as a Boost library on November 7 2007, however it has not yet been part of an official Boost release. Current version can be downloaded from (:link http://svn.boost.org/svn/boost/trunk | Boost SVN:).
!!Contents
#Tutorial
##(:link
+ 1
+
+ 0
+
+ 38
+
+ reno_context
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+ Tutorial: Transporting of Arbitrary Data to the Catch Site
+
+
+ transporting_data
+
+
+
+
+ 2
+ :)
##(:link
+ 1
+
+ 0
+
+ -9
+
+
+ 2
+ :)
##(:link
+ 1
+
+ 0
+
+ -8
+
+
+ 2
+ :)
##(:link
+ 1
+
+ 0
+
+ -31
+
+
+ 2
+ :)
#Documentation
##Class @@(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@
##Transporting of Arbitrary Data to the Catch Site
###@@(:link
+ 1
+
+ 0
+
+ -11
+
+
+ 2
+ :)@@
###@@(:link
+ 1
+
+ 0
+
+ -35
+
+
+ 2
+ |operator<<:)()@@
###@@(:link
+ 1
+
+ 0
+
+ -18
+
+
+ 2
+ :)()@@
###@@(:link
+ 1
+
+ 0
+
+ -17
+
+
+ 2
+ :)()@@
###@@(:link
+ 1
+
+ 0
+
+ 39
+
+ reno_context
+
+
+
+
+
+
+ 1
+ 49D31376D97691F7C84A134B5D8C7C66EF1ED6901D376CA250D634AE2B38AB5E
+ 549270010
+ 163
+ 572
+
+
+
+
+
+ 0
+ ../../../../boost/exception/info.hpp
+ 0
+ 0
+
+
+
+
+ BOOST_ERROR_INFO
+
+
+
+
+
+
+
+ 2
+ :)@@
##Transporting of Exceptions between Threads
###@@(:link
+ 1
+
+ 0
+
+ 40
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 973F8368D72D56424349CBB81C8F3015CB9F4F0CD7B23A8C62C3DBADDA37CD57
+ 3833800883
+ 4832
+ 514
+ ED09F845070FF7D381BE5EFB6B55313FD09FBA16B64B69992410380EFA45519C
+ 2051939590
+ 78
+ 409
+
+
+
+
+
+ 0
+ ../../../../boost/exception_ptr.hpp
+ 0
+ 0
+
+
+
+
+ exception_ptr
+
+
+
+
+
+
+
+ 2
+ :)@@
###@@(:link
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :)()@@
###@@(:link
+ 1
+
+ 0
+
+ -16
+
+
+ 2
+ :)()@@
###@@(:link
+ 1
+
+ 0
+
+ -5
+
+
+ 2
+ :)()@@
###@@(:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)()@@
###@@(:link
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :)@@
##@@(:link
+ 1
+
+ 0
+
+ -14
+
+
+ 2
+ :)()@@
##Headers
###@@(:link
+ 1
+
+ 0
+
+ -7
+
+
+ 2
+ :)@@
###@@(:link
+ 1
+
+ 0
+
+ -6
+
+
+ 2
+ :)@@
###@@(:link
+ 1
+
+ 0
+
+ -33
+
+
+ 2
+ :)@@
###@@(:link
+ 1
+
+ 0
+
+ -34
+
+
+ 2
+ :)@@
###@@(:link
+ 1
+
+ 0
+
+ -22
+
+
+ 2
+ :)@@
###@@(:link
+ 1
+
+ 0
+
+ -28
+
+
+ 2
+ :)@@
###@@(:link
+ 1
+
+ 0
+
+ -23
+
+
+ 2
+ :)@@
###@@(:link
+ 1
+
+ 0
+
+ -25
+
+
+ 2
+ :)@@
###@@(:link
+ 1
+
+ 0
+
+ -24
+
+
+ 2
+ :)@@
#(:link
+ 1
+
+ 0
+
+ -15
+
+
+ 2
+ :)
!!Synopsis
@@#include <(:link
+ 1
+
+ 0
+
+ -7
+
+
+ 2
+ :)>@@
[@namespace
boost
{
(:include
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -11
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -35
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -18
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -17
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -39
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -16
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -5
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -14
+
+
+ 2
+ decl:)
}@]
(:include
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)
!!Transporting of Arbitrary Data to the Catch Site
(:include
+ 1
+
+ 0
+
+ -11
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -35
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -18
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -17
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -39
+
+
+ 2
+ :)
!!Transporting of Exceptions between Threads
(:include
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -16
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -5
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :)
!!Throwing Exceptions
(:include
+ 1
+
+ 0
+
+ -14
+
+
+ 2
+ :)
+
+
+
+
+ 0
+
+ -38
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ -39
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ -40
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
@@ -2291,7 +2288,15 @@
- 0
+ 3
+ 2
+ [@#include <
+ 1
+
+ 1
+
+ 2
+ >@]
@@ -2302,15 +2307,7 @@
- 3
- 2
- [@#include <
- 1
-
- 1
-
- 2
- >@]
+ 0
@@ -2332,18 +2329,7 @@
- 3
- 2
- [@#include <(:link
- 1
-
- 0
-
- -27
-
-
- 2
- :)>
+ 0
@@ -2354,15 +2340,7 @@
- 3
- 2
- [@#include <
- 1
-
- 1
-
- 2
- >@]
+ 0
@@ -2384,7 +2362,15 @@
- 0
+ 3
+ 2
+ [@#include <
+ 1
+
+ 1
+
+ 2
+ >@]
@@ -2431,28 +2417,6 @@
0
-
-
- 0
-
- -29
-
-
-
- 0
-
-
-
-
- 0
-
- -30
-
-
-
- 0
-
-
0
@@ -2483,15 +2447,7 @@
- 3
- 2
- [@#include <
- 1
-
- 1
-
- 2
- >@]
+ 0
@@ -2542,7 +2498,7 @@
0
- -31
+ -28
@@ -2553,7 +2509,40 @@
0
- -28
+ -29
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -30
+
+
+
+ 3
+ 2
+ [@#include <(:link
+ 1
+
+ 0
+
+ -34
+
+
+ 2
+ :)>
+
+
+
+
+ 0
+
+ -31
@@ -2656,7 +2645,15 @@
- 0
+ 3
+ 2
+ [@#include <
+ 1
+
+ 1
+
+ 2
+ >@]
@@ -2849,28 +2846,6 @@
0
-
-
- 0
-
- -29
-
-
-
- 0
-
-
-
-
- 0
-
- -30
-
-
-
- 0
-
-
0
@@ -2952,7 +2927,7 @@
0
- -31
+ -28
@@ -2963,7 +2938,29 @@
0
- -28
+ -29
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -30
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -31
@@ -3259,28 +3256,6 @@
0
-
-
- 0
-
- -29
-
-
-
- 0
-
-
-
-
- 0
-
- -30
-
-
-
- 0
-
-
0
@@ -3362,7 +3337,7 @@
0
- -31
+ -28
@@ -3373,7 +3348,29 @@
0
- -28
+ -29
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -30
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -31
@@ -3501,7 +3498,27 @@
- 0
+ 5
+ 2
+ [@ template <class T>
(:link
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ :) (:link
+ 1
+
+ 0
+
+ -5
+
+
+ 2
+ :)( T const & e );@]
@@ -3523,45 +3540,7 @@
- 9
- 2
- [@ class
(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)
{
public:
(:include
- 1
-
- 0
-
- -35
-
-
- 2
- decl:)
protected:
(:include
- 1
-
- 0
-
- -36
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -37
-
-
- 2
- decl:)
private:
---unspecified---
};@]
+ 0
@@ -3572,36 +3551,7 @@
- 7
- 2
- [@ template <class E, class Tag1, class T1>
E const & operator<<( E const & x, (:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)<Tag1,T1> const & v );
template <class E, class Tag1, class T1, ..., class TagN, class TN>
E const & operator<<( E const & x,
(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)<
(:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)<Tag1,T1>,
...,
(:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)<TagN,TN> > const & v );@]
+ 0
@@ -3612,18 +3562,7 @@
- 3
- 2
- [@ template <class ErrorInfo,class E>
(:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:)<typename ErrorInfo::value_type const> (:link
- 1
-
- 0
-
- -9
-
-
- 2
- :)( E const & x );
+ 0
@@ -3634,9 +3573,9 @@
- 3
+ 5
2
- [@ template <class T>
---unspecified--- (:link
+ [@ void (:link
1
0
@@ -3645,7 +3584,16 @@
2
- :)( T const & x );@]
+ :)( (:link
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ :) const & ep );
@@ -3656,9 +3604,9 @@
- 5
+ 3
2
- [@ void (:link
+ [@ template <class Tag,class T>
class
(:link
1
0
@@ -3667,16 +3615,7 @@
2
- :)( (:link
- 1
-
- 0
-
- -23
-
-
- 2
- :) const & ep );
+ :)
{
public:
typedef T value_type;
error_info( value_type const & );
private:
---unspecified---
};@]
@@ -3698,18 +3637,7 @@
- 3
- 2
- [@ template <class T>
---unspecified--- (:link
- 1
-
- 0
-
- -13
-
-
- 2
- :)( T const & e );
+ 0
@@ -3722,16 +3650,7 @@
5
2
- [@ (:link
- 1
-
- 0
-
- -23
-
-
- 2
- :) (:link
+ [@#ifdef BOOST_NO_EXCEPTIONS
void (:link
1
0
@@ -3740,7 +3659,16 @@
2
- :)();@]
+ :)( std::exception const & e ); // user defined
#else
template <class E>
void (:link
+ 1
+
+ 0
+
+ -14
+
+
+ 2
+ :)( E const & e );
#endif@]
@@ -3762,9 +3690,18 @@
- 3
+ 5
2
- [@ class
(:link
+ [@ (:link
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ :) (:link
1
0
@@ -3773,7 +3710,7 @@
2
- :):
public std::exception
public boost::exception
{
---unspecified---
};@]
+ :)();@]
@@ -3784,7 +3721,18 @@
- 0
+ 3
+ 2
+ [@ template <class T>
---unspecified--- (:link
+ 1
+
+ 0
+
+ -17
+
+
+ 2
+ :)( T const & x );@]
@@ -3795,7 +3743,18 @@
- 0
+ 3
+ 2
+ [@ template <class ErrorInfo,class E>
(:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:)<typename ErrorInfo::value_type const> (:link
+ 1
+
+ 0
+
+ -18
+
+
+ 2
+ :)( E const & x );
@@ -3806,9 +3765,9 @@
- 5
+ 3
2
- [@#ifdef BOOST_NO_EXCEPTIONS
void (:link
+ [@ virtual char const * (:link
1
0
@@ -3817,16 +3776,7 @@
2
- :)( std::exception const & e ); // user defined
#else
template <class E>
void (:link
- 1
-
- 0
-
- -19
-
-
- 2
- :)( E const & e );
#endif@]
+ :::)() const throw();@]
@@ -3837,29 +3787,36 @@
- 0
-
-
-
-
- 0
-
- -29
-
-
-
- 0
-
-
-
-
- 0
-
- -30
-
-
-
- 0
+ 7
+ 2
+ [@ (:link
+ 1
+
+ 0
+
+ -20
+
+
+ 2
+ :::)();
(:link
+ 1
+
+ 0
+
+ -20
+
+
+ 2
+ :::)( (:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :) const & x );@]
@@ -3872,7 +3829,7 @@
3
2
- [@ template <class Tag,class T>
class
(:link
+ [@ (:link
1
0
@@ -3881,7 +3838,7 @@
2
- :)
{
public:
typedef T value_type;
error_info( value_type const & );
private:
---unspecified---
};@]
+ :::)();@]
@@ -3892,45 +3849,7 @@
- 9
- 2
- [@ typedef (:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)<struct tag_throw_function,char const *> throw_function;
typedef (:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)<struct tag_throw_file,char const *> throw_file;
typedef (:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)<struct tag_throw_line,int> throw_line;
#define (:link
- 1
-
- 0
-
- -22
-
-
- 2
- :)\
::boost::throw_function(BOOST_CURRENT_FUNCTION) <<\
::boost::throw_file(__FILE__) <<\
::boost::throw_line((int)__LINE__)@]
+ 0
@@ -3941,18 +3860,7 @@
- 3
- 2
- [@ typedef ---unspecified--- (:link
- 1
-
- 0
-
- -23
-
-
- 2
- :);@]
+ 0
@@ -3963,27 +3871,7 @@
- 5
- 2
- [@ template <class T>
(:link
- 1
-
- 0
-
- -23
-
-
- 2
- :) (:link
- 1
-
- 0
-
- -24
-
-
- 2
- :)( T const & e );@]
+ 0
@@ -4023,7 +3911,7 @@
0
- -31
+ -28
@@ -4034,7 +3922,40 @@
0
- -28
+ -29
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -30
+
+
+
+ 3
+ 2
+ [@ template <class T>
---unspecified--- (:link
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :)( T const & e );
+
+
+
+
+ 0
+
+ -31
@@ -4049,7 +3970,18 @@
- 0
+ 3
+ 2
+ [@ class
(:link
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :):
public std::exception
public boost::exception
{
---unspecified---
};@]
@@ -4082,18 +4014,36 @@
- 3
+ 7
2
- [@ virtual char const * (:link
+ [@ template <class E, class Tag1, class T1>
E const & operator<<( E const & x, (:link
1
0
- -35
+ -11
2
- :::)() const throw();@]
+ :)<Tag1,T1> const & v );
template <class E, class Tag1, class T1, ..., class TagN, class TN>
E const & operator<<( E const & x,
(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)<
(:link
+ 1
+
+ 0
+
+ -11
+
+
+ 2
+ :)<Tag1,T1>,
...,
(:link
+ 1
+
+ 0
+
+ -11
+
+
+ 2
+ :)<TagN,TN> > const & v );@]
@@ -4104,9 +4054,9 @@
- 7
+ 9
2
- [@ (:link
+ [@ class
(:link
1
0
@@ -4115,25 +4065,34 @@
2
- :::)();
(:link
+ :)
{
public:
(:include
1
0
- -36
+ -19
2
- :::)( (:link
+ decl:)
protected:
(:include
1
0
- -7
+ -20
2
- :) const & x );@]
+ decl:)
(:include
+ 1
+
+ 0
+
+ -21
+
+
+ 2
+ decl:)
private:
---unspecified---
};@]
@@ -4144,18 +4103,7 @@
- 3
- 2
- [@ (:link
- 1
-
- 0
-
- -37
-
-
- 2
- :::)();@]
+ 0
@@ -4177,7 +4125,45 @@
- 0
+ 9
+ 2
+ [@ typedef (:link
+ 1
+
+ 0
+
+ -11
+
+
+ 2
+ :)<struct tag_throw_function,char const *> throw_function;
typedef (:link
+ 1
+
+ 0
+
+ -11
+
+
+ 2
+ :)<struct tag_throw_file,char const *> throw_file;
typedef (:link
+ 1
+
+ 0
+
+ -11
+
+
+ 2
+ :)<struct tag_throw_line,int> throw_line;
#define (:link
+ 1
+
+ 0
+
+ -39
+
+
+ 2
+ :)\
::boost::throw_function(BOOST_CURRENT_FUNCTION) <<\
::boost::throw_file(__FILE__) <<\
::boost::throw_line((int)__LINE__)@]
@@ -4188,7 +4174,18 @@
- 0
+ 3
+ 2
+ [@ typedef ---unspecified--- (:link
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ :);@]
@@ -4213,126 +4210,18 @@
- 27
+ 3
2
- !!Integrating Boost Exception in Existing Exception Class Hierarchies
Some exception hierarchies can not be modified to make @@boost::(:link
+ !!!copy_exception()
(:include synopsis:)
!!!!Effects:
As if @@try { throw e; } catch( ... ) { return
1
0
- -7
+ -16
2
- :)@@ a base type. For this case, the @@(:link
- 1
-
- 0
-
- -10
-
-
- 2
- :)()@@ function template can be used to make exception objects derive from @@boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)@@ anyway. Here is an example:
[@#include <(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :)>
#include <stdexcept>
typedef boost::(:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)<struct tag_std_range_min,size_t> std_range_min;
typedef boost::(:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)<struct tag_std_range_max,size_t> std_range_max;
typedef boost::(:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)<struct tag_std_range_index,size_t> std_range_index;
template <class T>
class
my_container
{
public:
size_t size() const;
T const &
operator[]( size_t i ) const
{
if( i > size() )
throw boost::(:link
- 1
-
- 0
-
- -10
-
-
- 2
- :)(std::range_error("Index out of range")) <<
std_range_min(0) <<
std_range_max(size()) <<
std_range_index(i);
//....
}
};
@]
@@(:link
- 1
-
- 0
-
- -10
-
-
- 2
- |Enable_error_info:)<T>@@ returns an object of ''unspecified type'' which is guaranteed to derive from both @@boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)@@ and @@T@@. This makes it possible to use @@(:link
- 1
-
- 0
-
- -8
-
-
- 2
- |operator<<:)()@@ to store additional information in the exception object. The exception can be intercepted as @@T &@@, therefore existing exception handling will not break. It can also be intercepted as @@boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :) &@@, so that (:link
- 1
-
- 0
-
- -20
-
-
- 2
- |more information can be added to the exception at a later time:).
+ (); }@@
@@ -4343,99 +4232,7 @@
- 21
- 2
- !!Logging of boost::exception Objects
Class @@boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)@@ provides a virtual member function @@(:link
- 1
-
- 0
-
- -35
-
-
- 2
- :::)()@@, with a signature identical to the familiar @@std::exception::what()@@ function. The default implementation returns a string value that is not presentable as a friendly user message, but because it is generated automatically, it is useful for debugging or logging purposes. Here is an example:
[@#include <(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :)>
#include <iostream>
void f(); //throws unknown types that derive from boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :).
void
g()
{
try
{
f();
}
catch(
boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :) & e )
{
std::cerr << e.(:link
- 1
-
- 0
-
- -35
-
-
- 2
- :::)();
}
}@]
The @@(:link
- 1
-
- 0
-
- -35
-
-
- 2
- :::)()@@ member function iterates over all data objects stored in the @@boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)@@ through @@(:link
- 1
-
- 0
-
- -8
-
-
- 2
- |operator<<:)()@@. The returned string is constructed by converting each data object to string and then concatenating these strings together.
When the @@(:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)<Tag,T>@@ template is instantiated, the system attempts overload resolution for an unqualified call to @@to_string(x)@@, where @@x@@ is of type @@T@@. If this is successful, the @@to_string()@@ overload is used to convert objects of type @@T@@ to string.
Otherwise, the system attempts overload resolution for @@s << x@@, where @@s@@ is a @@std::ostringstream@@ and @@x@@ is of type @@T@@. If this is successful, the @@operator<<@@ overload is used to convert objects of type @@T@@ to string.
Otherwise the system is unable to convert objects of type @@T@@ to string, and an unspecified stub string value is used without issuing a compile error.
+ 0
@@ -4446,63 +4243,7 @@
- 13
- 2
- !!exception
(:include synopsis:)
Class @@boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)@@ is designed to be used as a universal base for user-defined exception types.
An object of any type deriving from @@boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)@@ can store data of arbitrary types, using the @@
- 1
-
- 0
-
- -21
-
-
- 2
- @@ wrapper and @@(:link
- 1
-
- 0
-
- -8
-
-
- 2
- |operator<<:)()@@.
To retrieve data from a @@boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)@@ object, use the @@(:link
- 1
-
- 0
-
- -9
-
-
- 2
- :)()@@ function template.
(:include members:)
+ 0
@@ -4513,36 +4254,54 @@
- 7
+ 11
2
- !!!operator<<()
(:include synopsis:)
!!!!Requirements:
@@E@@ must be @@boost::(:link
+ !!Transporting of Exceptions between Threads
Boost Exception supports transporting of exception objects between threads through cloning. This system is similar to (:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:), but because Boost Exception can not rely on language support, the use of @@(:link
1
0
- -7
+ -30
2
- :)@@, or a type that derives (indirectly) from @@boost::(:link
+ :)()@@ at the time of the throw is required in order to use cloning.
!!!!Note:
All exceptions emitted by the familiar function @@boost::(:link
1
0
- -7
+ -14
2
- :)@@.
!!!!Effects:
* The first overload stores a copy of @@v@@ into @@x@@. If @@x@@ already contains data of type @@(:link
+ :)()@@ are guaranteed to derive from @@boost::(:link
1
0
- -21
+ -36
2
- :)<Tag1,T1>@@, that data is overwritten.
* The @@boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)@@ overload is equivalent to @@x << v.(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements|get:)<0>() << ... << v.(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements|get:)<N>()@@.
!!!!Returns:
@@x@@.
(:include throws:)
+ :)@@ and to support cloning.
(:include
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -12
+
+
+ 2
+ :)
@@ -4553,9 +4312,36 @@
- 7
+ 27
2
- !!!get_error_info()
(:include synopsis:)
!!!!Requirements:
The type of the @@x@@ object must derive from @@boost::(:link
+ !!Integrating Boost Exception in Existing Exception Class Hierarchies
Some exception hierarchies can not be modified to make @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@ a base type. For this case, the @@(:link
+ 1
+
+ 0
+
+ -17
+
+
+ 2
+ :)()@@ function template can be used to make exception objects derive from @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@ anyway. Here is an example:
[@#include <(:link
1
0
@@ -4564,25 +4350,88 @@
2
- :)@@; @@ErrorInfo@@ must be an instance of the @@(:link
+ :)>
#include <stdexcept>
typedef boost::(:link
1
0
- -21
+ -11
2
- :)@@ template.
!!!!Returns:
If @@x@@ does not store an object of type @@ErrorInfo@@, returns an empty @@(:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:)@@; otherwise returns pointer to the stored value. Use @@(:link
+ :)<struct tag_std_range_min,size_t> std_range_min;
typedef boost::(:link
1
0
- -8
+ -11
2
- |operator<<:)()@@ to store values in exception objects.
!!!!Throws:
Nothing.
+ :)<struct tag_std_range_max,size_t> std_range_max;
typedef boost::(:link
+ 1
+
+ 0
+
+ -11
+
+
+ 2
+ :)<struct tag_std_range_index,size_t> std_range_index;
template <class T>
class
my_container
{
public:
size_t size() const;
T const &
operator[]( size_t i ) const
{
if( i > size() )
throw boost::(:link
+ 1
+
+ 0
+
+ -17
+
+
+ 2
+ :)(std::range_error("Index out of range")) <<
std_range_min(0) <<
std_range_max(size()) <<
std_range_index(i);
//....
}
};
@]
@@(:link
+ 1
+
+ 0
+
+ -17
+
+
+ 2
+ |Enable_error_info:)<T>@@ returns an object of ''unspecified type'' which is guaranteed to derive from both @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@ and @@T@@. This makes it possible to use @@(:link
+ 1
+
+ 0
+
+ -35
+
+
+ 2
+ |operator<<:)()@@ to store additional information in the exception object. The exception can be intercepted as @@T &@@, therefore existing exception handling will not break. It can also be intercepted as @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :) &@@, so that (:link
+ 1
+
+ 0
+
+ -38
+
+
+ 2
+ |more information can be added to the exception at a later time:).
@@ -4592,52 +4441,115 @@
-10
-
- 7
- 2
- !!!enable_error_info()
(:include synopsis:)
!!!!Requirements:
@@T@@ must be a user-defined type with accessible no-throw copy constructor.
!!!!Returns:
An object of unspecified type with no-throw copy semantics, which derives publicly from both @@T@@, and class @@boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)@@. The @@T@@ sub-object is initialized from @@x@@ by the @@T@@ copy constructor. If @@T@@ already derives from @@boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)@@, then the type of the returned object does not derive @@boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)@@.
!!!!Throws:
Nothing.
-
-
-
-
- 0
-
- -11
-
-
1
2
!!!rethrow_exception()
(:include synopsis:)
!!!!Precondition:
@@ep@@ shall not be null.
!!!!Throws:
The exception to which @@ep@@ refers.
+
+
+ 0
+
+ -11
+
+
+
+ 21
+ 2
+ !!!error_info
(:include synopsis:)
!!!!Requirements:
@@T@@ must have accessible copy constructor and must not be a reference.
!!!!Description:
This class template is used to associate a @@Tag@@ type with a value type @@T@@. Objects of type @@(:link
+ 1
+
+ 0
+
+ -11
+
+
+ 2
+ :)<Tag,T>@@ can be passed to @@(:link
+ 1
+
+ 0
+
+ -35
+
+
+ 2
+ |operator<<:)()@@ to be stored in objects of type @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@.
!!!!Note:
The header @@<(:link
+ 1
+
+ 0
+
+ -25
+
+
+ 2
+ :)>@@ provides a declaration of the @@(:link
+ 1
+
+ 0
+
+ -11
+
+
+ 2
+ :)@@ template, which is sufficient for the purpose of @@typedef@@ing an instance for specific @@Tag@@ and @@T@@, like this:
[@#include <(:link
+ 1
+
+ 0
+
+ -25
+
+
+ 2
+ :)>
typedef boost::(:link
+ 1
+
+ 0
+
+ -11
+
+
+ 2
+ :)<struct tag_errno,int> errno_info;@]
Of course, to actually add an @@errno_info@@ object to exceptions using @@(:link
+ 1
+
+ 0
+
+ -35
+
+
+ 2
+ |operator<<:)()@@, or to retrieve it using @@(:link
+ 1
+
+ 0
+
+ -18
+
+
+ 2
+ :)()@@, you must first @@#include <(:link
+ 1
+
+ 0
+
+ -28
+
+
+ 2
+ :)>@@.
+
+
0
@@ -4646,7 +4558,180 @@
- 0
+ 39
+ 2
+ !!!Cloning and Re-throwing an Exception
When you catch a @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@, you can call @@(:link
+ 1
+
+ 0
+
+ -16
+
+
+ 2
+ :)()@@ to get an @@(:link
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ :)@@ object:
[@#include <(:link
+ 1
+
+ 0
+
+ -6
+
+
+ 2
+ :)>
#include <boost/thread.hpp>
#include <boost/bind.hpp>
void do_work(); //throws cloning-enabled boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)s
void
worker_thread( boost::(:link
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ :) & error )
{
try
{
do_work();
error = boost::(:link
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ :)();
}
catch(
... )
{
error = boost::(:link
+ 1
+
+ 0
+
+ -16
+
+
+ 2
+ :)();
}
}@]
In the above example, note that @@(:link
+ 1
+
+ 0
+
+ -16
+
+
+ 2
+ :)()@@ captures the original type of the exception object. The exception can be thrown again using the @@(:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)()@@ function:
[@// ...continued
void
work()
{
boost::(:link
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ :) error;
boost::(:link http://www.boost.org/doc/html/boost/thread.html|thread:) t( boost::(:link http://www.boost.org/libs/bind/bind.html|bind:)(worker_thread,boost::(:link http://www.boost.org/doc/html/ref.html|ref:)(error)) );
t.(:link http://www.boost.org/doc/html/boost/thread.html|join:)();
if( error )
boost::(:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)(error);
}@]
@@(:link
+ 1
+
+ 0
+
+ -16
+
+
+ 2
+ :)()@@ could fail to copy the original exception object in the following cases:
* if there is not enough memory, in which case the returned @@(:link
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ :)@@ points to an instance of @@std::bad_alloc@@, or
* if @@(:link
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :)()@@ was not used in the throw-expression passed to the original @@throw@@ statement and the current implementation does not have the necessary compiler-specific support to copy the exception automatically, in which case the returned @@(:link
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ :)@@ points to an instance of @@(:link
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :)@@.
Regardless, the use of @@(:link
+ 1
+
+ 0
+
+ -16
+
+
+ 2
+ :)()@@ and @@(:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)()@@ in the above examples is well-formed.
@@ -4657,36 +4742,9 @@
- 17
+ 13
2
- !!!enable_current_exception()
(:include synopsis:)
!!!!Requirements:
@@T@@ must have an accessible no-throw copy constructor
!!!!Returns:
An object of ''unspecified'' type which derives publicly from @@T@@. That is, the returned object can be intercepted by a @@catch(T &)@@.
!!!!Description:
This function is designed to be used directly in a throw-expression to enable the cloning support in Boost Exception. For example:
[@class
my_exception:
public std::exception
{
};
....
throw boost::(:link
- 1
-
- 0
-
- -13
-
-
- 2
- :)(my_exception());@]
Unless @@(:link
- 1
-
- 0
-
- -13
-
-
- 2
- :)()@@ is called at the time an exception object is used in a throw-expression, an attempt to copy it using @@(:link
- 1
-
- 0
-
- -14
-
-
- 2
- :)()@@ may return an @@(:link
+ !!!Adding Grouped Data to Exceptions
The code snippet below demonstrates how @@boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)@@ can be used to bundle the name of the function that failed, together with the reported @@errno@@ so that they can be added to exception objects more conveniently together:
[@#include <(:link
1
0
@@ -4695,43 +4753,52 @@
2
- :)@@ which refers to an instance of @@(:link
+ :)>
#include <boost/shared_ptr.hpp>
#include <stdio.h>
#include <string>
#include <errno.h>
typedef boost::(:link
1
0
- -16
+ -11
2
- :)@@. See @@(:link
+ :)<struct tag_file_name,std::string> file_name_info;
typedef boost::(:link
1
0
- -14
+ -11
2
- :)()@@ for details.
!!!!Note:
Instead of using the @@throw@@ keyword directly, it is preferable to call @@boost::(:link
+ :)<struct tag_function,char const *> function_info;
typedef boost::(:link
1
0
- -19
+ -11
2
- :)()@@. This is guaranteed to throw an exception that derives from @@boost::(:link
+ :)<struct tag_errno,int> errno_info;
typedef boost::tuple<function_info,errno_info> clib_failure;
class file_open_error: public boost::(:link
1
0
- -7
+ -36
2
- :)@@ and supports cloning.
+ :) { };
boost::shared_ptr<FILE>
file_open( char const * name, char const * mode )
{
if( FILE * f=fopen(name,mode) )
return boost::shared_ptr<FILE>(f,fclose);
else
throw file_open_error() <<
file_name_info(name) <<
clib_failure("fopen",errno);
}@]
Note that the members of a @@boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)@@ are stored separately in exception objects; they can only be retrieved individually, using @@(:link
+ 1
+
+ 0
+
+ -18
+
+
+ 2
+ :)()@@.
@@ -4742,9 +4809,9 @@
- 29
+ 9
2
- !!!current_exception()
(:include synopsis:)
!!!!Requirements:
The @@(:link
+ !!!throw_exception()
(:include synopsis:)
!!!!Requirements:
@@E@@ must derive publicly from @@std::exception@@.
!!!!Effects:
* If @@BOOST_NO_EXCEPTIONS@@ is not defined, @@boost::(:link
1
0
@@ -4753,25 +4820,25 @@
2
- :)()@@ function must not be called outside of a @@catch@@ block.
!!!!Returns:
* An @@(:link
+ :)(e)@@ is equivalent to @@throw boost::(:link
1
0
- -23
+ -30
2
- :)@@ that refers to the currently handled exception or a copy of the currently handled exception.
* If the function needs to allocate memory and the attempt fails, it returns an @@(:link
+ :)(boost::(:link
1
0
- -23
+ -17
2
- :)@@ that refers to an instance of @@std::bad_alloc@@.
!!!!Notes:
* It is unspecified whether the return values of two successive calls to @@(:link
+ :)(e))@@, unless @@BOOST_EXCEPTION_DISABLE@@ is defined, in which case @@boost::(:link
1
0
@@ -4780,97 +4847,7 @@
2
- :)()@@ refer to the same exception object.
* Correct implementation of @@(:link
- 1
-
- 0
-
- -14
-
-
- 2
- :)()@@ may require compiler support, unless @@(:link
- 1
-
- 0
-
- -13
-
-
- 2
- :)()@@ is used at the time the currently handled exception object was passed to @@throw@@. If @@(:link
- 1
-
- 0
-
- -13
-
-
- 2
- :)()@@ is not used, and if the compiler does not provide the necessary support, then @@(:link
- 1
-
- 0
-
- -14
-
-
- 2
- :)()@@ may return an @@(:link
- 1
-
- 0
-
- -23
-
-
- 2
- :)@@ that refers to an instance of @@(:link
- 1
-
- 0
-
- -16
-
-
- 2
- :)@@. In this case, if the original exception object derives from @@boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)@@, then the @@boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)@@ sub-object of the @@(:link
- 1
-
- 0
-
- -16
-
-
- 2
- :)@@ object is initialized by the @@boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)@@ copy constructor.
+ :)(e)@@ is equivalent to @@throw e;@@
* If @@BOOST_NO_EXCEPTIONS@@ is defined, the function is left undefined, and the user is expected to supply an appropriate definition. Callers of @@throw_exception@@ are allowed to assume that the function never returns; therefore, if the user-defined @@throw_exception@@ returns, the behavior is undefined.
@@ -4892,27 +4869,135 @@
- 5
+ 29
2
- !!!unknown_exception
(:include synopsis:)
This type is used by the (:link
+ !!!current_exception()
(:include synopsis:)
!!!!Requirements:
The @@(:link
1
0
- -18
+ -16
2
- |cloning:) support in Boost Exception. Please see @@(:link
+ :)()@@ function must not be called outside of a @@catch@@ block.
!!!!Returns:
* An @@(:link
1
0
- -14
+ -40
2
- :)()@@.
+ :)@@ that refers to the currently handled exception or a copy of the currently handled exception.
* If the function needs to allocate memory and the attempt fails, it returns an @@(:link
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ :)@@ that refers to an instance of @@std::bad_alloc@@.
!!!!Notes:
* It is unspecified whether the return values of two successive calls to @@(:link
+ 1
+
+ 0
+
+ -16
+
+
+ 2
+ :)()@@ refer to the same exception object.
* Correct implementation of @@(:link
+ 1
+
+ 0
+
+ -16
+
+
+ 2
+ :)()@@ may require compiler support, unless @@(:link
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :)()@@ is used at the time the currently handled exception object was passed to @@throw@@. If @@(:link
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :)()@@ is not used, and if the compiler does not provide the necessary support, then @@(:link
+ 1
+
+ 0
+
+ -16
+
+
+ 2
+ :)()@@ may return an @@(:link
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ :)@@ that refers to an instance of @@(:link
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :)@@. In this case, if the original exception object derives from @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@, then the @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@ sub-object of the @@(:link
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :)@@ object is initialized by the @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@ copy constructor.
@@ -4923,7 +5008,36 @@
- 0
+ 7
+ 2
+ !!!enable_error_info()
(:include synopsis:)
!!!!Requirements:
@@T@@ must be a user-defined type with accessible no-throw copy constructor.
!!!!Returns:
An object of unspecified type with no-throw copy semantics, which derives publicly from both @@T@@, and class @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@. The @@T@@ sub-object is initialized from @@x@@ by the @@T@@ copy constructor. If @@T@@ already derives from @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@, then the type of the returned object does not derive @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@.
!!!!Throws:
Nothing.
@@ -4934,54 +5048,36 @@
- 11
+ 7
2
- !!Transporting of Exceptions between Threads
Boost Exception supports transporting of exception objects between threads through cloning. This system is similar to (:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:), but because Boost Exception can not rely on language support, the use of @@(:link
+ !!!get_error_info()
(:include synopsis:)
!!!!Requirements:
The type of the @@x@@ object must derive from @@boost::(:link
1
0
- -13
+ -36
2
- :)()@@ at the time of the throw is required in order to use cloning.
!!!!Note:
All exceptions emitted by the familiar function @@boost::(:link
+ :)@@; @@ErrorInfo@@ must be an instance of the @@(:link
1
0
- -19
+ -11
2
- :)()@@ are guaranteed to derive from @@boost::(:link
+ :)@@ template.
!!!!Returns:
If @@x@@ does not store an object of type @@ErrorInfo@@, returns an empty @@(:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:)@@; otherwise returns pointer to the stored value. Use @@(:link
1
0
- -7
+ -35
2
- :)@@ and to support cloning.
(:include
- 1
-
- 0
-
- -33
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -39
-
-
- 2
- :)
+ |operator<<:)()@@ to store values in exception objects.
!!!!Throws:
Nothing.
@@ -4992,45 +5088,36 @@
- 9
+ 7
2
- !!!throw_exception()
(:include synopsis:)
!!!!Requirements:
@@E@@ must derive publicly from @@std::exception@@.
!!!!Effects:
* If @@BOOST_NO_EXCEPTIONS@@ is not defined, @@boost::(:link
+ !!!exception::what()
(:include decl:)
!!!!Returns:
An string representation of all data stored in the @@boost::(:link
1
0
- -19
+ -36
2
- :)(e)@@ is equivalent to @@throw boost::(:link
+ :)@@ object by the @@(:link
1
0
- -13
+ -35
2
- :)(boost::(:link
+ |operator<<:)()@@ function. See "(:link
1
0
- -10
+ -31
2
- :)(e))@@, unless @@BOOST_EXCEPTION_DISABLE@@ is defined, in which case @@boost::(:link
- 1
-
- 0
-
- -19
-
-
- 2
- :)(e)@@ is equivalent to @@throw e;@@
* If @@BOOST_NO_EXCEPTIONS@@ is defined, the function is left undefined, and the user is expected to supply an appropriate definition. Callers of @@throw_exception@@ are allowed to assume that the function never returns; therefore, if the user-defined @@throw_exception@@ returns, the behavior is undefined.
+ :)" for details.
!!!!Throws:
Nothing.
!!!!Note:
The return value remains valid until the exception object from which it is obtained is destroyed or modified.
@@ -5041,76 +5128,36 @@
- 11
+ 7
2
- !!Transporting of Arbitrary Data to the Catch Site
All exception types that derive from @@boost::(:link
+ !!!exception constructors
(:include decl:)
!!!!Effects:
* Default constructor: initializes an empty @@boost::(:link
1
0
- -7
+ -36
2
- :)@@ can be used as type-safe containers of arbitrary data objects, while complying with the no-throw requirements (15.5.1) of the ANSI C++ standard for exception classes. Data can be added to a @@boost::(:link
+ :)@@ object.
* Copy constructor: initializes a @@boost::(:link
1
0
- -7
+ -36
2
- :)@@ at the time of the throw, or at a later time.
(:include
+ :)@@ object which shares with @@x@@ all data added through @@(:link
1
0
- -34
+ -35
2
- :)
(:include
- 1
-
- 0
-
- -40
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -38
-
-
- 2
- :)
-
-
-
-
- 0
-
- -29
-
-
-
- 0
-
-
-
-
- 0
-
- -30
-
-
-
- 0
+ |operator<<:)()@@, including data that is added at a future time.
!!!!Throws:
Nothing.
@@ -5121,99 +5168,18 @@
- 21
+ 3
2
- !!!error_info
(:include synopsis:)
!!!!Requirements:
@@T@@ must have accessible copy constructor and must not be a reference.
!!!!Description:
This class template is used to associate a @@Tag@@ type with a value type @@T@@. Objects of type @@(:link
+ !!!exception destructor
(:include decl:)
!!!!Effects:
Frees all resources associated with a @@boost::(:link
1
0
- -21
+ -36
2
- :)<Tag,T>@@ can be passed to @@(:link
- 1
-
- 0
-
- -8
-
-
- 2
- |operator<<:)()@@ to be stored in objects of type @@boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)@@.
!!!!Note:
The header @@<(:link
- 1
-
- 0
-
- -30
-
-
- 2
- :)>@@ provides a declaration of the @@(:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)@@ template, which is sufficient for the purpose of @@typedef@@ing an instance for specific @@Tag@@ and @@T@@, like this:
[@#include <(:link
- 1
-
- 0
-
- -30
-
-
- 2
- :)>
typedef boost::(:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)<struct tag_errno,int> errno_info;@]
Of course, to actually add an @@errno_info@@ object to exceptions using @@(:link
- 1
-
- 0
-
- -8
-
-
- 2
- |operator<<:)()@@, or to retrieve it using @@(:link
- 1
-
- 0
-
- -9
-
-
- 2
- :)()@@, you must first @@#include <(:link
- 1
-
- 0
-
- -15
-
-
- 2
- :)>@@.
+ :)@@ object.
!!!!Throws:
Nothing.
@@ -5224,36 +5190,7 @@
- 7
- 2
- !!!BOOST_ERROR_INFO
(:include synopsis:)
This macro is designed to be used with @@(:link
- 1
-
- 0
-
- -8
-
-
- 2
- |operator<<:)()@@ when throwing a @@boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)@@, to store information about the location of the throw statement. It can be chained with other @@(:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)@@s in a single throw expression.
+ 0
@@ -5264,72 +5201,7 @@
- 15
- 2
- !!!exception_ptr
(:include synopsis:)
The @@(:link
- 1
-
- 0
-
- -23
-
-
- 2
- :)@@ type can be used to refer to a copy of an exception object. It is Default Constructible, Copy Constructible, Assignable and Equality Comparable; @@(:link
- 1
-
- 0
-
- -23
-
-
- 2
- :)@@'s operations do not throw.
Two instances of @@(:link
- 1
-
- 0
-
- -23
-
-
- 2
- :)@@ are equivalent and compare equal if and only if they refer to the same exception.
The default constructor of @@(:link
- 1
-
- 0
-
- -23
-
-
- 2
- :)@@ produces the null value of the type. The null value is equivalent only to itself.
!!!!Note:
@@(:link
- 1
-
- 0
-
- -23
-
-
- 2
- :)@@ objects are returned by @@(:link
- 1
-
- 0
-
- -14
-
-
- 2
- :)()@@ and @@(:link
- 1
-
- 0
-
- -24
-
-
- 2
- :)()@@.
+ 0
@@ -5340,18 +5212,7 @@
- 3
- 2
- !!!copy_exception()
(:include synopsis:)
!!!!Effects:
As if @@try { throw e; } catch( ... ) { return
- 1
-
- 0
-
- -14
-
-
- 2
- (); }@@
+ 0
@@ -5373,7 +5234,45 @@
- 0
+ 9
+ 2
+ !!!Using enable_current_exception() at the Time of the Throw
Here is how cloning can be enabled in a throw-expression (15.1):
[@#include <(:link
+ 1
+
+ 0
+
+ -34
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -28
+
+
+ 2
+ :)>
#include <stdio.h>
#include <errno.h>
typedef boost::error_info<struct tag_errno,int> errno_info;
class file_read_error: public boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :) { };
void
file_read( FILE * f, void * buffer, size_t size )
{
if( size!=fread(buffer,1,size,f) )
throw boost::(:link
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :)(file_read_error()) <<
errno_info(errno);
}@]
@@ -5384,18 +5283,90 @@
- 0
-
-
-
-
- 0
-
- -31
-
-
-
- 0
+ 19
+ 2
+ !!!Adding of Arbitrary Data at the Point of the Throw
The following example demonstrates how @@errno@@ can be stored in exception objects using Boost Exception:
[@#include <(:link
+ 1
+
+ 0
+
+ -7
+
+
+ 2
+ :)>
#include <errno.h>
#include <iostream>
typedef boost::(:link
+ 1
+
+ 0
+
+ -11
+
+
+ 2
+ :)<struct tag_errno,int> errno_info; //(1)
class my_error: public boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :), public std::exception { }; //(2)
void
f()
{
throw my_error() << errno_info(errno); //(3)
}
@]
First, we instantiate the @@(:link
+ 1
+
+ 0
+
+ -11
+
+
+ 2
+ :)@@ template using a unique identifier -- @@tag_errno@@, and the type of the info it identifies -- @@int@@. This provides compile-time type safety for the various values stored in exception objects.
Second, we define class @@my_error@@, which derives from @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@.
Finally, (3) illustrates how the @@typedef@@ from (1) can be used with @@(:link
+ 1
+
+ 0
+
+ -35
+
+
+ 2
+ |operator<<:)()@@ to store values in exception objects at the point of the throw.
The stored @@errno@@ value can be recovered at a later time like this:
[@// ...continued
void
g()
{
try
{
f();
}
catch(
my_error & x )
{
if( boost::shared_ptr<int const> err=boost::(:link
+ 1
+
+ 0
+
+ -18
+
+
+ 2
+ :)<errno_info>(x) )
std::cerr << "Error code: " << *err;
}
}@]
The @@(:link
+ 1
+
+ 0
+
+ -18
+
+
+ 2
+ :)()@@ function template is instantiated with the @@typedef@@ from (1), and is passed an exception object of any type that derives publicly from @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@. If the exception object contains the requested value, the returned @@(:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:)@@ will point to it; otherwise an empty @@(:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:)@@ is returned.
@@ -5409,6 +5380,297 @@
0
+
+
+ 0
+
+ -29
+
+
+
+ 21
+ 2
+ !!!Adding of Arbitrary Data to Active Exception Objects
Sometimes the throw site does not have all the information that is needed at the catch site to make sense of what went wrong. Here is an example:
[@#include <stdio.h>
#include <string>
class
file_read_error
{
public:
explicit
file_read_error( std::string const & fn ):
fn_(fn)
{
};
std::string const &
file_name() const
{
return fn_;
}
private:
std::string fn_;
};
void
file_read( FILE * f, void * buffer, size_t size )
{
if( size!=fread(buffer,1,size,f) )
throw file_read_error("????");
}@]
We have defined an exception class @@file_read_error@@ which can store a file name, so that when we catch a @@file_read_error@@ object, we know which file the failure is related to. However, the @@file_read@@ function does not have the file name at the time of the throw; all it has is a @@FILE@@ handle.
One possible solution is to not use @@FILE@@ handles directly. We could have our own @@class file@@ which stores both a @@FILE@@ handle and a file name, and pass that to @@file_read()@@. However, this could be problematic if we communicate with 3rd party code that does not use our @@class file@@ (probably because they have their own similar class.)
A better solution is to make class @@file_read_error@@ derive (possibly indirectly) from @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@, and free the @@file_read()@@ function from the burden of storing the file name in exceptions it throws:
[@#include <(:link
+ 1
+
+ 0
+
+ -7
+
+
+ 2
+ :)>
#include <stdio.h>
#include <errno.h>
typedef boost::(:link
+ 1
+
+ 0
+
+ -11
+
+
+ 2
+ :)<struct tag_errno,int> errno_info;
class file_read_error: public boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :) { };
void
file_read( FILE * f, void * buffer, size_t size )
{
if( size!=fread(buffer,1,size,f) )
throw file_read_error() << errno_info(errno);
}@]
If @@file_read()@@ detects a failure, it throws an exception which contains the information that is available at the time, namely the @@errno@@. Other relevant information, such as the file name, can be added in a context higher up the call stack, where it is known naturally:
[@#include <(:link
+ 1
+
+ 0
+
+ -7
+
+
+ 2
+ :)>
#include <boost/shared_ptr.hpp>
#include <stdio.h>
#include <string>
typedef boost::(:link
+ 1
+
+ 0
+
+ -11
+
+
+ 2
+ :)<struct tag_file_name,std::string> file_name_info;
boost::shared_ptr<FILE> file_open( char const * file_name, char const * mode );
void file_read( FILE * f, void * buffer, size_t size );
void
parse_file( char const * file_name )
{
boost::shared_ptr<FILE> f = file_open(file_name,"rb");
assert(f);
try
{
char buf[1024];
file_read( f.get(), buf, sizeof(buf) );
}
catch(
boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :) & e )
{
e << file_name_info(file_name);
throw;
}
}@]
The above function is (almost) exception-neutral -- if an exception is emitted by any function call within the @@try@@ block, @@parse_file()@@ does not need to do any real work, but it intercepts any @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@ object, stores the file name, and re-throws using a throw-expression with no operand (15.1.6). The rationale for catching any @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@ object is that the file name is relevant to any failure that occurs in @@parse_file()@@, ''even if the failure is unrelated to file I/O''.
As usual, the stored data can be retrieved using @@(:link
+ 1
+
+ 0
+
+ -18
+
+
+ 2
+ :)()@@.
+
+
+
+
+ 0
+
+ -30
+
+
+
+ 17
+ 2
+ !!!enable_current_exception()
(:include synopsis:)
!!!!Requirements:
@@T@@ must have an accessible no-throw copy constructor
!!!!Returns:
An object of ''unspecified'' type which derives publicly from @@T@@. That is, the returned object can be intercepted by a @@catch(T &)@@.
!!!!Description:
This function is designed to be used directly in a throw-expression to enable the cloning support in Boost Exception. For example:
[@class
my_exception:
public std::exception
{
};
....
throw boost::(:link
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :)(my_exception());@]
Unless @@(:link
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :)()@@ is called at the time an exception object is used in a throw-expression, an attempt to copy it using @@(:link
+ 1
+
+ 0
+
+ -16
+
+
+ 2
+ :)()@@ may return an @@(:link
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ :)@@ which refers to an instance of @@(:link
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :)@@. See @@(:link
+ 1
+
+ 0
+
+ -16
+
+
+ 2
+ :)()@@ for details.
!!!!Note:
Instead of using the @@throw@@ keyword directly, it is preferable to call @@boost::(:link
+ 1
+
+ 0
+
+ -14
+
+
+ 2
+ :)()@@. This is guaranteed to throw an exception that derives from @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@ and supports cloning.
+
+
+
+
+ 0
+
+ -31
+
+
+
+ 21
+ 2
+ !!Logging of boost::exception Objects
Class @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@ provides a virtual member function @@(:link
+ 1
+
+ 0
+
+ -19
+
+
+ 2
+ :::)()@@, with a signature identical to the familiar @@std::exception::what()@@ function. The default implementation returns a string value that is not presentable as a friendly user message, but because it is generated automatically, it is useful for debugging or logging purposes. Here is an example:
[@#include <(:link
+ 1
+
+ 0
+
+ -7
+
+
+ 2
+ :)>
#include <iostream>
void f(); //throws unknown types that derive from boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :).
void
g()
{
try
{
f();
}
catch(
boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :) & e )
{
std::cerr << e.(:link
+ 1
+
+ 0
+
+ -19
+
+
+ 2
+ :::)();
}
}@]
The @@(:link
+ 1
+
+ 0
+
+ -19
+
+
+ 2
+ :::)()@@ member function iterates over all data objects stored in the @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@ through @@(:link
+ 1
+
+ 0
+
+ -35
+
+
+ 2
+ |operator<<:)()@@. The returned string is constructed by converting each data object to string and then concatenating these strings together.
When the @@(:link
+ 1
+
+ 0
+
+ -11
+
+
+ 2
+ :)<Tag,T>@@ template is instantiated, the system attempts overload resolution for an unqualified call to @@to_string(x)@@, where @@x@@ is of type @@T@@. If this is successful, the @@to_string()@@ overload is used to convert objects of type @@T@@ to string.
Otherwise, the system attempts overload resolution for @@s << x@@, where @@s@@ is a @@std::ostringstream@@ and @@x@@ is of type @@T@@. If this is successful, the @@operator<<@@ overload is used to convert objects of type @@T@@ to string.
Otherwise the system is unable to convert objects of type @@T@@ to string, and an unspecified stub string value is used without issuing a compile error.
+
+
0
@@ -5417,7 +5679,27 @@
- 0
+ 5
+ 2
+ !!!unknown_exception
(:include synopsis:)
This type is used by the (:link
+ 1
+
+ 0
+
+ -8
+
+
+ 2
+ |cloning:) support in Boost Exception. Please see @@(:link
+ 1
+
+ 0
+
+ -16
+
+
+ 2
+ :)()@@.
@@ -5428,45 +5710,7 @@
- 9
- 2
- !!!Using enable_current_exception() at the Time of the Throw
Here is how cloning can be enabled in a throw-expression (15.1):
[@#include <(:link
- 1
-
- 0
-
- -27
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -15
-
-
- 2
- :)>
#include <stdio.h>
#include <errno.h>
typedef boost::error_info<struct tag_errno,int> errno_info;
class file_read_error: public boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :) { };
void
file_read( FILE * f, void * buffer, size_t size )
{
if( size!=fread(buffer,1,size,f) )
throw boost::(:link
- 1
-
- 0
-
- -13
-
-
- 2
- :)(file_read_error()) <<
errno_info(errno);
}@]
+ 0
@@ -5477,90 +5721,7 @@
- 19
- 2
- !!!Adding of Arbitrary Data at the Point of the Throw
The following example demonstrates how @@errno@@ can be stored in exception objects using Boost Exception:
[@#include <(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :)>
#include <errno.h>
#include <iostream>
typedef boost::(:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)<struct tag_errno,int> errno_info; //(1)
class my_error: public boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :), public std::exception { }; //(2)
void
f()
{
throw my_error() << errno_info(errno); //(3)
}
@]
First, we instantiate the @@(:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)@@ template using a unique identifier -- @@tag_errno@@, and the type of the info it identifies -- @@int@@. This provides compile-time type safety for the various values stored in exception objects.
Second, we define class @@my_error@@, which derives from @@boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)@@.
Finally, (3) illustrates how the @@typedef@@ from (1) can be used with @@(:link
- 1
-
- 0
-
- -8
-
-
- 2
- |operator<<:)()@@ to store values in exception objects at the point of the throw.
The stored @@errno@@ value can be recovered at a later time like this:
[@// ...continued
void
g()
{
try
{
f();
}
catch(
my_error & x )
{
if( boost::shared_ptr<int const> err=boost::(:link
- 1
-
- 0
-
- -9
-
-
- 2
- :)<errno_info>(x) )
std::cerr << "Error code: " << *err;
}
}@]
The @@(:link
- 1
-
- 0
-
- -9
-
-
- 2
- :)()@@ function template is instantiated with the @@typedef@@ from (1), and is passed an exception object of any type that derives publicly from @@boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)@@. If the exception object contains the requested value, the returned @@(:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:)@@ will point to it; otherwise an empty @@(:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:)@@ is returned.
+ 0
@@ -5573,34 +5734,34 @@
7
2
- !!!exception::what()
(:include decl:)
!!!!Returns:
An string representation of all data stored in the @@boost::(:link
+ !!!operator<<()
(:include synopsis:)
!!!!Requirements:
@@E@@ must be @@boost::(:link
1
0
- -7
+ -36
2
- :)@@ object by the @@(:link
+ :)@@, or a type that derives (indirectly) from @@boost::(:link
1
0
- -8
+ -36
2
- |operator<<:)()@@ function. See "(:link
+ :)@@.
!!!!Effects:
* The first overload stores a copy of @@v@@ into @@x@@. If @@x@@ already contains data of type @@(:link
1
0
- -6
+ -11
2
- :)" for details.
!!!!Throws:
Nothing.
!!!!Note:
The return value remains valid until the exception object from which it is obtained is destroyed or modified.
+ :)<Tag1,T1>@@, that data is overwritten.
* The @@boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)@@ overload is equivalent to @@x << v.(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements|get:)<0>() << ... << v.(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements|get:)<N>()@@.
!!!!Returns:
@@x@@.
(:include throws:)
@@ -5611,36 +5772,63 @@
- 7
+ 13
2
- !!!exception constructors
(:include decl:)
!!!!Effects:
* Default constructor: initializes an empty @@boost::(:link
+ !!exception
(:include synopsis:)
Class @@boost::(:link
1
0
- -7
+ -36
2
- :)@@ object.
* Copy constructor: initializes a @@boost::(:link
+ :)@@ is designed to be used as a universal base for user-defined exception types.
An object of any type deriving from @@boost::(:link
1
0
- -7
+ -36
2
- :)@@ object which shares with @@x@@ all data added through @@(:link
+ :)@@ can store data of arbitrary types, using the @@
1
0
- -8
+ -11
2
- |operator<<:)()@@, including data that is added at a future time.
!!!!Throws:
Nothing.
+ @@ wrapper and @@(:link
+ 1
+
+ 0
+
+ -35
+
+
+ 2
+ |operator<<:)()@@.
To retrieve data from a @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@ object, use the @@(:link
+ 1
+
+ 0
+
+ -18
+
+
+ 2
+ :)()@@ function template.
(:include members:)
@@ -5651,18 +5839,7 @@
- 3
- 2
- !!!exception destructor
(:include decl:)
!!!!Effects:
Frees all resources associated with a @@boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)@@ object.
!!!!Throws:
Nothing.
+ 0
@@ -5673,9 +5850,36 @@
- 13
+ 11
2
- !!!Adding Grouped Data to Exceptions
The code snippet below demonstrates how @@boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)@@ can be used to bundle the name of the function that failed, together with the reported @@errno@@ so that they can be added to exception objects more conveniently together:
[@#include <(:link
+ !!Transporting of Arbitrary Data to the Catch Site
All exception types that derive from @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@ can be used as type-safe containers of arbitrary data objects, while complying with the no-throw requirements (15.5.1) of the ANSI C++ standard for exception classes. Data can be added to a @@boost::(:link
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)@@ at the time of the throw, or at a later time.
(:include
+ 1
+
+ 0
+
+ -27
+
+
+ 2
+ :)
(:include
1
0
@@ -5684,52 +5888,16 @@
2
- :)>
#include <boost/shared_ptr.hpp>
#include <stdio.h>
#include <string>
#include <errno.h>
typedef boost::(:link
+ :)
(:include
1
0
- -21
+ -13
2
- :)<struct tag_file_name,std::string> file_name_info;
typedef boost::(:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)<struct tag_function,char const *> function_info;
typedef boost::(:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)<struct tag_errno,int> errno_info;
typedef boost::tuple<function_info,errno_info> clib_failure;
class file_open_error: public boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :) { };
boost::shared_ptr<FILE>
file_open( char const * name, char const * mode )
{
if( FILE * f=fopen(name,mode) )
return boost::shared_ptr<FILE>(f,fclose);
else
throw file_open_error() <<
file_name_info(name) <<
clib_failure("fopen",errno);
}@]
Note that the members of a @@boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)@@ are stored separately in exception objects; they can only be retrieved individually, using @@(:link
- 1
-
- 0
-
- -9
-
-
- 2
- :)()@@.
+ :)
@@ -5740,90 +5908,27 @@
- 39
+ 7
2
- !!!Cloning and Re-throwing an Exception
When you catch a @@boost::(:link
+ !!!BOOST_ERROR_INFO
(:include synopsis:)
This macro is designed to be used with @@(:link
1
0
- -7
+ -35
2
- :)@@, you can call @@(:link
+ |operator<<:)()@@ when throwing a @@boost::(:link
1
0
- -14
+ -36
2
- :)()@@ to get an @@(:link
- 1
-
- 0
-
- -23
-
-
- 2
- :)@@ object:
[@#include <(:link
- 1
-
- 0
-
- -25
-
-
- 2
- :)>
#include <boost/thread.hpp>
#include <boost/bind.hpp>
void do_work(); //throws cloning-enabled boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)s
void
worker_thread( boost::(:link
- 1
-
- 0
-
- -23
-
-
- 2
- :) & error )
{
try
{
do_work();
error = boost::(:link
- 1
-
- 0
-
- -23
-
-
- 2
- :)();
}
catch(
... )
{
error = boost::(:link
- 1
-
- 0
-
- -14
-
-
- 2
- :)();
}
}@]
In the above example, note that @@(:link
- 1
-
- 0
-
- -14
-
-
- 2
- :)()@@ captures the original type of the exception object. The exception can be thrown again using the @@(:link
+ :)@@, to store information about the location of the throw statement. It can be chained with other @@(:link
1
0
@@ -5832,88 +5937,7 @@
2
- :)()@@ function:
[@// ...continued
void
work()
{
boost::(:link
- 1
-
- 0
-
- -23
-
-
- 2
- :) error;
boost::(:link http://www.boost.org/doc/html/boost/thread.html|thread:) t( boost::(:link http://www.boost.org/libs/bind/bind.html|bind:)(worker_thread,boost::(:link http://www.boost.org/doc/html/ref.html|ref:)(error)) );
t.(:link http://www.boost.org/doc/html/boost/thread.html|join:)();
if( error )
boost::(:link
- 1
-
- 0
-
- -11
-
-
- 2
- :)(error);
}@]
@@(:link
- 1
-
- 0
-
- -14
-
-
- 2
- :)()@@ could fail to copy the original exception object in the following cases:
* if there is not enough memory, in which case the returned @@(:link
- 1
-
- 0
-
- -23
-
-
- 2
- :)@@ points to an instance of @@std::bad_alloc@@, or
* if @@(:link
- 1
-
- 0
-
- -13
-
-
- 2
- :)()@@ was not used in the throw-expression passed to the original @@throw@@ statement and the current implementation does not have the necessary compiler-specific support to copy the exception automatically, in which case the returned @@(:link
- 1
-
- 0
-
- -23
-
-
- 2
- :)@@ points to an instance of @@(:link
- 1
-
- 0
-
- -16
-
-
- 2
- :)@@.
Regardless, the use of @@(:link
- 1
-
- 0
-
- -14
-
-
- 2
- :)()@@ and @@(:link
- 1
-
- 0
-
- -11
-
-
- 2
- :)()@@ in the above examples is well-formed.
+ :)@@s in a single throw expression.
@@ -5924,95 +5948,68 @@
- 21
+ 15
2
- !!!Adding of Arbitrary Data to Active Exception Objects
Sometimes the throw site does not have all the information that is needed at the catch site to make sense of what went wrong. Here is an example:
[@#include <stdio.h>
#include <string>
class
file_read_error
{
public:
explicit
file_read_error( std::string const & fn ):
fn_(fn)
{
};
std::string const &
file_name() const
{
return fn_;
}
private:
std::string fn_;
};
void
file_read( FILE * f, void * buffer, size_t size )
{
if( size!=fread(buffer,1,size,f) )
throw file_read_error("????");
}@]
We have defined an exception class @@file_read_error@@ which can store a file name, so that when we catch a @@file_read_error@@ object, we know which file the failure is related to. However, the @@file_read@@ function does not have the file name at the time of the throw; all it has is a @@FILE@@ handle.
One possible solution is to not use @@FILE@@ handles directly. We could have our own @@class file@@ which stores both a @@FILE@@ handle and a file name, and pass that to @@file_read()@@. However, this could be problematic if we communicate with 3rd party code that does not use our @@class file@@ (probably because they have their own similar class.)
A better solution is to make class @@file_read_error@@ derive (possibly indirectly) from @@boost::(:link
+ !!!exception_ptr
(:include synopsis:)
The @@(:link
1
0
- -7
+ -40
2
- :)@@, and free the @@file_read()@@ function from the burden of storing the file name in exceptions it throws:
[@#include <(:link
+ :)@@ type can be used to refer to a copy of an exception object. It is Default Constructible, Copy Constructible, Assignable and Equality Comparable; @@(:link
1
0
- -12
+ -40
2
- :)>
#include <stdio.h>
#include <errno.h>
typedef boost::(:link
+ :)@@'s operations do not throw.
Two instances of @@(:link
1
0
- -21
+ -40
2
- :)<struct tag_errno,int> errno_info;
class file_read_error: public boost::(:link
+ :)@@ are equivalent and compare equal if and only if they refer to the same exception.
The default constructor of @@(:link
1
0
- -7
+ -40
2
- :) { };
void
file_read( FILE * f, void * buffer, size_t size )
{
if( size!=fread(buffer,1,size,f) )
throw file_read_error() << errno_info(errno);
}@]
If @@file_read()@@ detects a failure, it throws an exception which contains the information that is available at the time, namely the @@errno@@. Other relevant information, such as the file name, can be added in a context higher up the call stack, where it is known naturally:
[@#include <(:link
+ :)@@ produces the null value of the type. The null value is equivalent only to itself.
!!!!Note:
@@(:link
1
0
- -12
+ -40
2
- :)>
#include <boost/shared_ptr.hpp>
#include <stdio.h>
#include <string>
typedef boost::(:link
+ :)@@ objects are returned by @@(:link
1
0
- -21
+ -16
2
- :)<struct tag_file_name,std::string> file_name_info;
boost::shared_ptr<FILE> file_open( char const * file_name, char const * mode );
void file_read( FILE * f, void * buffer, size_t size );
void
parse_file( char const * file_name )
{
boost::shared_ptr<FILE> f = file_open(file_name,"rb");
assert(f);
try
{
char buf[1024];
file_read( f.get(), buf, sizeof(buf) );
}
catch(
boost::(:link
+ :)()@@ and @@(:link
1
0
- -7
-
-
- 2
- :) & e )
{
e << file_name_info(file_name);
throw;
}
}@]
The above function is (almost) exception-neutral -- if an exception is emitted by any function call within the @@try@@ block, @@parse_file()@@ does not need to do any real work, but it intercepts any @@boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)@@ object, stores the file name, and re-throws using a throw-expression with no operand (15.1.6). The rationale for catching any @@boost::(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)@@ object is that the file name is relevant to any failure that occurs in @@parse_file()@@, ''even if the failure is unrelated to file I/O''.
As usual, the stored data can be retrieved using @@(:link
- 1
-
- 0
-
- -9
+ -5
2
@@ -6074,9 +6071,7 @@
- 1
- 2
- !!!!Throws:
@@std::bad_alloc@@, or any exception emitted by @@T1..TN@@ copy constructor.
+ 0
@@ -6109,7 +6104,18 @@
- 0
+ 3
+ 2
+ !!!!Throws:
@@std::bad_alloc@@, or any other exception resulting from copying any of the arguments of @@(:link
+ 1
+
+ 0
+
+ -11
+
+
+ 2
+ :)()@@.
@@ -6211,28 +6217,6 @@
0
-
-
- 0
-
- -29
-
-
-
- 0
-
-
-
-
- 0
-
- -30
-
-
-
- 0
-
-
0
@@ -6241,18 +6225,7 @@
- 3
- 2
- !!!!Throws:
@@std::bad_alloc@@, or any other exception resulting from copying any of the arguments of @@(:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)()@@.
+ 0
@@ -6325,7 +6298,7 @@
0
- -31
+ -28
@@ -6336,7 +6309,29 @@
0
- -28
+ -29
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -30
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -31
@@ -6384,7 +6379,9 @@
- 0
+ 1
+ 2
+ !!!!Throws:
@@std::bad_alloc@@, or any exception emitted by @@T1..TN@@ copy constructor.
@@ -6486,36 +6483,7 @@
- 7
- 2
- (:include
- 1
-
- 0
-
- -36
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -37
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -35
-
-
- 2
- :)
+ 0
@@ -6661,28 +6629,6 @@
0
-
-
- 0
-
- -29
-
-
-
- 0
-
-
-
-
- 0
-
- -30
-
-
-
- 0
-
-
0
@@ -6764,7 +6710,7 @@
0
- -31
+ -28
@@ -6775,7 +6721,29 @@
0
- -28
+ -29
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -30
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -31
@@ -6834,7 +6802,36 @@
- 0
+ 7
+ 2
+ (:include
+ 1
+
+ 0
+
+ -20
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -21
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -19
+
+
+ 2
+ :)
@@ -6903,7 +6900,18 @@
- 0
+ 3
+ 2
+ @@#include <(:link
+ 1
+
+ 0
+
+ -6
+
+
+ 2
+ :)>@@
[@namespace
boost
{
(:include decl:)
}@]
@@ -6925,18 +6933,7 @@
- 3
- 2
- @@#include <(:link
- 1
-
- 0
-
- -31
-
-
- 2
- :)>@@
[@namespace
boost
{
(:include decl:)
}@]
+ 0
@@ -6947,27 +6944,7 @@
- 5
- 2
- @@#include <(:link
- 1
-
- 0
-
- -15
-
-
- 2
- :)>@@\\
@@#include <(:link
- 1
-
- 0
-
- -29
-
-
- 2
- :)>
[@namespace
boost
{
(:include decl:)
}@]
+ 0
@@ -6978,18 +6955,7 @@
- 3
- 2
- @@#include <(:link
- 1
-
- 0
-
- -15
-
-
- 2
- :)>@@
[@namespace
boost
{
(:include decl:)
}@]
+ 0
@@ -7007,7 +6973,7 @@
0
- -28
+ -6
2
@@ -7029,7 +6995,7 @@
0
- -25
+ -28
2
@@ -7055,18 +7021,7 @@
- 3
- 2
- @@#include <(:link
- 1
-
- 0
-
- -27
-
-
- 2
- :)>@@
[@namespace
boost
{
(:include decl:)
}@]
+ 0
@@ -7084,7 +7039,7 @@
0
- -25
+ -33
2
@@ -7117,7 +7072,7 @@
0
- -25
+ -6
2
@@ -7132,7 +7087,18 @@
- 0
+ 3
+ 2
+ @@#include <(:link
+ 1
+
+ 0
+
+ -22
+
+
+ 2
+ :)>@@
[@namespace
boost
{
(:include decl:)
}@]
@@ -7143,7 +7109,18 @@
- 0
+ 3
+ 2
+ @@#include <(:link
+ 1
+
+ 0
+
+ -28
+
+
+ 2
+ :)>@@
[@namespace
boost
{
(:include decl:)
}@]
@@ -7154,18 +7131,7 @@
- 3
- 2
- @@#include <(:link
- 1
-
- 0
-
- -26
-
-
- 2
- :)>@@
[@namespace
boost
{
(:include decl:)
}@]
+ 0
@@ -7179,28 +7145,6 @@
0
-
-
- 0
-
- -29
-
-
-
- 0
-
-
-
-
- 0
-
- -30
-
-
-
- 0
-
-
0
@@ -7209,18 +7153,7 @@
- 3
- 2
- @@#include <(:link
- 1
-
- 0
-
- -15
-
-
- 2
- :)>@@
[@namespace
boost
{
(:include decl:)
}@]
+ 0
@@ -7231,18 +7164,7 @@
- 3
- 2
- @@#include <(:link
- 1
-
- 0
-
- -15
-
-
- 2
- :)>@@
[@namespace
boost
{
(:include decl:)
}@]
+ 0
@@ -7253,18 +7175,7 @@
- 3
- 2
- @@#include <(:link
- 1
-
- 0
-
- -25
-
-
- 2
- :)>@@
[@namespace
boost
{
(:include decl:)
}@]
+ 0
@@ -7275,18 +7186,7 @@
- 3
- 2
- @@#include <(:link
- 1
-
- 0
-
- -25
-
-
- 2
- :)>@@
[@namespace
boost
{
(:include decl:)
}@]
+ 0
@@ -7326,7 +7226,7 @@
0
- -31
+ -28
@@ -7337,7 +7237,40 @@
0
- -28
+ -29
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -30
+
+
+
+ 3
+ 2
+ @@#include <(:link
+ 1
+
+ 0
+
+ -34
+
+
+ 2
+ :)>@@
[@namespace
boost
{
(:include decl:)
}@]
+
+
+
+
+ 0
+
+ -31
@@ -7352,7 +7285,18 @@
- 0
+ 3
+ 2
+ @@#include <(:link
+ 1
+
+ 0
+
+ -6
+
+
+ 2
+ :)>@@
[@namespace
boost
{
(:include decl:)
}@]
@@ -7385,7 +7329,27 @@
- 0
+ 5
+ 2
+ @@#include <(:link
+ 1
+
+ 0
+
+ -28
+
+
+ 2
+ :)>@@\\
@@#include <(:link
+ 1
+
+ 0
+
+ -23
+
+
+ 2
+ :)>
[@namespace
boost
{
(:include decl:)
}@]
@@ -7396,7 +7360,18 @@
- 0
+ 3
+ 2
+ @@#include <(:link
+ 1
+
+ 0
+
+ -24
+
+
+ 2
+ :)>@@
[@namespace
boost
{
(:include decl:)
}@]
@@ -7429,7 +7404,18 @@
- 0
+ 3
+ 2
+ @@#include <(:link
+ 1
+
+ 0
+
+ -28
+
+
+ 2
+ :)>@@
[@namespace
boost
{
(:include decl:)
}@]
@@ -7440,7 +7426,18 @@
- 0
+ 3
+ 2
+ @@#include <(:link
+ 1
+
+ 0
+
+ -6
+
+
+ 2
+ :)>@@
[@namespace
boost
{
(:include decl:)
}@]
@@ -7509,12 +7506,6 @@
-20
-
- -29
-
-
- -30
-
-21
@@ -7537,10 +7528,16 @@
-27
- -31
+ -28
- -28
+ -29
+
+
+ -30
+
+
+ -31
-32
@@ -7588,41 +7585,7 @@
- -17
-
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
- -36
-
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
- -18
+ -37
@@ -7656,7 +7619,41 @@
- -32
+ -8
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+ -38
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+ -15
@@ -7680,7 +7677,7 @@
- -39
+ -12
@@ -7704,7 +7701,7 @@
- -12
+ -7
@@ -7728,7 +7725,7 @@
- -28
+ -22
@@ -7752,7 +7749,7 @@
- -5
+ -9
@@ -7776,7 +7773,35 @@
- -33
+ -26
+
+
+
+
+
+
+ 2
+ 6D87824C3C2750FDF44C61E4C06CEDDD45B2F77C309BDEC3A4F3F72AFF48953D
+ 629396270
+ 3191
+ 506
+ 8F3B5E1A267CA225679713F4DDF528041F573BC02D1DBCD8FFEF57EF0AA599B9
+ 4197332561
+ 180
+ 3005
+
+
+
+
+
+ 0
+ ../../../../boost/exception/enable_current_exception.hpp
+ 0
+ 0
+
+
+
+ -30
@@ -7804,7 +7829,7 @@
- -9
+ -18
@@ -7832,7 +7857,7 @@
- -21
+ -11
@@ -7860,7 +7885,7 @@
- -8
+ -35
@@ -7884,7 +7909,7 @@
- -26
+ -33
@@ -7912,7 +7937,7 @@
- -24
+ -5
@@ -7940,7 +7965,7 @@
- -16
+ -32
@@ -7968,7 +7993,7 @@
- -14
+ -16
@@ -7996,7 +8021,7 @@
- -11
+ -10
@@ -8024,7 +8049,7 @@
- -23
+ -40
@@ -8048,7 +8073,7 @@
- -22
+ -39
@@ -8072,35 +8097,7 @@
- -27
-
-
-
-
-
-
- 2
- 0ABC82B04F3761C21F4588ABC9D5F82BAF3F293974F0ECE694303EFB59BA7376
- 3824507607
- 2762
- 516
- 8F3B5E1A267CA225679713F4DDF528041F573BC02D1DBCD8FFEF57EF0AA599B9
- 4197332561
- 180
- 2576
-
-
-
-
-
- 0
- ../../../../boost/exception/enable_current_exception.hpp
- 0
- 0
-
-
-
- -13
+ -34
@@ -8128,7 +8125,7 @@
- -7
+ -36
@@ -8164,7 +8161,7 @@
- -37
+ -21
@@ -8196,7 +8193,7 @@
- -35
+ -19
@@ -8224,7 +8221,7 @@
- -19
+ -14
@@ -8252,7 +8249,7 @@
- -10
+ -17
@@ -8276,7 +8273,7 @@
- -31
+ -24
@@ -8300,7 +8297,7 @@
- -25
+ -6
@@ -8324,7 +8321,7 @@
- -15
+ -28
@@ -8348,7 +8345,7 @@
- -29
+ -23
@@ -8372,7 +8369,7 @@
- -30
+ -25
@@ -8396,7 +8393,7 @@
- -40
+ -29
@@ -8420,7 +8417,7 @@
- -34
+ -27
@@ -8444,7 +8441,7 @@
- -38
+ -13
@@ -8468,7 +8465,7 @@
- -6
+ -31
@@ -8499,7 +8496,7 @@
-5
- noindex,tutorial
+ cloning,copy_exception,exception,free,function
@@ -8508,7 +8505,7 @@
-6
- noindex,tutorial
+ boost/exception_ptr.hpp,header
@@ -8517,7 +8514,7 @@
-7
- exception,type
+ boost/exception.hpp,exception,header
@@ -8526,7 +8523,7 @@
-8
- error_info,exception,free,function,operator<</exception,template
+ cloning,exception,noindex,tutorial
@@ -8535,7 +8532,7 @@
-9
- error_info,exception,free,function,get_error_info,template
+ noindex,tutorial
@@ -8544,7 +8541,7 @@
-10
- enable_error_info,error_info,exception,free,function,template
+ cloning,exception,free,function,rethrow_exception
@@ -8553,7 +8550,7 @@
-11
- cloning,exception,free,function,rethrow_exception
+ error_info,exception,free,function,template
@@ -8562,7 +8559,7 @@
-12
- boost/exception.hpp,exception,header
+ noalso,noindex,tutorial
@@ -8571,7 +8568,7 @@
-13
- cloning,enable_current_exception,exception,free,function,template
+ noalso,noindex,tutorial
@@ -8580,7 +8577,7 @@
-14
- cloning,current_exception,exception,free,function
+ cloning,exception,free,function,template,throw_exception
@@ -8589,7 +8586,7 @@
-15
- boost/exception/info.hpp,exception,header
+ index,noindex
@@ -8598,7 +8595,7 @@
-16
- cloning,exception,type,unknown_exception
+ cloning,current_exception,exception,free,function
@@ -8607,7 +8604,7 @@
-17
- exception,noindex
+ enable_error_info,error_info,exception,free,function,template
@@ -8616,7 +8613,7 @@
-18
- cloning,exception,noindex,tutorial
+ error_info,exception,free,function,get_error_info,template
@@ -8625,7 +8622,7 @@
-19
- cloning,exception,free,function,template,throw_exception
+ exception,exception::what,function,member,noalso
@@ -8634,25 +8631,7 @@
-20
- error_info,exception,noindex,tutorial
-
-
-
- 0
-
- -29
-
-
- boost/exception/info_tuple.hpp,exception,header
-
-
-
- 0
-
- -30
-
-
- boost/exception/error_info.hpp,exception,header
+ exception,exception::exception,function,member,noalso
@@ -8661,7 +8640,7 @@
-21
- error_info,exception,free,function,template
+ exception,exception::~exception,function,member,noalso
@@ -8670,7 +8649,7 @@
-22
- BOOST_ERROR_INFO,error_info,exception,macro
+ boost/exception/enable_error_info.hpp,exception,header
@@ -8679,7 +8658,7 @@
-23
- cloning,exception,exception_ptr,type
+ boost/exception/info_tuple.hpp,exception,header
@@ -8688,7 +8667,7 @@
-24
- cloning,copy_exception,exception,free,function
+ boost/exception/exception.hpp,exception,header
@@ -8697,7 +8676,7 @@
-25
- boost/exception_ptr.hpp,header
+ boost/exception/error_info.hpp,exception,header
@@ -8706,7 +8685,7 @@
-26
- boost/throw_exception.hpp,header
+ noalso,noindex,tutorial
@@ -8715,16 +8694,7 @@
-27
- boost/exception/enable_current_exception.hpp,exception,header
-
-
-
- 0
-
- -31
-
-
- boost/exception/exception.hpp,exception,header
+ noalso,noindex,tutorial
@@ -8733,7 +8703,34 @@
-28
- boost/exception/enable_error_info.hpp,exception,header
+ boost/exception/info.hpp,exception,header
+
+
+
+ 0
+
+ -29
+
+
+ noalso,noindex,tutorial
+
+
+
+ 0
+
+ -30
+
+
+ cloning,enable_current_exception,exception,free,function,template
+
+
+
+ 0
+
+ -31
+
+
+ noindex,tutorial
@@ -8742,7 +8739,7 @@
-32
- index,noindex
+ cloning,exception,type,unknown_exception
@@ -8751,7 +8748,7 @@
-33
- noalso,noindex,tutorial
+ boost/throw_exception.hpp,header
@@ -8760,7 +8757,7 @@
-34
- noalso,noindex,tutorial
+ boost/exception/enable_current_exception.hpp,exception,header
@@ -8769,7 +8766,7 @@
-35
- exception,exception::what,function,member,noalso
+ error_info,exception,free,function,operator<</exception,template
@@ -8778,7 +8775,7 @@
-36
- exception,exception::exception,function,member,noalso
+ exception,type
@@ -8787,7 +8784,7 @@
-37
- exception,exception::~exception,function,member,noalso
+ exception,noindex
@@ -8796,7 +8793,7 @@
-38
- noalso,noindex,tutorial
+ error_info,exception,noindex,tutorial
@@ -8805,7 +8802,7 @@
-39
- noalso,noindex,tutorial
+ BOOST_ERROR_INFO,error_info,exception,macro
@@ -8814,7 +8811,7 @@
-40
- noalso,noindex,tutorial
+ cloning,exception,exception_ptr,type