diff --git a/doc/boost-exception.html b/doc/boost-exception.html
index 4ba3d6e..68ec166 100644
--- a/doc/boost-exception.html
+++ b/doc/boost-exception.html
@@ -24,8 +24,6 @@
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 N2179 -style copying of exception objects, implemented non-intrusively and automatically by the boost::throw_exception 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 Boost SVN .
Contents
TutorialTutorial: Transporting of Arbitrary Data to the Catch Site
Tutorial: Integrating Boost Exception in Existing Exception Class Hierarchies
diff --git a/doc/source/boost-exception.reno b/doc/source/boost-exception.reno
index c107de6..8e65761 100644
--- a/doc/source/boost-exception.reno
+++ b/doc/source/boost-exception.reno
@@ -58,32 +58,28 @@
- 2
- 973F8368D72D56424349CBB81C8F3015CB9F4F0CD7B23A8C62C3DBADDA37CD57
- 3833800883
- 4832
- 514
- 9567A192BF523DDF741004FFF5BDB044D715FEB7CE9AEC89ACC25C1C33E48C4E
- 2232115228
- 381
- 26
+ 1
+ CAB4D823BD4720B71E1CA5BE482AC95B42A9E07CD5E08671EA23184635F281A2
+ 3077708282
+ 89
+ 323
0
- ../../../../boost/exception_ptr.hpp
+ ../../../../boost/exception/error_info.hpp
0
0
- unknown_exception
+ boost/exception/error_info.hpp
-
+ exception_error_info_value_hpp
@@ -107,1490 +103,79 @@
- 0
+ 1
+ 49D31376D97691F7C84A134B5D8C7C66EF1ED6901D376CA250D634AE2B38AB5E
+ 549270010
+ 163
+ 572
- 1
+ 0
+ ../../../../boost/exception/info.hpp
+ 0
+ 0
- Boost Exception
+ BOOST_ERROR_INFO
- boost-exception
+
- 111
+ 1
2
- !!Introduction
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 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:)-style (:link
- 1
-
- 0
-
- 7
-
- reno_context
-
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
-
- Tutorial: Transporting of Exceptions between Threads
-
-
- tutorial_exception_ptr
-
-
-
-
- 2
- |copying:) of exception objects, implemented non-intrusively and automatically by the boost::(:link
- 1
-
- 0
-
- 8
-
- 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
-
- 9
-
- reno_context
-
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
-
- Tutorial: Transporting of Arbitrary Data to the Catch Site
-
-
- tutorial_transporting_data
-
-
-
-
- 2
- :)
##(:link
- 1
-
- 0
-
- 10
-
- reno_context
-
-
-
-
-
-
- 1
- D9B8E6AA12A4F33953B1A961FA590C5A3840234B6531CA8C04AC985AD5800835
- 2432554768
- 702
- 408
-
-
-
-
-
- 0
- ../../example/enable_error_info.cpp
- 0
- 0
-
-
-
-
- Tutorial: Integrating Boost Exception in Existing Exception Class Hierarchies
-
-
- tutorial_enable_error_info
-
-
-
-
- 2
- :)
##(:link
- 1
-
- 0
-
- -7
-
-
- 2
- :)
##(:link
- 1
-
- 0
-
- 11
-
- reno_context
-
-
-
-
-
-
- 1
- CE411E21EE9878B55B5906D033A0FC52574FB59D8A8CECB75405E9B1C9D782DB
- 1173443713
- 308
- 302
-
-
-
-
-
- 0
- ../../example/logging.cpp
- 0
- 0
-
-
-
-
- Tutorial: Diagnostic Information
-
-
- tutorial_diagnostic_information
-
-
-
-
- 2
- :)
#Documentation
##Class (:link
- 1
-
- 0
-
- 12
-
- reno_context
-
-
-
-
-
-
- 2
- A8142902F961A340F0621653A76FC7941054FFA10ADADB1018A2E797D7EB1FE9
- 665149135
- 3114
- 503
- FA32C25852E9BB3A713A7790E50C8060367F9810A8B03F3E63338FBF590F1EB9
- 201993397
- 2071
- 878
-
-
-
-
-
- 0
- ../../../../boost/exception/exception.hpp
- 0
- 0
-
-
-
-
- exception
-
-
-
-
-
-
-
- 2
- :)
##Transporting of Arbitrary Data to the Catch Site
###(:link
- 1
-
- 0
-
- 13
-
- reno_context
-
-
-
-
-
-
- 2
- C1FAB39F3B09548EC7B197853DC956883AE1C3A29A8A9D2FBDB97D8BEC76CD75
- 173037458
- 6345
- 737
- F839AFD37DC086BB1231B8E87D8EEBD28129649A06FC685AC7DF65595871AE30
- 2291609923
- 1204
- 243
-
-
-
-
-
- 0
- ../../../../boost/exception/info.hpp
- 0
- 0
-
-
-
-
- error_info
-
-
-
-
-
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- 14
-
- reno_context
-
-
-
-
-
-
- 2
- C1FAB39F3B09548EC7B197853DC956883AE1C3A29A8A9D2FBDB97D8BEC76CD75
- 173037458
- 6345
- 737
- 27AC1164E0A824D548386BEDCDC81DCAC283F3D286B0ECEE05B039BB8C392BFC
- 1247954090
- 249
- 1449
-
-
-
-
-
- 0
- ../../../../boost/exception/info.hpp
- 0
- 0
-
-
-
-
- operator<</exception
-
-
-
-
-
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- 15
-
- reno_context
-
-
-
-
-
-
- 2
- 07430F64896197A110C276D8A14CA8A75FBA482DDF50CD40D689A1898C84D054
- 1712604289
- 1296
- 396
- BCCB91D0DCA6EC45F29CB70CB64AEA6AB54F32F8F1D1937C4CB80B059346DC81
- 695614553
- 1264
- 26
-
-
-
-
-
- 0
- ../../../../boost/exception/info_tuple.hpp
- 0
- 0
-
-
-
-
- operator<</tuple
-
-
-
-
-
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- 16
-
- reno_context
-
-
-
-
-
-
- 2
- C1FAB39F3B09548EC7B197853DC956883AE1C3A29A8A9D2FBDB97D8BEC76CD75
- 173037458
- 6345
- 737
- 65D13C1BB0A16823F69A32BAB56A51CA317075C7FC8B7441EE0D9B57AF5AB2AC
- 2592266329
- 712
- 1700
-
-
-
-
-
- 0
- ../../../../boost/exception/info.hpp
- 0
- 0
-
-
-
-
- get_error_info
-
-
-
-
-
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- 17
-
- reno_context
-
-
-
-
-
-
- 2
- 837760557B72743BFC955BC4B1213EC27F47583A9D7D08EA0BC5616F977A21A7
- 493325143
- 2449
- 457
- ACC64445E8B6AAEF58395C0083BC0247CDE33AC00ED8DB9B7B4F216325DEE410
- 2943579912
- 400
- 2043
-
-
-
-
-
- 0
- ../../../../boost/exception/enable_error_info.hpp
- 0
- 0
-
-
-
-
- enable_error_info
-
-
-
-
-
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- 18
-
- reno_context
-
-
-
-
-
-
- 1
- 49D31376D97691F7C84A134B5D8C7C66EF1ED6901D376CA250D634AE2B38AB5E
- 549270010
- 163
- 572
-
-
-
-
-
- 0
- ../../../../boost/exception/info.hpp
- 0
- 0
-
-
-
-
- BOOST_ERROR_INFO
-
-
-
-
-
-
-
- 2
- :)
##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads
###(:link
- 1
-
- 0
-
- 19
-
- reno_context
-
-
-
-
-
-
- 2
- 973F8368D72D56424349CBB81C8F3015CB9F4F0CD7B23A8C62C3DBADDA37CD57
- 3833800883
- 4832
- 514
- ED09F845070FF7D381BE5EFB6B55313FD09FBA16B64B69992410380EFA45519C
- 2051939590
- 78
- 409
-
-
-
-
-
- 0
- ../../../../boost/exception_ptr.hpp
- 0
- 0
-
-
-
-
- exception_ptr
-
-
-
-
-
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- 20
-
- reno_context
-
-
-
-
-
-
- 2
- 392208A2FD122D1ED27D128A7BF65F9340218FAAD756EA58D26D2205D32681A6
- 729208193
- 3206
- 506
- 8F3B5E1A267CA225679713F4DDF528041F573BC02D1DBCD8FFEF57EF0AA599B9
- 4197332561
- 180
- 3020
-
-
-
-
-
- 0
- ../../../../boost/exception/enable_current_exception.hpp
- 0
- 0
-
-
-
-
- enable_current_exception
-
-
-
-
-
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- 21
-
- reno_context
-
-
-
-
-
-
- 2
- 973F8368D72D56424349CBB81C8F3015CB9F4F0CD7B23A8C62C3DBADDA37CD57
- 3833800883
- 4832
- 514
- 9DEEF8ED70BF74F501A96BA5DE5BFD42FAD16DE333ABE189E512C332586FC465
- 2250569940
- 1893
- 2528
-
-
-
-
-
- 0
- ../../../../boost/exception_ptr.hpp
- 0
- 0
-
-
-
-
- current_exception
-
-
-
-
-
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- 22
-
- reno_context
-
-
-
-
-
-
- 2
- 973F8368D72D56424349CBB81C8F3015CB9F4F0CD7B23A8C62C3DBADDA37CD57
- 3833800883
- 4832
- 514
- 921FBF6991E17349BFF2AD6F165372F85AA9457DDB28E502ABB6B392BBA6B529
- 3119269037
- 284
- 4423
-
-
-
-
-
- 0
- ../../../../boost/exception_ptr.hpp
- 0
- 0
-
-
-
-
- copy_exception
-
-
-
-
-
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- 23
-
- reno_context
-
-
-
-
-
-
- 2
- 973F8368D72D56424349CBB81C8F3015CB9F4F0CD7B23A8C62C3DBADDA37CD57
- 3833800883
- 4832
- 514
- 156B870761DB092CE4269C1173B479A344A1041BA2B883765AF19A72B371D776
- 3239976720
- 117
- 4709
-
-
-
-
-
- 0
- ../../../../boost/exception_ptr.hpp
- 0
- 0
-
-
-
-
- rethrow_exception
-
-
-
-
-
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- -5
-
-
- 2
- :)
##(:link
- 1
-
- 0
-
- 24
-
- reno_context
-
-
-
-
-
-
- 2
- 05061ED1DD1B33224DE28BF86AB10D99286A48DC055D54A19FF93B36F22E8A90
- 3225446538
- 372
- 408
- ED09AD72D3766F261A0044B58B9B73AA355EB50B1A8F602E5EE7F68D0D928596
- 328425570
- 340
- 26
-
-
-
-
-
- 0
- ../../../../boost/exception/diagnostic_information.hpp
- 0
- 0
-
-
-
-
- diagnostic_information
-
-
-
-
-
-
-
- 2
- :)
##(:link
- 1
-
- 0
-
- -8
-
-
- 2
- :)
##Headers
###(:link
- 1
-
- 0
-
- 25
-
- reno_context
-
-
-
-
-
-
- 1
- 429F0DE3599A4CC08B9458E2AECA2EAC202AB3471554FE82C307493805E6676E
- 4224422781
- 401
- 323
-
-
-
-
-
- 0
- ../../../../boost/exception.hpp
- 0
- 0
-
-
-
-
- boost/exception.hpp
-
-
- exception_hpp
-
-
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- 26
-
- reno_context
-
-
-
-
-
-
- 1
- ECAD4A1E70A31D7F87F79F557D107AB0A3C5161CB370139974E08ECAFBE2D32F
- 1816954312
- 457
- 323
-
-
-
-
-
- 0
- ../../../../boost/exception/diagnostic_information.hpp
- 0
- 0
-
-
-
-
- boost/exception/diagnostic_information.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
- B23D4FF62C70B07638898ECB0B683410BC3E4C4F7DB2922C7B0E9844B1855FF5
- 3540957683
- 2583
- 323
-
-
-
-
-
- 0
- ../../../../boost/exception/enable_error_info.hpp
- 0
- 0
-
-
-
-
- boost/exception/enable_error_info.hpp
-
-
- exception_enable_error_info_hpp
-
-
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- 29
-
- reno_context
-
-
-
-
-
-
- 1
- CAB4D823BD4720B71E1CA5BE482AC95B42A9E07CD5E08671EA23184635F281A2
- 3077708282
- 89
- 323
-
-
-
-
-
- 0
- ../../../../boost/exception/error_info.hpp
- 0
- 0
-
-
-
-
- boost/exception/error_info.hpp
-
-
- exception_error_info_value_hpp
-
-
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- 30
-
- reno_context
-
-
-
-
-
-
- 1
- 251773B273187F592361DB0624E7F5D52C95845C3A6562F4A0F830C46D775BC8
- 3425410730
- 3294
- 323
-
-
-
-
-
- 0
- ../../../../boost/exception/exception.hpp
- 0
- 0
-
-
-
-
- boost/exception/exception.hpp
-
-
- exception_exception_hpp
-
-
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- 31
-
- reno_context
-
-
-
-
-
-
- 1
- F19D72C24D904689FEEE070D77ABD19090396E7C7663A5BA80E474F1EDA62861
- 4081508978
- 6759
- 323
-
-
-
-
-
- 0
- ../../../../boost/exception/info.hpp
- 0
- 0
-
-
-
-
- boost/exception/info.hpp
-
-
- exception_error_info_hpp
-
-
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- 32
-
- 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
-
- 33
-
- reno_context
-
-
-
-
-
-
- 1
- CB567E3390BC92DA06F9899E700792C3790D3707C024CA21D15C930D908AD10A
- 3422645546
- 5023
- 323
-
-
-
-
-
- 0
- ../../../../boost/exception_ptr.hpp
- 0
- 0
-
-
-
-
- boost/exception_ptr.hpp
-
-
- exception_cloning_hpp
-
-
-
-
- 2
- :)
###(:link
- 1
-
- 0
-
- 34
-
- reno_context
-
-
-
-
-
-
- 1
- 48A0C42CCA66A6C935724A9B7BD30B6B3DF16A0A808C804A585A5CC90D85DC5E
- 1606229033
- 1723
- 91
-
-
-
-
-
- 0
- ../../../../boost/throw_exception.hpp
- 0
- 0
-
-
-
-
- boost/throw_exception.hpp
-
-
- throw_exception_hpp
-
-
-
-
- 2
- :)
#(:link
- 1
-
- 0
-
- 35
-
- reno_context
-
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
-
- Index
-
-
- name_idx
-
-
-
-
- 2
- :)
!!Synopsis
`#include <(:link
- 1
-
- 0
-
- -25
-
-
- 2
- :)>
[@namespace
boost
{
(:include
- 1
-
- 0
-
- -30
-
-
- 2
- decl pre_indent="4":)
(:include
- 1
-
- 0
-
- -31
-
-
- 2
- decl pre_indent="4":)
(:include
- 1
-
- 0
-
- -32
-
-
- 2
- decl pre_indent="4":)
(:include
- 1
-
- 0
-
- -28
-
-
- 2
- decl pre_indent="4":)
(:include
- 1
-
- 0
-
- -26
-
-
- 2
- decl pre_indent="4":)
(:include
- 1
-
- 0
-
- -33
-
-
- 2
- decl pre_indent="4":)
(:include
- 1
-
- 0
-
- -27
-
-
- 2
- decl pre_indent="4":)
(:include
- 1
-
- 0
-
- -34
-
-
- 2
- decl pre_indent="4":)
}@]
!!Class exception
(:include
- 1
-
- 0
-
- -12
-
-
- 2
- :)
!!Transporting of Arbitrary Data to the Catch Site
(:include
- 1
-
- 0
-
- -13
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -14
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -16
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -17
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -18
-
-
- 2
- :)
!!Transporting of Exceptions between Threads
(:include
- 1
-
- 0
-
- -19
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -20
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -21
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -22
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -23
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -5
-
-
- 2
- :)
!!Printing Diagnostic Information
(:include
- 1
-
- 0
-
- -24
-
-
- 2
- :)
!!Throwing Exceptions
(:include
- 1
-
- 0
-
- -8
-
-
- 2
- :)
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
0
- -7
+ 7
+
+ reno_context
+
+
+
+
+
+
+ 2
+ C1FAB39F3B09548EC7B197853DC956883AE1C3A29A8A9D2FBDB97D8BEC76CD75
+ 173037458
+ 6345
+ 737
+ 65D13C1BB0A16823F69A32BAB56A51CA317075C7FC8B7441EE0D9B57AF5AB2AC
+ 2592266329
+ 712
+ 1700
+
+
+
+
+
+ 0
+ ../../../../boost/exception/info.hpp
+ 0
+ 0
+
+
+
+
+ get_error_info
+
+
+
+
+
@@ -1603,371 +188,7 @@
0
- -8
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -9
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -10
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -11
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -12
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso,exception":)
-
-
-
-
- 0
-
- -13
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -14
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -15
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -16
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -17
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 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
-
- -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
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -26
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -27
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -28
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -29
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -30
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -31
-
-
-
- 1
- 2
- (:include include:)
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -32
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -33
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -34
-
-
-
- 1
- 2
- (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
-
-
-
-
- 0
-
- -35
-
-
-
- 1
- 2
- !Index
(:pagelist fmt="index" except_tags="index,noindex":)
-
-
-
-
- 0
-
- 36
+ 8
reno_context
@@ -1977,27 +198,207 @@
1
- FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717
- 2229778754
- 631
- 319
+ 48A0C42CCA66A6C935724A9B7BD30B6B3DF16A0A808C804A585A5CC90D85DC5E
+ 1606229033
+ 1723
+ 91
0
- ../../example/cloning_2.cpp
+ ../../../../boost/throw_exception.hpp
0
0
- Tutorial: Cloning and Re-throwing an Exception
+ boost/throw_exception.hpp
- cloning_and_rethrowing
+ throw_exception_hpp
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 9
+
+ reno_context
+
+
+
+
+
+
+ 1
+ 251773B273187F592361DB0624E7F5D52C95845C3A6562F4A0F830C46D775BC8
+ 3425410730
+ 3294
+ 323
+
+
+
+
+
+ 0
+ ../../../../boost/exception/exception.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception/exception.hpp
+
+
+ exception_exception_hpp
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 10
+
+ reno_context
+
+
+
+
+
+
+ 1
+ CE411E21EE9878B55B5906D033A0FC52574FB59D8A8CECB75405E9B1C9D782DB
+ 1173443713
+ 308
+ 302
+
+
+
+
+
+ 0
+ ../../example/logging.cpp
+ 0
+ 0
+
+
+
+
+ Tutorial: Diagnostic Information
+
+
+ tutorial_diagnostic_information
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 11
+
+ reno_context
+
+
+
+
+
+
+ 1
+ D9B8E6AA12A4F33953B1A961FA590C5A3840234B6531CA8C04AC985AD5800835
+ 2432554768
+ 702
+ 408
+
+
+
+
+
+ 0
+ ../../example/enable_error_info.cpp
+ 0
+ 0
+
+
+
+
+ Tutorial: Integrating Boost Exception in Existing Exception Class Hierarchies
+
+
+ tutorial_enable_error_info
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 12
+
+ reno_context
+
+
+
+
+
+
+ 1
+ E444EE9697EEADFDE0767E1D0242FC0E70D98E61FB1F0FFA099648DE509B82F3
+ 94503238
+ 773
+ 374
+
+
+
+
+
+ 0
+ ../../example/info_tuple.cpp
+ 0
+ 0
+
+
+
+
+ Tutorial: Adding Grouped Data to Exceptions
+
+
+ grouping_data
@@ -2010,7 +411,99 @@
0
- 37
+ 13
+
+ 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
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+ 14
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 07430F64896197A110C276D8A14CA8A75FBA482DDF50CD40D689A1898C84D054
+ 1712604289
+ 1296
+ 396
+ BCCB91D0DCA6EC45F29CB70CB64AEA6AB54F32F8F1D1937C4CB80B059346DC81
+ 695614553
+ 1264
+ 26
+
+
+
+
+
+ 0
+ ../../../../boost/exception/info_tuple.hpp
+ 0
+ 0
+
+
+
+
+ operator<</tuple
+
+
+
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 15
reno_context
@@ -2067,7 +560,1517 @@
0
- 38
+ 16
+
+ reno_context
+
+
+
+
+
+
+ 1
+ F19D72C24D904689FEEE070D77ABD19090396E7C7663A5BA80E474F1EDA62861
+ 4081508978
+ 6759
+ 323
+
+
+
+
+
+ 0
+ ../../../../boost/exception/info.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception/info.hpp
+
+
+ exception_error_info_hpp
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 17
+
+ 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
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+ 18
+
+ reno_context
+
+
+
+
+
+
+ 1
+ FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717
+ 2229778754
+ 631
+ 319
+
+
+
+
+
+ 0
+ ../../example/cloning_2.cpp
+ 0
+ 0
+
+
+
+
+ Tutorial: Cloning and Re-throwing an Exception
+
+
+ cloning_and_rethrowing
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+ 19
+
+ 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
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 20
+
+ reno_context
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+ Tutorial: Transporting of Arbitrary Data to the Catch Site
+
+
+ tutorial_transporting_data
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 21
+
+ reno_context
+
+
+
+
+
+
+ 1
+ CB567E3390BC92DA06F9899E700792C3790D3707C024CA21D15C930D908AD10A
+ 3422645546
+ 5023
+ 323
+
+
+
+
+
+ 0
+ ../../../../boost/exception_ptr.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception_ptr.hpp
+
+
+ exception_cloning_hpp
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 22
+
+ reno_context
+
+
+
+
+
+
+ 1
+ F4C951B28F7DE500973AA3DFAA99F2BADA6EDAFA2B406C30BEF3B7FBE6FD57D7
+ 2263754923
+ 982
+ 306
+
+
+
+
+
+ 0
+ ../../example/error_info_2.cpp
+ 0
+ 0
+
+
+
+
+ Tutorial: Adding of Arbitrary Data to Active Exception Objects
+
+
+ adding_data_later
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+ 23
+
+ 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
+
+ 24
+
+ reno_context
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+ Tutorial: Transporting of Exceptions between Threads
+
+
+ tutorial_exception_ptr
+
+
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 25
+
+ reno_context
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+ Boost Exception
+
+
+ boost-exception
+
+
+
+
+
+ 111
+ 2
+ !!Introduction
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 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:)-style (:link
+ 1
+
+ 0
+
+ -24
+
+
+ 2
+ |copying:) of exception objects, implemented non-intrusively and automatically by the boost::(:link
+ 1
+
+ 0
+
+ -23
+
+
+ 2
+ :) function.
!!Contents
#Tutorial
##(:link
+ 1
+
+ 0
+
+ -20
+
+
+ 2
+ :)
##(:link
+ 1
+
+ 0
+
+ -11
+
+
+ 2
+ :)
##(:link
+ 1
+
+ 0
+
+ -24
+
+
+ 2
+ :)
##(:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)
#Documentation
##Class (:link
+ 1
+
+ 0
+
+ 26
+
+ reno_context
+
+
+
+
+
+
+ 2
+ A8142902F961A340F0621653A76FC7941054FFA10ADADB1018A2E797D7EB1FE9
+ 665149135
+ 3114
+ 503
+ FA32C25852E9BB3A713A7790E50C8060367F9810A8B03F3E63338FBF590F1EB9
+ 201993397
+ 2071
+ 878
+
+
+
+
+
+ 0
+ ../../../../boost/exception/exception.hpp
+ 0
+ 0
+
+
+
+
+ exception
+
+
+
+
+
+
+
+ 2
+ :)
##Transporting of Arbitrary Data to the Catch Site
###(:link
+ 1
+
+ 0
+
+ 27
+
+ reno_context
+
+
+
+
+
+
+ 2
+ C1FAB39F3B09548EC7B197853DC956883AE1C3A29A8A9D2FBDB97D8BEC76CD75
+ 173037458
+ 6345
+ 737
+ F839AFD37DC086BB1231B8E87D8EEBD28129649A06FC685AC7DF65595871AE30
+ 2291609923
+ 1204
+ 243
+
+
+
+
+
+ 0
+ ../../../../boost/exception/info.hpp
+ 0
+ 0
+
+
+
+
+ error_info
+
+
+
+
+
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ 28
+
+ reno_context
+
+
+
+
+
+
+ 2
+ C1FAB39F3B09548EC7B197853DC956883AE1C3A29A8A9D2FBDB97D8BEC76CD75
+ 173037458
+ 6345
+ 737
+ 27AC1164E0A824D548386BEDCDC81DCAC283F3D286B0ECEE05B039BB8C392BFC
+ 1247954090
+ 249
+ 1449
+
+
+
+
+
+ 0
+ ../../../../boost/exception/info.hpp
+ 0
+ 0
+
+
+
+
+ operator<</exception
+
+
+
+
+
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ -14
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ -7
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ 29
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 6BE9712680D0514BFC3D878FEA4DD229F4D7354F822CEE0088C260175DAA536A
+ 1707118066
+ 2456
+ 457
+ 1203100C7C62C4006CF1C69686685819E118A3DF3E3774867C8A064F1BE6E707
+ 342590922
+ 2424
+ 26
+
+
+
+
+
+ 0
+ ../../../../boost/exception/enable_error_info.hpp
+ 0
+ 0
+
+
+
+
+ enable_error_info
+
+
+
+
+
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ -6
+
+
+ 2
+ :)
##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads
###(:link
+ 1
+
+ 0
+
+ 30
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 973F8368D72D56424349CBB81C8F3015CB9F4F0CD7B23A8C62C3DBADDA37CD57
+ 3833800883
+ 4832
+ 514
+ ED09F845070FF7D381BE5EFB6B55313FD09FBA16B64B69992410380EFA45519C
+ 2051939590
+ 78
+ 409
+
+
+
+
+
+ 0
+ ../../../../boost/exception_ptr.hpp
+ 0
+ 0
+
+
+
+
+ exception_ptr
+
+
+
+
+
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ 31
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 392208A2FD122D1ED27D128A7BF65F9340218FAAD756EA58D26D2205D32681A6
+ 729208193
+ 3206
+ 506
+ 8F3B5E1A267CA225679713F4DDF528041F573BC02D1DBCD8FFEF57EF0AA599B9
+ 4197332561
+ 180
+ 3020
+
+
+
+
+
+ 0
+ ../../../../boost/exception/enable_current_exception.hpp
+ 0
+ 0
+
+
+
+
+ enable_current_exception
+
+
+
+
+
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ 32
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 973F8368D72D56424349CBB81C8F3015CB9F4F0CD7B23A8C62C3DBADDA37CD57
+ 3833800883
+ 4832
+ 514
+ 9DEEF8ED70BF74F501A96BA5DE5BFD42FAD16DE333ABE189E512C332586FC465
+ 2250569940
+ 1893
+ 2528
+
+
+
+
+
+ 0
+ ../../../../boost/exception_ptr.hpp
+ 0
+ 0
+
+
+
+
+ current_exception
+
+
+
+
+
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ 33
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 973F8368D72D56424349CBB81C8F3015CB9F4F0CD7B23A8C62C3DBADDA37CD57
+ 3833800883
+ 4832
+ 514
+ 921FBF6991E17349BFF2AD6F165372F85AA9457DDB28E502ABB6B392BBA6B529
+ 3119269037
+ 284
+ 4423
+
+
+
+
+
+ 0
+ ../../../../boost/exception_ptr.hpp
+ 0
+ 0
+
+
+
+
+ copy_exception
+
+
+
+
+
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ 34
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 973F8368D72D56424349CBB81C8F3015CB9F4F0CD7B23A8C62C3DBADDA37CD57
+ 3833800883
+ 4832
+ 514
+ 156B870761DB092CE4269C1173B479A344A1041BA2B883765AF19A72B371D776
+ 3239976720
+ 117
+ 4709
+
+
+
+
+
+ 0
+ ../../../../boost/exception_ptr.hpp
+ 0
+ 0
+
+
+
+
+ rethrow_exception
+
+
+
+
+
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ 35
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 973F8368D72D56424349CBB81C8F3015CB9F4F0CD7B23A8C62C3DBADDA37CD57
+ 3833800883
+ 4832
+ 514
+ 9567A192BF523DDF741004FFF5BDB044D715FEB7CE9AEC89ACC25C1C33E48C4E
+ 2232115228
+ 381
+ 26
+
+
+
+
+
+ 0
+ ../../../../boost/exception_ptr.hpp
+ 0
+ 0
+
+
+
+
+ unknown_exception
+
+
+
+
+
+
+
+ 2
+ :)
##(:link
+ 1
+
+ 0
+
+ 36
+
+ reno_context
+
+
+
+
+
+
+ 2
+ 05061ED1DD1B33224DE28BF86AB10D99286A48DC055D54A19FF93B36F22E8A90
+ 3225446538
+ 372
+ 408
+ ED09AD72D3766F261A0044B58B9B73AA355EB50B1A8F602E5EE7F68D0D928596
+ 328425570
+ 340
+ 26
+
+
+
+
+
+ 0
+ ../../../../boost/exception/diagnostic_information.hpp
+ 0
+ 0
+
+
+
+
+ diagnostic_information
+
+
+
+
+
+
+
+ 2
+ :)
##(:link
+ 1
+
+ 0
+
+ -23
+
+
+ 2
+ :)
##Headers
###(:link
+ 1
+
+ 0
+
+ 37
+
+ reno_context
+
+
+
+
+
+
+ 1
+ 429F0DE3599A4CC08B9458E2AECA2EAC202AB3471554FE82C307493805E6676E
+ 4224422781
+ 401
+ 323
+
+
+
+
+
+ 0
+ ../../../../boost/exception.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception.hpp
+
+
+ exception_hpp
+
+
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ 38
+
+ reno_context
+
+
+
+
+
+
+ 1
+ ECAD4A1E70A31D7F87F79F557D107AB0A3C5161CB370139974E08ECAFBE2D32F
+ 1816954312
+ 457
+ 323
+
+
+
+
+
+ 0
+ ../../../../boost/exception/diagnostic_information.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception/diagnostic_information.hpp
+
+
+
+
+
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ 39
+
+ 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
+
+ 40
+
+ reno_context
+
+
+
+
+
+
+ 1
+ 6A493A8C485B322041944D321FD34F6CC4D67ABA527387BDD5DA6287C5E4B966
+ 1638644878
+ 2590
+ 323
+
+
+
+
+
+ 0
+ ../../../../boost/exception/enable_error_info.hpp
+ 0
+ 0
+
+
+
+
+ boost/exception/enable_error_info.hpp
+
+
+ exception_enable_error_info_hpp
+
+
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ -5
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ -9
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ -16
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ -19
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ -21
+
+
+ 2
+ :)
###(:link
+ 1
+
+ 0
+
+ -8
+
+
+ 2
+ :)
#(:link
+ 1
+
+ 0
+
+ 41
+
+ reno_context
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+ Index
+
+
+ name_idx
+
+
+
+
+ 2
+ :)
!!Synopsis
`#include <(:link
+ 1
+
+ 0
+
+ -37
+
+
+ 2
+ :)>
[@namespace
boost
{
(:include
+ 1
+
+ 0
+
+ -9
+
+
+ 2
+ decl pre_indent="4":)
(:include
+ 1
+
+ 0
+
+ -16
+
+
+ 2
+ decl pre_indent="4":)
(:include
+ 1
+
+ 0
+
+ -19
+
+
+ 2
+ decl pre_indent="4":)
(:include
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ decl pre_indent="4":)
(:include
+ 1
+
+ 0
+
+ -38
+
+
+ 2
+ decl pre_indent="4":)
(:include
+ 1
+
+ 0
+
+ -21
+
+
+ 2
+ decl pre_indent="4":)
(:include
+ 1
+
+ 0
+
+ -39
+
+
+ 2
+ decl pre_indent="4":)
(:include
+ 1
+
+ 0
+
+ -8
+
+
+ 2
+ decl pre_indent="4":)
}@]
!!Class exception
(:include
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :)
!!Transporting of Arbitrary Data to the Catch Site
(:include
+ 1
+
+ 0
+
+ -27
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -28
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -7
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -29
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -6
+
+
+ 2
+ :)
!!Transporting of Exceptions between Threads
(:include
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -31
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -33
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -34
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -35
+
+
+ 2
+ :)
!!Printing Diagnostic Information
(:include
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ :)
!!Throwing Exceptions
(:include
+ 1
+
+ 0
+
+ -23
+
+
+ 2
+ :)
+
+
+
+
+ 0
+
+ -35
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ -38
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ -37
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 42
reno_context
@@ -2120,7 +2123,85 @@
0
- 39
+ -36
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ -34
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ -30
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ -31
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ -33
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ -32
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 43
reno_context
@@ -2129,41 +2210,90 @@
- 1
- 5373E336DC4892A41D31694BCA1146382FC3137819A04689CA1F9FFAF1CFAB3B
- 4050491732
- 466
- 307
+ 3
+ A8142902F961A340F0621653A76FC7941054FFA10ADADB1018A2E797D7EB1FE9
+ 665149135
+ 3114
+ 503
+ FA32C25852E9BB3A713A7790E50C8060367F9810A8B03F3E63338FBF590F1EB9
+ 201993397
+ 2071
+ 878
+ E1E6A9EFC3D0DCF4197171BA3C804656908C414424194530416F69E471FC99AD
+ 120398751
+ 145
+ 57
0
- ../../example/cloning_1.cpp
+ ../../../../boost/exception/exception.hpp
0
0
- Tutorial: Using enable_current_exception at the Time of the Throw
+ exception::what
- using_enable_cloning
+
- 0
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
0
- 40
+ -40
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ -29
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ -28
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso":)
+
+
+
+
+ 0
+
+ 44
reno_context
@@ -2216,176 +2346,7 @@
0
- 41
-
- reno_context
-
-
-
-
-
-
- 1
- E444EE9697EEADFDE0767E1D0242FC0E70D98E61FB1F0FFA099648DE509B82F3
- 94503238
- 773
- 374
-
-
-
-
-
- 0
- ../../example/info_tuple.cpp
- 0
- 0
-
-
-
-
- Tutorial: Adding Grouped Data to Exceptions
-
-
- grouping_data
-
-
-
-
-
- 0
-
-
-
-
- 0
-
- 42
-
- 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
-
-
-
-
-
- 0
-
-
-
-
- 0
-
- 43
-
- reno_context
-
-
-
-
-
-
- 1
- F4C951B28F7DE500973AA3DFAA99F2BADA6EDAFA2B406C30BEF3B7FBE6FD57D7
- 2263754923
- 982
- 306
-
-
-
-
-
- 0
- ../../example/error_info_2.cpp
- 0
- 0
-
-
-
-
- Tutorial: Adding of Arbitrary Data to Active Exception Objects
-
-
- adding_data_later
-
-
-
-
-
- 0
-
-
-
-
- 0
-
- 44
-
- reno_context
-
-
-
-
-
-
- 3
- A8142902F961A340F0621653A76FC7941054FFA10ADADB1018A2E797D7EB1FE9
- 665149135
- 3114
- 503
- FA32C25852E9BB3A713A7790E50C8060367F9810A8B03F3E63338FBF590F1EB9
- 201993397
- 2071
- 878
- E1E6A9EFC3D0DCF4197171BA3C804656908C414424194530416F69E471FC99AD
- 120398751
- 145
- 57
-
-
-
-
-
- 0
- ../../../../boost/exception/exception.hpp
- 0
- 0
-
-
-
-
- exception::what
-
-
-
-
-
+ -27
@@ -2394,6 +2355,45 @@
(: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
+
+ -26
+
+
+
+ 1
+ 2
+ (:include include:)
!!!See also:
(:pagelist link="backlink" except_tags="noalso,exception":)
+
+
+
+
+ 0
+
+ -41
+
+
+
+ 1
+ 2
+ !Index
(:pagelist fmt="index" except_tags="index,noindex":)
+
+
@@ -2570,15 +2570,7 @@
- 3
- 2
- [@#include <
- 1
-
- 1
-
- 2
- >@]
+ 0
@@ -2622,15 +2614,7 @@
- 3
- 2
- [@#include <
- 1
-
- 1
-
- 2
- >@]
+ 0
@@ -2655,105 +2639,6 @@
0
-
-
- 0
-
- -26
-
-
-
- 0
-
-
-
-
- 0
-
- -27
-
-
-
- 0
-
-
-
-
- 0
-
- -28
-
-
-
- 0
-
-
-
-
- 0
-
- -29
-
-
-
- 0
-
-
-
-
- 0
-
- -30
-
-
-
- 0
-
-
-
-
- 0
-
- -31
-
-
-
- 0
-
-
-
-
- 0
-
- -32
-
-
-
- 0
-
-
-
-
- 0
-
- -33
-
-
-
- 0
-
-
-
-
- 0
-
- -34
-
-
-
- 0
-
-
0
@@ -2765,28 +2650,6 @@
0
-
-
- 0
-
- -36
-
-
-
- 0
-
-
-
-
- 0
-
- -37
-
-
-
- 0
-
-
0
@@ -2802,29 +2665,7 @@
0
- -39
-
-
-
- 0
-
-
-
-
- 0
-
- -40
-
-
-
- 0
-
-
-
-
- 0
-
- -41
+ -37
@@ -2842,6 +2683,88 @@
0
+
+
+ 0
+
+ -36
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -34
+
+
+
+ 3
+ 2
+ [@#include <
+ 1
+
+ 1
+
+ 2
+ >@]
+
+
+
+
+ 0
+
+ -30
+
+
+
+ 3
+ 2
+ [@#include <
+ 1
+
+ 1
+
+ 2
+ >@]
+
+
+
+
+ 0
+
+ -31
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -33
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -32
+
+
+
+ 0
+
+
0
@@ -2853,6 +2776,39 @@
0
+
+
+ 0
+
+ -40
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -29
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -28
+
+
+
+ 0
+
+
0
@@ -2864,6 +2820,50 @@
0
+
+
+ 0
+
+ -27
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -39
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -26
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -41
+
+
+
+ 0
+
+
@@ -3113,7 +3113,7 @@
0
- -26
+ -35
@@ -3124,7 +3124,7 @@
0
- -27
+ -38
@@ -3135,7 +3135,7 @@
0
- -28
+ -37
@@ -3146,7 +3146,29 @@
0
- -29
+ -42
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -36
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -34
@@ -3175,17 +3197,6 @@
0
-
-
- 0
-
- -32
-
-
-
- 0
-
-
0
@@ -3201,95 +3212,7 @@
0
- -34
-
-
-
- 0
-
-
-
-
- 0
-
- -35
-
-
-
- 0
-
-
-
-
- 0
-
- -36
-
-
-
- 0
-
-
-
-
- 0
-
- -37
-
-
-
- 0
-
-
-
-
- 0
-
- -38
-
-
-
- 0
-
-
-
-
- 0
-
- -39
-
-
-
- 0
-
-
-
-
- 0
-
- -40
-
-
-
- 0
-
-
-
-
- 0
-
- -41
-
-
-
- 0
-
-
-
-
- 0
-
- -42
+ -32
@@ -3307,6 +3230,39 @@
0
+
+
+ 0
+
+ -40
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -29
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -28
+
+
+
+ 0
+
+
0
@@ -3318,6 +3274,50 @@
0
+
+
+ 0
+
+ -27
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -39
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -26
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -41
+
+
+
+ 0
+
+
@@ -3567,7 +3567,7 @@
0
- -26
+ -35
@@ -3578,7 +3578,7 @@
0
- -27
+ -38
@@ -3589,7 +3589,7 @@
0
- -28
+ -37
@@ -3600,7 +3600,29 @@
0
- -29
+ -42
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -36
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -34
@@ -3629,17 +3651,6 @@
0
-
-
- 0
-
- -32
-
-
-
- 0
-
-
0
@@ -3655,95 +3666,7 @@
0
- -34
-
-
-
- 0
-
-
-
-
- 0
-
- -35
-
-
-
- 0
-
-
-
-
- 0
-
- -36
-
-
-
- 0
-
-
-
-
- 0
-
- -37
-
-
-
- 0
-
-
-
-
- 0
-
- -38
-
-
-
- 0
-
-
-
-
- 0
-
- -39
-
-
-
- 0
-
-
-
-
- 0
-
- -40
-
-
-
- 0
-
-
-
-
- 0
-
- -41
-
-
-
- 0
-
-
-
-
- 0
-
- -42
+ -32
@@ -3761,6 +3684,39 @@
0
+
+
+ 0
+
+ -40
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -29
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -28
+
+
+
+ 0
+
+
0
@@ -3772,6 +3728,50 @@
0
+
+
+ 0
+
+ -27
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -39
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -26
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -41
+
+
+
+ 0
+
+
@@ -3794,27 +3794,18 @@
- 5
+ 3
2
- [@class
(:link
+ [@template <class Tag, class T>
class (:link
1
0
- -5
+ -27
2
- :):
public std::exception
public boost::
- 1
-
- 0
-
- -12
-
-
- 2
-
{
---unspecified---
};@]
+ :);@]
@@ -3825,7 +3816,45 @@
- 0
+ 9
+ 2
+ [@typedef (:link
+ 1
+
+ 0
+
+ -27
+
+
+ 2
+ :)<struct tag_throw_function,char const *> throw_function;
typedef (:link
+ 1
+
+ 0
+
+ -27
+
+
+ 2
+ :)<struct tag_throw_file,char const *> throw_file;
typedef (:link
+ 1
+
+ 0
+
+ -27
+
+
+ 2
+ :)<struct tag_throw_line,int> throw_line;
#define (:link
+ 1
+
+ 0
+
+ -6
+
+
+ 2
+ :)\
::boost::throw_function(BOOST_CURRENT_FUNCTION) <<\
::boost::throw_file(__FILE__) <<\
::boost::throw_line((int)__LINE__)@]
@@ -3836,7 +3865,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
+
+ -7
+
+
+ 2
+ :)( E const & x );@]
@@ -3847,27 +3887,18 @@
- 5
+ 3
2
- [@#ifdef BOOST_NO_EXCEPTIONS
void (:link
+ [@(:include
1
0
- -8
+ -23
2
- :)( std::exception const & e ); // user defined
#else
template <class E>
void (:link
- 1
-
- 0
-
- -8
-
-
- 2
- :)( E const & e );
#endif@]
+ decl:)@]
@@ -3878,7 +3909,18 @@
- 0
+ 3
+ 2
+ [@(:include
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ decl:)@]
@@ -3911,54 +3953,7 @@
- 11
- 2
- [@class
(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :)
{
public:
(:include
- 1
-
- 0
-
- -38
-
-
- 2
- decl pre_indent="4":)
(:include
- 1
-
- 0
-
- -44
-
-
- 2
- decl pre_indent="4":)
protected:
(:include
- 1
-
- 0
-
- -40
-
-
- 2
- decl pre_indent="4":)
(:include
- 1
-
- 0
-
- -37
-
-
- 2
- decl pre_indent="4":)
};@]
+ 0
@@ -3969,18 +3964,7 @@
- 3
- 2
- [@template <class Tag,class T>
class
(:link
- 1
-
- 0
-
- -13
-
-
- 2
- :)
{
public:
typedef T value_type;
error_info( value_type const & );
};@]
+ 0
@@ -3991,9 +3975,9 @@
- 5
+ 7
2
- [@template <class E, class Tag, class T>
E const & (:link
+ [@template <class E, class Tag1, class T1, ..., class TagN, class TN>
E const & (:link
1
0
@@ -4002,43 +3986,12 @@
2
- |operator<<:)( E const & x, (:link
- 1
-
- 0
-
- -13
-
-
- 2
- :)<Tag,T> const & v );@]
-
-
-
-
- 0
-
- -15
-
-
-
- 7
- 2
- [@template <class E, class Tag1, class T1, ..., class TagN, class TN>
E const & (:link
- 1
-
- 0
-
- -15
-
-
- 2
|operator<<:)( E const & x,
(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)<
(:link
1
0
- -13
+ -27
2
@@ -4047,7 +4000,7 @@
0
- -13
+ -27
2
@@ -4058,22 +4011,71 @@
0
- -16
+ -15
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
+ [@(:link
1
0
- -16
+ -15
2
- :)( E const & x );@]
+ :::)();@]
+
+
+
+
+ 0
+
+ -16
+
+
+
+ 9
+ 2
+ [@(:include
+ 1
+
+ 0
+
+ -27
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -7
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -6
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -28
+
+
+ 2
+ decl:)@]
@@ -4084,18 +4086,7 @@
- 3
- 2
- [@template <class T>
---unspecified--- (:link
- 1
-
- 0
-
- -17
-
-
- 2
- :)( T const & x );@]
+ 0
@@ -4106,45 +4097,7 @@
- 9
- 2
- [@typedef (:link
- 1
-
- 0
-
- -13
-
-
- 2
- :)<struct tag_throw_function,char const *> throw_function;
typedef (:link
- 1
-
- 0
-
- -13
-
-
- 2
- :)<struct tag_throw_file,char const *> throw_file;
typedef (:link
- 1
-
- 0
-
- -13
-
-
- 2
- :)<struct tag_throw_line,int> throw_line;
#define (:link
- 1
-
- 0
-
- -18
-
-
- 2
- :)\
::boost::throw_function(BOOST_CURRENT_FUNCTION) <<\
::boost::throw_file(__FILE__) <<\
::boost::throw_line((int)__LINE__)@]
+ 0
@@ -4157,16 +4110,16 @@
3
2
- [@typedef ---unspecified--- (:link
+ [@(:include
1
0
- -19
+ -14
2
- :);@]
+ decl:)@]
@@ -4177,18 +4130,7 @@
- 3
- 2
- [@template <class T>
---unspecified--- (:link
- 1
-
- 0
-
- -20
-
-
- 2
- :)( T const & e );@]
+ 0
@@ -4199,27 +4141,54 @@
- 5
+ 11
2
- [@(:link
+ [@(:include
1
0
- -19
+ -35
2
- :) (:link
+ decl:)
(:include
1
0
- -21
+ -30
2
- :)();@]
+ decl:)
(:include
+ 1
+
+ 0
+
+ -33
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ decl:)
(:include
+ 1
+
+ 0
+
+ -34
+
+
+ 2
+ decl:)@]
@@ -4230,27 +4199,7 @@
- 5
- 2
- [@template <class T>
(:link
- 1
-
- 0
-
- -19
-
-
- 2
- :) (:link
- 1
-
- 0
-
- -22
-
-
- 2
- :)( T const & e );@]
+ 0
@@ -4263,7 +4212,7 @@
5
2
- [@void (:link
+ [@#ifdef BOOST_NO_EXCEPTIONS
void (:link
1
0
@@ -4272,16 +4221,16 @@
2
- :)( (:link
+ :)( std::exception const & e ); // user defined
#else
template <class E>
void (:link
1
0
- -19
+ -23
2
- :) const & ep );
+ :)( E const & e );
#endif@]
@@ -4292,18 +4241,7 @@
- 3
- 2
- [@std::string
- 1
-
- 0
-
- -24
-
-
- 2
- ( std::exception const & x );@]
+ 0
@@ -4321,7 +4259,38 @@
0
- -26
+ -35
+
+
+
+ 5
+ 2
+ [@class
(:link
+ 1
+
+ 0
+
+ -35
+
+
+ 2
+ :):
public std::exception
public boost::
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+
{
---unspecified---
};@]
+
+
+
+
+ 0
+
+ -38
@@ -4332,7 +4301,7 @@
0
- -24
+ -36
2
@@ -4343,29 +4312,221 @@
0
- -27
+ -37
- 3
- 2
- [@(:include
- 1
-
- 0
-
- -20
-
-
- 2
- decl:)@]
+ 0
0
- -28
+ -42
+
+
+
+ 3
+ 2
+ [@virtual char const * (:link
+ 1
+
+ 0
+
+ -42
+
+
+ 2
+ :::)() const throw();@]
+
+
+
+
+ 0
+
+ -36
+
+
+
+ 3
+ 2
+ [@std::string
+ 1
+
+ 0
+
+ -36
+
+
+ 2
+ ( std::exception const & x );@]
+
+
+
+
+ 0
+
+ -34
+
+
+
+ 5
+ 2
+ [@void (:link
+ 1
+
+ 0
+
+ -34
+
+
+ 2
+ :)( (:link
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :) const & ep );
+
+
+
+
+ 0
+
+ -30
+
+
+
+ 3
+ 2
+ [@typedef ---unspecified--- (:link
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :);@]
+
+
+
+
+ 0
+
+ -31
+
+
+
+ 3
+ 2
+ [@template <class T>
---unspecified--- (:link
+ 1
+
+ 0
+
+ -31
+
+
+ 2
+ :)( T const & e );@]
+
+
+
+
+ 0
+
+ -33
+
+
+
+ 5
+ 2
+ [@template <class T>
(:link
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :) (:link
+ 1
+
+ 0
+
+ -33
+
+
+ 2
+ :)( T const & e );@]
+
+
+
+
+ 0
+
+ -32
+
+
+
+ 5
+ 2
+ [@(:link
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :) (:link
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :)();@]
+
+
+
+
+ 0
+
+ -43
+
+
+
+ 3
+ 2
+ [@virtual char const * (:link
+ 1
+
+ 0
+
+ -43
+
+
+ 2
+ :::)() const throw();@]
+
+
+
+
+ 0
+
+ -40
@@ -4376,7 +4537,7 @@
0
- -17
+ -29
2
@@ -4393,273 +4554,54 @@
3
2
- [@template <class Tag, class T>
class (:link
+ [@template <class T>
---unspecified--- (:link
1
0
- -13
+ -29
2
- :);@]
+ :)( T const & x );@]
0
- -30
+ -28
- 3
+ 5
2
- [@(:include
+ [@template <class E, class Tag, class T>
E const & (:link
1
0
- -12
+ -28
2
- decl:)@]
+ |operator<<:)( E const & x, (:link
+ 1
+
+ 0
+
+ -27
+
+
+ 2
+ :)<Tag,T> const & v );@]
0
- -31
-
-
-
- 9
- 2
- [@(:include
- 1
-
- 0
-
- -13
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -16
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -18
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -14
-
-
- 2
- decl:)@]
-
-
-
-
- 0
-
- -32
-
-
-
- 3
- 2
- [@(:include
- 1
-
- 0
-
- -15
-
-
- 2
- decl:)@]
-
-
-
-
- 0
-
- -33
-
-
-
- 11
- 2
- [@(:include
- 1
-
- 0
-
- -5
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -19
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -22
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -21
-
-
- 2
- decl:)
(:include
- 1
-
- 0
-
- -23
-
-
- 2
- decl:)@]
-
-
-
-
- 0
-
- -34
-
-
-
- 3
- 2
- [@(:include
- 1
-
- 0
-
- -8
-
-
- 2
- decl:)@]
-
-
-
-
- 0
-
- -35
-
-
-
- 0
-
-
-
-
- 0
-
- -36
-
-
-
- 0
-
-
-
-
- 0
-
- -37
-
-
-
- 3
- 2
- [@(:link
- 1
-
- 0
-
- -37
-
-
- 2
- :::)();@]
-
-
-
-
- 0
-
- -38
-
-
-
- 3
- 2
- [@virtual char const * (:link
- 1
-
- 0
-
- -38
-
-
- 2
- :::)() const throw();@]
-
-
-
-
- 0
-
- -39
-
-
-
- 0
-
-
-
-
- 0
-
- -40
+ -44
@@ -4670,7 +4612,7 @@
0
- -40
+ -44
2
@@ -4679,7 +4621,7 @@
0
- -40
+ -44
2
@@ -4688,13 +4630,115 @@
0
- -12
+ -26
2
:) const & x );@]
+
+
+ 0
+
+ -27
+
+
+
+ 3
+ 2
+ [@template <class Tag,class T>
class
(:link
+ 1
+
+ 0
+
+ -27
+
+
+ 2
+ :)
{
public:
typedef T value_type;
error_info( value_type const & );
};@]
+
+
+
+
+ 0
+
+ -39
+
+
+
+ 3
+ 2
+ [@(:include
+ 1
+
+ 0
+
+ -31
+
+
+ 2
+ decl:)@]
+
+
+
+
+ 0
+
+ -26
+
+
+
+ 11
+ 2
+ [@class
(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :)
{
public:
(:include
+ 1
+
+ 0
+
+ -42
+
+
+ 2
+ decl pre_indent="4":)
(:include
+ 1
+
+ 0
+
+ -43
+
+
+ 2
+ decl pre_indent="4":)
protected:
(:include
+ 1
+
+ 0
+
+ -44
+
+
+ 2
+ decl pre_indent="4":)
(:include
+ 1
+
+ 0
+
+ -15
+
+
+ 2
+ decl pre_indent="4":)
};@]
+
+
0
@@ -4706,50 +4750,6 @@
0
-
-
- 0
-
- -42
-
-
-
- 0
-
-
-
-
- 0
-
- -43
-
-
-
- 0
-
-
-
-
- 0
-
- -44
-
-
-
- 3
- 2
- [@virtual char const * (:link
- 1
-
- 0
-
- -44
-
-
- 2
- :::)() const throw();@]
-
-
@@ -4772,27 +4772,9 @@
- 5
+ 1
2
- !!!unknown_exception
(:include synopsis:)
This type is used by the
- 1
-
- 0
-
- -19
-
-
- 2
- support in Boost Exception. Please see (:link
- 1
-
- 0
-
- -21
-
-
- 2
- :).
+ !!boost/exception/error_info.hpp
!!!Synopsis
(:include synopsis:)
@@ -4802,772 +4784,6 @@
-6
-
- 0
-
-
-
-
- 0
-
- -7
-
-
-
- 11
- 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
- 1
-
- 0
-
- -20
-
-
- 2
- :) 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
-
- -8
-
-
- 2
- :) are guaranteed to derive from boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :) and to support cloning.
(:include
- 1
-
- 0
-
- -39
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -36
-
-
- 2
- :)
-
-
-
-
- 0
-
- -8
-
-
-
- 9
- 2
- !!!throw_exception
(:include synopsis:)
!!!!Requirements:
E must derive publicly from std::exception.
!!!!Effects:
* If BOOST_NO_EXCEPTIONS is not defined, boost::(:link
- 1
-
- 0
-
- -8
-
-
- 2
- :)(e) is equivalent to throw boost::(:link
- 1
-
- 0
-
- -20
-
-
- 2
- :)(boost::(:link
- 1
-
- 0
-
- -17
-
-
- 2
- :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link
- 1
-
- 0
-
- -8
-
-
- 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.
-
-
-
-
- 0
-
- -9
-
-
-
- 11
- 2
- !!Transporting of Arbitrary Data to the Catch Site
All exception types that derive from boost::(:link
- 1
-
- 0
-
- -12
-
-
- 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 types. Data can be added to a boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :) at the time of the throw, or at a later time.
(:include
- 1
-
- 0
-
- -42
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -43
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -41
-
-
- 2
- :)
-
-
-
-
- 0
-
- -10
-
-
-
- 27
- 2
- !!Integrating Boost Exception in Existing Exception Class Hierarchies
Some exception hierarchies can not be modified to make boost::(:link
- 1
-
- 0
-
- -12
-
-
- 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
-
- -12
-
-
- 2
- :) anyway. Here is an example:
[@#include <(:link
- 1
-
- 0
-
- -25
-
-
- 2
- :)>
#include <stdexcept>
typedef boost::(:link
- 1
-
- 0
-
- -13
-
-
- 2
- :)<struct tag_std_range_min,size_t> std_range_min;
typedef boost::(:link
- 1
-
- 0
-
- -13
-
-
- 2
- :)<struct tag_std_range_max,size_t> std_range_max;
typedef boost::(:link
- 1
-
- 0
-
- -13
-
-
- 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);
//....
}
};
@]
The call to (:link
- 1
-
- 0
-
- -17
-
-
- 2
- :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :) and T. This makes it possible to use (:link
- 1
-
- 0
-
- -14
-
-
- 2
- |operator<<:) to store additional information in the exception object. The exception can be intercepted as T &, so existing exception handling will not break. It can also be intercepted as boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :) &, so that (:link
- 1
-
- 0
-
- -9
-
-
- 2
- |more information can be added to the exception at a later time:).
-
-
-
-
- 0
-
- -11
-
-
-
- 21
- 2
- !!Diagnostic Information
Class boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :) provides a virtual member function (:link
- 1
-
- 0
-
- -38
-
-
- 2
- :::), with a signature similar 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
-
- -25
-
-
- 2
- :)>
#include <iostream>
void f(); //throws unknown types that derive from boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :).
void
g()
{
try
{
f();
}
catch(
boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :) & e )
{
std::cerr << e.(:link
- 1
-
- 0
-
- -38
-
-
- 2
- :::)();
}
}@]
The (:link
- 1
-
- 0
-
- -38
-
-
- 2
- :::) member function iterates over all data objects stored in the boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :) through (:link
- 1
-
- 0
-
- -14
-
-
- 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
-
- -13
-
-
- 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
-
- -12
-
-
-
- 21
- 2
- !!!exception
(:include synopsis:)
Class boost::(:link
- 1
-
- 0
-
- -12
-
-
- 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
-
- -12
-
-
- 2
- :) can store data of arbitrary types, using the (:link
- 1
-
- 0
-
- -13
-
-
- 2
- :) wrapper and (:link
- 1
-
- 0
-
- -14
-
-
- 2
- |operator<<:).
To retrieve data from a boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :) object, use the (:link
- 1
-
- 0
-
- -16
-
-
- 2
- :) function template.
(:include
- 1
-
- 0
-
- -40
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -37
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -38
-
-
- 2
- :)
(:include
- 1
-
- 0
-
- -44
-
-
- 2
- :)
-
-
-
-
- 0
-
- -13
-
-
-
- 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
-
- -13
-
-
- 2
- :)<Tag,T> can be passed to (:link
- 1
-
- 0
-
- -14
-
-
- 2
- |operator<<:) to be stored in objects of type boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :).
!!!!Note:
The header <(:link
- 1
-
- 0
-
- -29
-
-
- 2
- :)> provides a declaration of the (:link
- 1
-
- 0
-
- -13
-
-
- 2
- :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, like this:
[@#include <(:link
- 1
-
- 0
-
- -29
-
-
- 2
- :)>
typedef boost::(:link
- 1
-
- 0
-
- -13
-
-
- 2
- :)<struct tag_errno,int> errno_info;@]
Of course, to actually add an errno_info object to exceptions using (:link
- 1
-
- 0
-
- -14
-
-
- 2
- |operator<<:), or to retrieve it using (:link
- 1
-
- 0
-
- -16
-
-
- 2
- :), you must first #include <(:link
- 1
-
- 0
-
- -31
-
-
- 2
- :)>.
-
-
-
-
- 0
-
- -14
-
-
-
- 7
- 2
- !!!operator<<, error_info overload
(:include synopsis:)
!!!!Requirements:
E must be boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :), or a type that derives (indirectly) from boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :).
!!!!Effects:
Stores a copy of v into x. If x already contains data of type (:link
- 1
-
- 0
-
- -13
-
-
- 2
- :)<Tag1,T1>, that data is overwritten.
!!!!Returns:
x.
(:include throws:)
-
-
-
-
- 0
-
- -15
-
-
-
- 5
- 2
- !!!operator<<, tuple overload
(:include synopsis:)
!!!!Requirements:
E must be boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :), or a type that derives (indirectly) from boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :).
!!!!Effects:
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:)
-
-
-
-
- 0
-
- -16
-
-
-
- 7
- 2
- !!!get_error_info
(:include synopsis:)
!!!!Requirements:
The type of the x object must derive from boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :); ErrorInfo must be an instance of the (:link
- 1
-
- 0
-
- -13
-
-
- 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
- 1
-
- 0
-
- -14
-
-
- 2
- |operator<<:) to store values in exception objects.
!!!!Throws:
Nothing.
-
-
-
-
- 0
-
- -17
-
-
-
- 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
-
- -12
-
-
- 2
- :). The T sub-object is initialized from x by the T copy constructor. If T already derives from boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :), then the type of the returned object does not derive boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :).
!!!!Throws:
Nothing.
-
-
-
-
- 0
-
- -18
-
-
7
2
@@ -5576,7 +4792,7 @@
0
- -14
+ -28
2
@@ -5585,7 +4801,7 @@
0
- -12
+ -26
2
@@ -5594,7 +4810,7 @@
0
- -13
+ -27
2
@@ -5605,13 +4821,312 @@
0
- -19
+ -7
- 15
+ 7
2
- !!!exception_ptr
(:include synopsis:)
The (:link
+ !!!get_error_info
(:include synopsis:)
!!!!Requirements:
The type of the x object must derive from boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :); ErrorInfo must be an instance of the (:link
+ 1
+
+ 0
+
+ -27
+
+
+ 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
+ 1
+
+ 0
+
+ -28
+
+
+ 2
+ |operator<<:) to store values in exception objects.
!!!!Throws:
Nothing.
+
+
+
+
+ 0
+
+ -8
+
+
+
+ 1
+ 2
+ !!boost/throw_exception.hpp
!!!Synopsis
(:include synopsis:)
+
+
+
+
+ 0
+
+ -9
+
+
+
+ 1
+ 2
+ !!boost/exception/exception.hpp
!!!Synopsis
(:include synopsis:)
+
+
+
+
+ 0
+
+ -10
+
+
+
+ 21
+ 2
+ !!Diagnostic Information
Class boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :) provides a virtual member function (:link
+ 1
+
+ 0
+
+ -42
+
+
+ 2
+ :::), with a signature similar 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
+
+ -37
+
+
+ 2
+ :)>
#include <iostream>
void f(); //throws unknown types that derive from boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :).
void
g()
{
try
{
f();
}
catch(
boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :) & e )
{
std::cerr << e.(:link
+ 1
+
+ 0
+
+ -42
+
+
+ 2
+ :::)();
}
}@]
The (:link
+ 1
+
+ 0
+
+ -42
+
+
+ 2
+ :::) member function iterates over all data objects stored in the boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :) through (:link
+ 1
+
+ 0
+
+ -28
+
+
+ 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
+
+ -27
+
+
+ 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
+
+ -11
+
+
+
+ 27
+ 2
+ !!Integrating Boost Exception in Existing Exception Class Hierarchies
Some exception hierarchies can not be modified to make boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :) a base type. For this case, the (:link
+ 1
+
+ 0
+
+ -29
+
+
+ 2
+ :) function template can be used to make exception objects derive from boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :) anyway. Here is an example:
[@#include <(:link
+ 1
+
+ 0
+
+ -37
+
+
+ 2
+ :)>
#include <stdexcept>
typedef boost::(:link
+ 1
+
+ 0
+
+ -27
+
+
+ 2
+ :)<struct tag_std_range_min,size_t> std_range_min;
typedef boost::(:link
+ 1
+
+ 0
+
+ -27
+
+
+ 2
+ :)<struct tag_std_range_max,size_t> std_range_max;
typedef boost::(:link
+ 1
+
+ 0
+
+ -27
+
+
+ 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
+
+ -29
+
+
+ 2
+ :)(std::range_error("Index out of range")) <<
std_range_min(0) <<
std_range_max(size()) <<
std_range_index(i);
//....
}
};
@]
The call to (:link
+ 1
+
+ 0
+
+ -29
+
+
+ 2
+ :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :) and T. This makes it possible to use (:link
+ 1
+
+ 0
+
+ -28
+
+
+ 2
+ |operator<<:) to store additional information in the exception object. The exception can be intercepted as T &, so existing exception handling will not break. It can also be intercepted as boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :) &, so that (:link
+ 1
+
+ 0
+
+ -20
+
+
+ 2
+ |more information can be added to the exception at a later time:).
+
+
+
+
+ 0
+
+ -12
+
+
+
+ 13
+ 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
1
0
@@ -5620,63 +5135,469 @@
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
+ :)>
#include <boost/shared_ptr.hpp>
#include <stdio.h>
#include <string>
#include <errno.h>
typedef boost::(:link
1
0
- -19
+ -27
2
- :)'s operations do not throw.
Two instances of (:link
+ :)<struct tag_file_name,std::string> file_name_info;
typedef boost::(:link
1
0
- -19
+ -27
2
- :) are equivalent and compare equal if and only if they refer to the same exception.
The default constructor of (:link
+ :)<struct tag_function,char const *> function_info;
typedef boost::(:link
1
0
- -19
+ -27
2
- :) produces the null value of the type. The null value is equivalent only to itself.
!!!!Note:
(: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
- -19
+ -26
2
- :) objects are returned by (:link
+ :) { };
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
- -21
-
-
- 2
- :) and (:link
- 1
-
- 0
-
- -22
+ -7
2
:).
+
+
+ 0
+
+ -13
+
+
+
+ 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
+
+ -37
+
+
+ 2
+ :)>
#include <errno.h>
#include <iostream>
typedef boost::(:link
+ 1
+
+ 0
+
+ -27
+
+
+ 2
+ :)<struct tag_errno,int> errno_info; //(1)
class my_error: public boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :), public std::exception { }; //(2)
void
f()
{
throw my_error() << errno_info(errno); //(3)
}
@]
First, we instantiate the (:link
+ 1
+
+ 0
+
+ -27
+
+
+ 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
+
+ -26
+
+
+ 2
+ :).
Finally, (3) illustrates how the typedef from (1) can be used with (:link
+ 1
+
+ 0
+
+ -28
+
+
+ 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
+
+ -7
+
+
+ 2
+ :)<errno_info>(x) )
std::cerr << "Error code: " << *err;
}
}@]
The (:link
+ 1
+
+ 0
+
+ -7
+
+
+ 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
+
+ -26
+
+
+ 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
+
+ -14
+
+
+
+ 5
+ 2
+ !!!operator<<, tuple overload
(:include synopsis:)
!!!!Requirements:
E must be boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :), or a type that derives (indirectly) from boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :).
!!!!Effects:
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:)
+
+
+
+
+ 0
+
+ -15
+
+
+
+ 3
+ 2
+ !!!exception::~exception
(:include decl:)
!!!!Effects:
Frees all resources associated with a boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :) object.
!!!!Throws:
Nothing.
+
+
+
+
+ 0
+
+ -16
+
+
+
+ 1
+ 2
+ !!boost/exception/info.hpp
!!!Synopsis
(:include synopsis:)
+
+
+
+
+ 0
+
+ -17
+
+
+
+ 13
+ 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
+
+ -39
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -16
+
+
+ 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
+
+ -26
+
+
+ 2
+ :) { };
void
file_read( FILE * f, void * buffer, size_t size )
{
if( size!=fread(buffer,1,size,f) )
throw boost::(:link
+ 1
+
+ 0
+
+ -31
+
+
+ 2
+ :)(file_read_error()) <<
errno_info(errno);
}@]
Of course,
+ 1
+
+ 0
+
+ -31
+
+
+ 2
+ may be used with any exception type; there is no requirement that it should derive from boost::
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ .
+
+
+
+
+ 0
+
+ -18
+
+
+
+ 37
+ 2
+ !!!Cloning and Re-throwing an Exception
When you catch an exception, you can call (:link
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :) to get an (:link
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :) object:
[@#include <(:link
+ 1
+
+ 0
+
+ -21
+
+
+ 2
+ :)>
#include <boost/thread.hpp>
#include <boost/bind.hpp>
void do_work(); //throws cloning-enabled boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :)s
void
worker_thread( boost::(:link
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :) & error )
{
try
{
do_work();
error = boost::(:link
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :)();
}
catch(
... )
{
error = boost::(:link
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :)();
}
}@]
In the above example, note that (:link
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :) captures the original type of the exception object. The exception can be thrown again using the (:link
+ 1
+
+ 0
+
+ -34
+
+
+ 2
+ :) function:
[@// ...continued
void
work()
{
boost::(:link
+ 1
+
+ 0
+
+ -30
+
+
+ 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
+
+ -34
+
+
+ 2
+ :)(error);
}@]
Note that (:link
+ 1
+
+ 0
+
+ -32
+
+
+ 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
+
+ -30
+
+
+ 2
+ :) points to an instance of std::bad_alloc, or
* if (:link
+ 1
+
+ 0
+
+ -31
+
+
+ 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
+
+ -30
+
+
+ 2
+ :) points to an instance of (:link
+ 1
+
+ 0
+
+ -35
+
+
+ 2
+ :).
Regardless, the use of (:link
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :) and (:link
+ 1
+
+ 0
+
+ -34
+
+
+ 2
+ :) in the above examples is well-formed.
+
+
+
+
+ 0
+
+ -19
+
+
+
+ 1
+ 2
+ !!boost/exception/info_tuple.hpp
!!!Synopsis
(:include synopsis:)
+
+
0
@@ -5685,72 +5606,45 @@
- 17
+ 11
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 exception_ptr support in Boost Exception. For example:
[@class
my_exception:
public std::exception
{
};
....
throw boost::(:link
+ !!Transporting of Arbitrary Data to the Catch Site
All exception types that derive from boost::(:link
1
0
- -20
+ -26
2
- :)(my_exception());@]
Unless (:link
+ :) 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 types. Data can be added to a boost::(:link
1
0
- -20
+ -26
2
- :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link
+ :) at the time of the throw, or at a later time.
(:include
1
0
- -21
+ -13
2
- :) may return an (:link
+ :)
(:include
1
0
- -19
+ -22
2
- :) which refers to an instance of (:link
- 1
-
- 0
-
- -5
-
-
- 2
- :). See (:link
- 1
-
- 0
-
- -21
-
-
- 2
- :) for details.
!!!!Note:
Instead of using the throw keyword directly, it is preferable to call boost::(:link
- 1
-
- 0
-
- -8
-
-
- 2
- :). This is guaranteed to throw an exception that derives from boost::(:link
+ :)
(:include
1
0
@@ -5759,7 +5653,7 @@
2
- :) and supports exception_ptr functionality.
+ :)
@@ -5770,135 +5664,9 @@
- 29
+ 1
2
- !!!current_exception
(:include synopsis:)
!!!!Requirements:
The (:link
- 1
-
- 0
-
- -21
-
-
- 2
- :) function must not be called outside of a catch block.
!!!!Returns:
* An (:link
- 1
-
- 0
-
- -19
-
-
- 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
-
- -19
-
-
- 2
- :) that refers to an instance of std::bad_alloc.
!!!!Throws:
Nothing.
!!!!Notes:
* It is unspecified whether the return values of two successive calls to (:link
- 1
-
- 0
-
- -21
-
-
- 2
- :) refer to the same exception object.
* Correct implementation of (:link
- 1
-
- 0
-
- -21
-
-
- 2
- :) may require compiler support, unless (:link
- 1
-
- 0
-
- -20
-
-
- 2
- :) is used at the time the currently handled exception object was passed to throw. If (:link
- 1
-
- 0
-
- -20
-
-
- 2
- :) is not used, and if the compiler does not provide the necessary support, then (:link
- 1
-
- 0
-
- -21
-
-
- 2
- :) may return an (:link
- 1
-
- 0
-
- -19
-
-
- 2
- :) that refers to an instance of (:link
- 1
-
- 0
-
- -5
-
-
- 2
- :). In this case, if the original exception object derives from boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :), then the boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :) sub-object of the (:link
- 1
-
- 0
-
- -5
-
-
- 2
- :) object is initialized by the boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :) copy constructor.
+ !!boost/exception_ptr.hpp
!!!Synopsis
(:include synopsis:)
@@ -5909,18 +5677,99 @@
- 3
+ 21
2
- !!!copy_exception
(:include synopsis:)
!!!!Effects:
As if try { throw e; } catch( ... ) { return (:link
+ !!!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
- -21
+ -26
2
- :)(); }
+ :), and free the file_read function from the burden of storing the file name in exceptions it throws:
[@#include <(:link
+ 1
+
+ 0
+
+ -37
+
+
+ 2
+ :)>
#include <stdio.h>
#include <errno.h>
typedef boost::(:link
+ 1
+
+ 0
+
+ -27
+
+
+ 2
+ :)<struct tag_errno,int> errno_info;
class file_read_error: public boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 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
+
+ -37
+
+
+ 2
+ :)>
#include <boost/shared_ptr.hpp>
#include <stdio.h>
#include <string>
typedef boost::(:link
+ 1
+
+ 0
+
+ -27
+
+
+ 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
+
+ -26
+
+
+ 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
+
+ -26
+
+
+ 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
+
+ -26
+
+
+ 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
+
+ -7
+
+
+ 2
+ :).
@@ -5931,9 +5780,45 @@
- 1
+ 9
2
- !!!rethrow_exception
(:include synopsis:)
!!!!Precondition:
ep shall not be null.
!!!!Throws:
The exception to which ep refers.
+ !!!throw_exception
(:include synopsis:)
!!!!Requirements:
E must derive publicly from std::exception.
!!!!Effects:
* If BOOST_NO_EXCEPTIONS is not defined, boost::(:link
+ 1
+
+ 0
+
+ -23
+
+
+ 2
+ :)(e) is equivalent to throw boost::(:link
+ 1
+
+ 0
+
+ -31
+
+
+ 2
+ :)(boost::(:link
+ 1
+
+ 0
+
+ -29
+
+
+ 2
+ :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link
+ 1
+
+ 0
+
+ -23
+
+
+ 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.
@@ -5944,27 +5829,54 @@
- 5
+ 11
2
- !!!diagnostic_information
(:include synopsis:)
!!!!Returns:
If dynamic_cast<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
- -12
+ -31
2
- :) *>(&x) is not null, the returned string is initialized by a call to (: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
- -38
+ -23
2
- :); otherwise, the returned string combines the output of x.what() and typeid(x).name().
+ :) are guaranteed to derive from boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :) and to support cloning.
(:include
+ 1
+
+ 0
+
+ -17
+
+
+ 2
+ :)
(:include
+ 1
+
+ 0
+
+ -18
+
+
+ 2
+ :)
@@ -5975,16 +5887,45 @@
- 1
- 2
- !!boost/exception.hpp
!!Synopsis
(:include synopsis:)
+ 0
0
- -26
+ -35
+
+
+
+ 5
+ 2
+ !!!unknown_exception
(:include synopsis:)
This type is used by the
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ support in Boost Exception. Please see (:link
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :).
+
+
+
+
+ 0
+
+ -38
@@ -5997,20 +5938,475 @@
0
- -27
+ -37
1
2
- !!boost/exception/enable_current_exception.hpp
!!!Synopsis
(:include synopsis:)
+ !!boost/exception.hpp
!!Synopsis
(:include synopsis:)
0
- -28
+ -42
+
+
+
+ 7
+ 2
+ !!!exception::diagnostic_information
(:include decl:)
!!!!Returns:
An string representation of all data stored in the boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :) object by the (:link
+ 1
+
+ 0
+
+ -28
+
+
+ 2
+ |operator<<:) function. See "(:link
+ 1
+
+ 0
+
+ -10
+
+
+ 2
+ :)" for details.
!!!!Throws:
Nothing.
!!!!Note:
The return value remains valid until the exception object from which it is obtained is destroyed or modified.
+
+
+
+
+ 0
+
+ -36
+
+
+
+ 5
+ 2
+ !!!diagnostic_information
(:include synopsis:)
!!!!Returns:
If dynamic_cast<boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :) *>(&x) is not null, the returned string is initialized by a call to (:link
+ 1
+
+ 0
+
+ -42
+
+
+ 2
+ :); otherwise, the returned string combines the output of x.what() and typeid(x).name().
+
+
+
+
+ 0
+
+ -34
+
+
+
+ 1
+ 2
+ !!!rethrow_exception
(:include synopsis:)
!!!!Precondition:
ep shall not be null.
!!!!Throws:
The exception to which ep refers.
+
+
+
+
+ 0
+
+ -30
+
+
+
+ 15
+ 2
+ !!!exception_ptr
(:include synopsis:)
The (:link
+ 1
+
+ 0
+
+ -30
+
+
+ 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
+
+ -30
+
+
+ 2
+ :)'s operations do not throw.
Two instances of (:link
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :) are equivalent and compare equal if and only if they refer to the same exception.
The default constructor of (:link
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :) produces the null value of the type. The null value is equivalent only to itself.
!!!!Note:
(:link
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :) objects are returned by (:link
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :) and (:link
+ 1
+
+ 0
+
+ -33
+
+
+ 2
+ :).
+
+
+
+
+ 0
+
+ -31
+
+
+
+ 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 exception_ptr support in Boost Exception. For example:
[@class
my_exception:
public std::exception
{
};
....
throw boost::(:link
+ 1
+
+ 0
+
+ -31
+
+
+ 2
+ :)(my_exception());@]
Unless (:link
+ 1
+
+ 0
+
+ -31
+
+
+ 2
+ :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :) may return an (:link
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :) which refers to an instance of (:link
+ 1
+
+ 0
+
+ -35
+
+
+ 2
+ :). See (:link
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :) for details.
!!!!Note:
Instead of using the throw keyword directly, it is preferable to call boost::(:link
+ 1
+
+ 0
+
+ -23
+
+
+ 2
+ :). This is guaranteed to throw an exception that derives from boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :) and supports exception_ptr functionality.
+
+
+
+
+ 0
+
+ -33
+
+
+
+ 3
+ 2
+ !!!copy_exception
(:include synopsis:)
!!!!Effects:
As if try { throw e; } catch( ... ) { return (:link
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :)(); }
+
+
+
+
+ 0
+
+ -32
+
+
+
+ 29
+ 2
+ !!!current_exception
(:include synopsis:)
!!!!Requirements:
The (:link
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :) function must not be called outside of a catch block.
!!!!Returns:
* An (:link
+ 1
+
+ 0
+
+ -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
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :) that refers to an instance of std::bad_alloc.
!!!!Throws:
Nothing.
!!!!Notes:
* It is unspecified whether the return values of two successive calls to (:link
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :) refer to the same exception object.
* Correct implementation of (:link
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :) may require compiler support, unless (:link
+ 1
+
+ 0
+
+ -31
+
+
+ 2
+ :) is used at the time the currently handled exception object was passed to throw. If (:link
+ 1
+
+ 0
+
+ -31
+
+
+ 2
+ :) is not used, and if the compiler does not provide the necessary support, then (:link
+ 1
+
+ 0
+
+ -32
+
+
+ 2
+ :) may return an (:link
+ 1
+
+ 0
+
+ -30
+
+
+ 2
+ :) that refers to an instance of (:link
+ 1
+
+ 0
+
+ -35
+
+
+ 2
+ :). In this case, if the original exception object derives from boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :), then the boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :) sub-object of the (:link
+ 1
+
+ 0
+
+ -35
+
+
+ 2
+ :) object is initialized by the boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :) copy constructor.
+
+
+
+
+ 0
+
+ -43
+
+
+
+ 9
+ 2
+ !!!exception::what
(:include decl:)
!!!!Returns:
The default implementation is equivalent to return (:link
+ 1
+
+ 0
+
+ -42
+
+
+ 2
+ :)(). The signature of boost::(:link
+ 1
+
+ 0
+
+ -43
+
+
+ 2
+ :) is identical to the familiar std::exception::what function, so that when an exception type that derives both std::exception and boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :) overrides the what function, it overrides both std::exception::what and boost::(:link
+ 1
+
+ 0
+
+ -43
+
+
+ 2
+ :).
!!!!Throws:
Nothing.
!!!!Note:
The return value remains valid until the exception object from which it is obtained is destroyed or modified.
+
+
+
+
+ 0
+
+ -40
@@ -6027,335 +6423,67 @@
- 1
+ 7
2
- !!boost/exception/error_info.hpp
!!!Synopsis
(:include synopsis:)
+ !!!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
+
+ -26
+
+
+ 2
+ :). The T sub-object is initialized from x by the T copy constructor. If T already derives from boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :), then the type of the returned object does not derive boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :).
!!!!Throws:
Nothing.
0
- -30
-
-
-
- 1
- 2
- !!boost/exception/exception.hpp
!!!Synopsis
(:include synopsis:)
-
-
-
-
- 0
-
- -31
-
-
-
- 1
- 2
- !!boost/exception/info.hpp
!!!Synopsis
(:include synopsis:)
-
-
-
-
- 0
-
- -32
-
-
-
- 1
- 2
- !!boost/exception/info_tuple.hpp
!!!Synopsis
(:include synopsis:)
-
-
-
-
- 0
-
- -33
-
-
-
- 1
- 2
- !!boost/exception_ptr.hpp
!!!Synopsis
(:include synopsis:)
-
-
-
-
- 0
-
- -34
-
-
-
- 1
- 2
- !!boost/throw_exception.hpp
!!!Synopsis
(:include synopsis:)
-
-
-
-
- 0
-
- -35
-
-
-
- 0
-
-
-
-
- 0
-
- -36
-
-
-
- 37
- 2
- !!!Cloning and Re-throwing an Exception
When you catch an exception, you can call (:link
- 1
-
- 0
-
- -21
-
-
- 2
- :) to get an (:link
- 1
-
- 0
-
- -19
-
-
- 2
- :) object:
[@#include <(:link
- 1
-
- 0
-
- -33
-
-
- 2
- :)>
#include <boost/thread.hpp>
#include <boost/bind.hpp>
void do_work(); //throws cloning-enabled boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :)s
void
worker_thread( boost::(:link
- 1
-
- 0
-
- -19
-
-
- 2
- :) & error )
{
try
{
do_work();
error = boost::(:link
- 1
-
- 0
-
- -19
-
-
- 2
- :)();
}
catch(
... )
{
error = boost::(:link
- 1
-
- 0
-
- -21
-
-
- 2
- :)();
}
}@]
In the above example, note that (:link
- 1
-
- 0
-
- -21
-
-
- 2
- :) captures the original type of the exception object. The exception can be thrown again using the (:link
- 1
-
- 0
-
- -23
-
-
- 2
- :) function:
[@// ...continued
void
work()
{
boost::(:link
- 1
-
- 0
-
- -19
-
-
- 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
-
- -23
-
-
- 2
- :)(error);
}@]
Note that (:link
- 1
-
- 0
-
- -21
-
-
- 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
-
- -19
-
-
- 2
- :) points to an instance of std::bad_alloc, or
* if (:link
- 1
-
- 0
-
- -20
-
-
- 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
-
- -19
-
-
- 2
- :) points to an instance of (:link
- 1
-
- 0
-
- -5
-
-
- 2
- :).
Regardless, the use of (:link
- 1
-
- 0
-
- -21
-
-
- 2
- :) and (:link
- 1
-
- 0
-
- -23
-
-
- 2
- :) in the above examples is well-formed.
-
-
-
-
- 0
-
- -37
-
-
-
- 3
- 2
- !!!exception::~exception
(:include decl:)
!!!!Effects:
Frees all resources associated with a boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :) object.
!!!!Throws:
Nothing.
-
-
-
-
- 0
-
- -38
+ -28
7
2
- !!!exception::diagnostic_information
(:include decl:)
!!!!Returns:
An string representation of all data stored in the boost::(:link
+ !!!operator<<, error_info overload
(:include synopsis:)
!!!!Requirements:
E must be boost::(:link
1
0
- -12
+ -26
2
- :) object by the (:link
+ :), or a type that derives (indirectly) from boost::(:link
1
0
- -14
+ -26
2
- |operator<<:) function. See "(:link
- 1
-
- 0
-
- -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.
-
-
-
-
- 0
-
- -39
-
-
-
- 13
- 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
+ :).
!!!!Effects:
Stores a copy of v into x. If x already contains data of type (:link
1
0
@@ -6364,356 +6492,7 @@
2
- :)>
#include <(:link
- 1
-
- 0
-
- -31
-
-
- 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
-
- -12
-
-
- 2
- :) { };
void
file_read( FILE * f, void * buffer, size_t size )
{
if( size!=fread(buffer,1,size,f) )
throw boost::(:link
- 1
-
- 0
-
- -20
-
-
- 2
- :)(file_read_error()) <<
errno_info(errno);
}@]
Of course,
- 1
-
- 0
-
- -20
-
-
- 2
- may be used with any exception type; there is no requirement that it should derive from boost::
- 1
-
- 0
-
- -12
-
-
- 2
- .
-
-
-
-
- 0
-
- -40
-
-
-
- 7
- 2
- !!!exception::exception
(:include decl:)
!!!!Effects:
* Default constructor: initializes an empty boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :) object.
* Copy constructor: initializes a boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :) object which shares with x all data added through (:link
- 1
-
- 0
-
- -14
-
-
- 2
- |operator<<:), including data that is added at a future time.
!!!!Throws:
Nothing.
-
-
-
-
- 0
-
- -41
-
-
-
- 13
- 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
- 1
-
- 0
-
- -32
-
-
- 2
- :)>
#include <boost/shared_ptr.hpp>
#include <stdio.h>
#include <string>
#include <errno.h>
typedef boost::(:link
- 1
-
- 0
-
- -13
-
-
- 2
- :)<struct tag_file_name,std::string> file_name_info;
typedef boost::(:link
- 1
-
- 0
-
- -13
-
-
- 2
- :)<struct tag_function,char const *> function_info;
typedef boost::(:link
- 1
-
- 0
-
- -13
-
-
- 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
-
- -12
-
-
- 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
-
- -16
-
-
- 2
- :).
-
-
-
-
- 0
-
- -42
-
-
-
- 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
-
- -25
-
-
- 2
- :)>
#include <errno.h>
#include <iostream>
typedef boost::(:link
- 1
-
- 0
-
- -13
-
-
- 2
- :)<struct tag_errno,int> errno_info; //(1)
class my_error: public boost::(:link
- 1
-
- 0
-
- -12
-
-
- 2
- :), public std::exception { }; //(2)
void
f()
{
throw my_error() << errno_info(errno); //(3)
}
@]
First, we instantiate the (:link
- 1
-
- 0
-
- -13
-
-
- 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
-
- -12
-
-
- 2
- :).
Finally, (3) illustrates how the typedef from (1) can be used with (:link
- 1
-
- 0
-
- -14
-
-
- 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
-
- -16
-
-
- 2
- :)<errno_info>(x) )
std::cerr << "Error code: " << *err;
}
}@]
The (:link
- 1
-
- 0
-
- -16
-
-
- 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
-
- -12
-
-
- 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
-
- -43
-
-
-
- 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
-
- -12
-
-
- 2
- :), and free the file_read function from the burden of storing the file name in exceptions it throws:
[@#include <(:link
- 1
-
- 0
-
- -25
-
-
- 2
- :)>
#include <stdio.h>
#include <errno.h>
typedef boost::(:link
- 1
-
- 0
-
- -13
-
-
- 2
- :)<struct tag_errno,int> errno_info;
class file_read_error: public boost::(:link
- 1
-
- 0
-
- -12
-
-
- 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
-
- -25
-
-
- 2
- :)>
#include <boost/shared_ptr.hpp>
#include <stdio.h>
#include <string>
typedef boost::(:link
- 1
-
- 0
-
- -13
-
-
- 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
-
- -12
-
-
- 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
-
- -12
-
-
- 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
-
- -12
-
-
- 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
-
- -16
-
-
- 2
- :).
+ :)<Tag1,T1>, that data is overwritten.
!!!!Returns:
x.
(:include throws:)
@@ -6724,18 +6503,219 @@
- 9
+ 7
2
- !!!exception::what
(:include decl:)
!!!!Returns:
The default implementation is equivalent to return (:link
+ !!!exception::exception
(:include decl:)
!!!!Effects:
* Default constructor: initializes an empty boost::(:link
1
0
- -38
+ -26
2
- :)(). The signature of boost::(:link
+ :) object.
* Copy constructor: initializes a boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :) object which shares with x all data added through (:link
+ 1
+
+ 0
+
+ -28
+
+
+ 2
+ |operator<<:), including data that is added at a future time.
!!!!Throws:
Nothing.
+
+
+
+
+ 0
+
+ -27
+
+
+
+ 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
+
+ -27
+
+
+ 2
+ :)<Tag,T> can be passed to (:link
+ 1
+
+ 0
+
+ -28
+
+
+ 2
+ |operator<<:) to be stored in objects of type boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :).
!!!!Note:
The header <(:link
+ 1
+
+ 0
+
+ -5
+
+
+ 2
+ :)> provides a declaration of the (:link
+ 1
+
+ 0
+
+ -27
+
+
+ 2
+ :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, like this:
[@#include <(:link
+ 1
+
+ 0
+
+ -5
+
+
+ 2
+ :)>
typedef boost::(:link
+ 1
+
+ 0
+
+ -27
+
+
+ 2
+ :)<struct tag_errno,int> errno_info;@]
Of course, to actually add an errno_info object to exceptions using (:link
+ 1
+
+ 0
+
+ -28
+
+
+ 2
+ |operator<<:), or to retrieve it using (:link
+ 1
+
+ 0
+
+ -7
+
+
+ 2
+ :), you must first #include <(:link
+ 1
+
+ 0
+
+ -16
+
+
+ 2
+ :)>.
+
+
+
+
+ 0
+
+ -39
+
+
+
+ 1
+ 2
+ !!boost/exception/enable_current_exception.hpp
!!!Synopsis
(:include synopsis:)
+
+
+
+
+ 0
+
+ -26
+
+
+
+ 21
+ 2
+ !!!exception
(:include synopsis:)
Class boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 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
+
+ -26
+
+
+ 2
+ :) can store data of arbitrary types, using the (:link
+ 1
+
+ 0
+
+ -27
+
+
+ 2
+ :) wrapper and (:link
+ 1
+
+ 0
+
+ -28
+
+
+ 2
+ |operator<<:).
To retrieve data from a boost::(:link
+ 1
+
+ 0
+
+ -26
+
+
+ 2
+ :) object, use the (:link
+ 1
+
+ 0
+
+ -7
+
+
+ 2
+ :) function template.
(:include
1
0
@@ -6744,25 +6724,45 @@
2
- :) is identical to the familiar std::exception::what function, so that when an exception type that derives both std::exception and boost::(:link
+ :)
(:include
1
0
- -12
+ -15
2
- :) overrides the what function, it overrides both std::exception::what and boost::(:link
+ :)
(:include
1
0
- -44
+ -42
2
- :).
!!!!Throws:
Nothing.
!!!!Note:
The return value remains valid until the exception object from which it is obtained is destroyed or modified.
+ :)
(:include
+ 1
+
+ 0
+
+ -43
+
+
+ 2
+ :)
+
+
+
+
+ 0
+
+ -41
+
+
+
+ 0
@@ -6888,7 +6888,7 @@
1
2
- !!!!Throws:
std::bad_alloc, or any exception emitted by the T copy constructor.
+ !!!!Throws:
std::bad_alloc, or any exception emitted by T1..TN copy constructor.
@@ -6899,9 +6899,7 @@
- 1
- 2
- !!!!Throws:
std::bad_alloc, or any exception emitted by T1..TN copy constructor.
+ 0
@@ -7018,7 +7016,7 @@
0
- -26
+ -35
@@ -7029,7 +7027,7 @@
0
- -27
+ -38
@@ -7040,7 +7038,7 @@
0
- -28
+ -37
@@ -7051,7 +7049,29 @@
0
- -29
+ -42
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -36
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -34
@@ -7080,17 +7100,6 @@
0
-
-
- 0
-
- -32
-
-
-
- 0
-
-
0
@@ -7106,95 +7115,7 @@
0
- -34
-
-
-
- 0
-
-
-
-
- 0
-
- -35
-
-
-
- 0
-
-
-
-
- 0
-
- -36
-
-
-
- 0
-
-
-
-
- 0
-
- -37
-
-
-
- 0
-
-
-
-
- 0
-
- -38
-
-
-
- 0
-
-
-
-
- 0
-
- -39
-
-
-
- 0
-
-
-
-
- 0
-
- -40
-
-
-
- 0
-
-
-
-
- 0
-
- -41
-
-
-
- 0
-
-
-
-
- 0
-
- -42
+ -32
@@ -7212,6 +7133,41 @@
0
+
+
+ 0
+
+ -40
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -29
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -28
+
+
+
+ 1
+ 2
+ !!!!Throws:
std::bad_alloc, or any exception emitted by the T copy constructor.
+
+
0
@@ -7223,6 +7179,50 @@
0
+
+
+ 0
+
+ -27
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -39
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -26
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -41
+
+
+
+ 0
+
+
@@ -7472,7 +7472,7 @@
0
- -26
+ -35
@@ -7483,7 +7483,7 @@
0
- -27
+ -38
@@ -7494,7 +7494,7 @@
0
- -28
+ -37
@@ -7505,7 +7505,29 @@
0
- -29
+ -42
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -36
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -34
@@ -7534,17 +7556,6 @@
0
-
-
- 0
-
- -32
-
-
-
- 0
-
-
0
@@ -7560,95 +7571,7 @@
0
- -34
-
-
-
- 0
-
-
-
-
- 0
-
- -35
-
-
-
- 0
-
-
-
-
- 0
-
- -36
-
-
-
- 0
-
-
-
-
- 0
-
- -37
-
-
-
- 0
-
-
-
-
- 0
-
- -38
-
-
-
- 0
-
-
-
-
- 0
-
- -39
-
-
-
- 0
-
-
-
-
- 0
-
- -40
-
-
-
- 0
-
-
-
-
- 0
-
- -41
-
-
-
- 0
-
-
-
-
- 0
-
- -42
+ -32
@@ -7666,6 +7589,39 @@
0
+
+
+ 0
+
+ -40
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -29
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -28
+
+
+
+ 0
+
+
0
@@ -7677,6 +7633,50 @@
0
+
+
+ 0
+
+ -27
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -39
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -26
+
+
+
+ 0
+
+
+
+
+ 0
+
+ -41
+
+
+
+ 0
+
+
@@ -7699,18 +7699,9 @@
- 3
+ 1
2
- `#include <(:link
- 1
-
- 0
-
- -33
-
-
- 2
- :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ [@namespace
boost
{
(:include decl pre_indent="4":)
}@]
@@ -7720,28 +7711,6 @@
-6
-
- 0
-
-
-
-
- 0
-
- -7
-
-
-
- 0
-
-
-
-
- 0
-
- -8
-
-
3
2
@@ -7750,13 +7719,66 @@
0
- -34
+ -16
2
:)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+
+
+ 0
+
+ -7
+
+
+
+ 3
+ 2
+ `#include <(:link
+ 1
+
+ 0
+
+ -16
+
+
+ 2
+ :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+
+
+
+
+ 0
+
+ -8
+
+
+
+ 5
+ 2
+ [@#include <(:link
+ 1
+
+ 0
+
+ -39
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ :)>
#include <exception>
namespace
boost
{
(:include decl pre_indent="4":)
}@]
+
+
0
@@ -7765,7 +7787,9 @@
- 0
+ 1
+ 2
+ [@namespace
boost
{
(:include decl pre_indent="4":)
}@]
@@ -7798,18 +7822,7 @@
- 3
- 2
- `#include <(:link
- 1
-
- 0
-
- -30
-
-
- 2
- :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ 0
@@ -7820,18 +7833,7 @@
- 3
- 2
- `#include <(:link
- 1
-
- 0
-
- -31
-
-
- 2
- :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ 0
@@ -7842,18 +7844,27 @@
- 3
+ 5
2
`#include <(:link
1
0
- -31
+ -19
2
- :)>\\
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ :)>
[@namespace
boost
{
(:include
+ 1
+
+ 0
+
+ -14
+
+
+ 2
+ decl pre_indent="4":)
}@]
@@ -7864,27 +7875,7 @@
- 5
- 2
- `#include <(:link
- 1
-
- 0
-
- -32
-
-
- 2
- :)>
[@namespace
boost
{
(:include
- 1
-
- 0
-
- -15
-
-
- 2
- decl pre_indent="4":)
}@]
+ 0
@@ -7897,16 +7888,16 @@
3
2
- `#include <(:link
+ [@#include <(:link
1
0
- -31
+ -9
2
- :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ :)>
#include <boost/current_function.hpp>
#include <boost/shared_ptr.hpp>
namespace
boost
{
(:include decl pre_indent="4":)
}@]
@@ -7917,18 +7908,7 @@
- 3
- 2
- `#include <(:link
- 1
-
- 0
-
- -28
-
-
- 2
- :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ 0
@@ -7939,18 +7919,7 @@
- 3
- 2
- `#include <(:link
- 1
-
- 0
-
- -31
-
-
- 2
- :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ 0
@@ -7961,18 +7930,9 @@
- 3
+ 1
2
- `#include <(:link
- 1
-
- 0
-
- -33
-
-
- 2
- :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ [@#include <boost/tuple/tuple.hpp>
namespace
boost
{
(:include decl pre_indent="4":)
}@]
@@ -7983,18 +7943,7 @@
- 3
- 2
- `#include <(:link
- 1
-
- 0
-
- -27
-
-
- 2
- :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ 0
@@ -8007,16 +7956,16 @@
3
2
- `#include <(:link
+ [@#include <
1
0
- -33
+ -9
2
- :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ >
namespace
boost
{
(:include decl pre_indent="4":)
}@]
@@ -8027,18 +7976,7 @@
- 3
- 2
- `#include <(:link
- 1
-
- 0
-
- -33
-
-
- 2
- :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ 0
@@ -8056,7 +7994,7 @@
0
- -33
+ -8
2
@@ -8071,18 +8009,7 @@
- 3
- 2
- `#include <
- 1
-
- 0
-
- -26
-
-
- 2
- >
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+ 0
@@ -8093,61 +8020,36 @@
- 11
- 2
- [@#include <(:link
- 1
-
- 0
-
- -31
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -32
-
-
- 2
- :)>
#include <
- 1
-
- 0
-
- -26
-
-
- 2
- >
#include <(:link
- 1
-
- 0
-
- -33
-
-
- 2
- :)>
#include <(:link
- 1
-
- 0
-
- -34
-
-
- 2
- :)>@]
+ 0
0
- -26
+ -35
+
+
+
+ 3
+ 2
+ `#include <(:link
+ 1
+
+ 0
+
+ -21
+
+
+ 2
+ :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+
+
+
+
+ 0
+
+ -38
@@ -8160,145 +8062,18 @@
0
- -27
+ -37
- 3
+ 11
2
[@#include <(:link
1
0
- -30
-
-
- 2
- :)>
namespace
boost
{
(:include decl pre_indent="4":)
}@]
-
-
-
-
- 0
-
- -28
-
-
-
- 3
- 2
- [@#include <
- 1
-
- 0
-
- -30
-
-
- 2
- >
namespace
boost
{
(:include decl pre_indent="4":)
}@]
-
-
-
-
- 0
-
- -29
-
-
-
- 1
- 2
- [@namespace
boost
{
(:include decl pre_indent="4":)
}@]
-
-
-
-
- 0
-
- -30
-
-
-
- 1
- 2
- [@namespace
boost
{
(:include decl pre_indent="4":)
}@]
-
-
-
-
- 0
-
- -31
-
-
-
- 3
- 2
- [@#include <(:link
- 1
-
- 0
-
- -30
-
-
- 2
- :)>
#include <boost/current_function.hpp>
#include <boost/shared_ptr.hpp>
namespace
boost
{
(:include decl pre_indent="4":)
}@]
-
-
-
-
- 0
-
- -32
-
-
-
- 1
- 2
- [@#include <boost/tuple/tuple.hpp>
namespace
boost
{
(:include decl pre_indent="4":)
}@]
-
-
-
-
- 0
-
- -33
-
-
-
- 3
- 2
- [@#include <
- 1
-
- 0
-
- -30
-
-
- 2
- >
namespace
boost
{
(:include decl pre_indent="4":)
}@]
-
-
-
-
- 0
-
- -34
-
-
-
- 5
- 2
- [@#include <(:link
- 1
-
- 0
-
- -27
+ -16
2
@@ -8307,88 +8082,38 @@
0
- -28
+ -19
2
- :)>
#include <exception>
namespace
boost
{
(:include decl pre_indent="4":)
}@]
-
-
-
-
- 0
-
- -35
-
-
-
- 0
-
-
-
-
- 0
-
- -36
-
-
-
- 0
-
-
-
-
- 0
-
- -37
-
-
-
- 0
-
-
-
-
- 0
-
- -38
-
-
-
- 0
-
-
-
-
- 0
-
- -39
-
-
-
- 0
-
-
-
-
- 0
-
- -40
-
-
-
- 0
-
-
-
-
- 0
-
- -41
-
-
-
- 0
+ :)>
#include <
+ 1
+
+ 0
+
+ -38
+
+
+ 2
+ >
#include <(:link
+ 1
+
+ 0
+
+ -21
+
+
+ 2
+ :)>
#include <(:link
+ 1
+
+ 0
+
+ -8
+
+
+ 2
+ :)>@]
@@ -8402,6 +8127,138 @@
0
+
+
+ 0
+
+ -36
+
+
+
+ 3
+ 2
+ `#include <
+ 1
+
+ 0
+
+ -38
+
+
+ 2
+ >
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+
+
+
+
+ 0
+
+ -34
+
+
+
+ 3
+ 2
+ `#include <(:link
+ 1
+
+ 0
+
+ -21
+
+
+ 2
+ :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+
+
+
+
+ 0
+
+ -30
+
+
+
+ 3
+ 2
+ `#include <(:link
+ 1
+
+ 0
+
+ -21
+
+
+ 2
+ :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+
+
+
+
+ 0
+
+ -31
+
+
+
+ 3
+ 2
+ `#include <(:link
+ 1
+
+ 0
+
+ -39
+
+
+ 2
+ :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+
+
+
+
+ 0
+
+ -33
+
+
+
+ 3
+ 2
+ `#include <(:link
+ 1
+
+ 0
+
+ -21
+
+
+ 2
+ :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+
+
+
+
+ 0
+
+ -32
+
+
+
+ 3
+ 2
+ `#include <(:link
+ 1
+
+ 0
+
+ -21
+
+
+ 2
+ :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+
+
0
@@ -8413,6 +8270,72 @@
0
+
+
+ 0
+
+ -40
+
+
+
+ 3
+ 2
+ [@#include <
+ 1
+
+ 0
+
+ -9
+
+
+ 2
+ >
namespace
boost
{
(:include decl pre_indent="4":)
}@]
+
+
+
+
+ 0
+
+ -29
+
+
+
+ 3
+ 2
+ `#include <(:link
+ 1
+
+ 0
+
+ -40
+
+
+ 2
+ :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+
+
+
+
+ 0
+
+ -28
+
+
+
+ 3
+ 2
+ `#include <(:link
+ 1
+
+ 0
+
+ -16
+
+
+ 2
+ :)>\\
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+
+
0
@@ -8424,6 +8347,83 @@
0
+
+
+ 0
+
+ -27
+
+
+
+ 3
+ 2
+ `#include <(:link
+ 1
+
+ 0
+
+ -16
+
+
+ 2
+ :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+
+
+
+
+ 0
+
+ -39
+
+
+
+ 3
+ 2
+ [@#include <(:link
+ 1
+
+ 0
+
+ -9
+
+
+ 2
+ :)>
namespace
boost
{
(:include decl pre_indent="4":)
}@]
+
+
+
+
+ 0
+
+ -26
+
+
+
+ 3
+ 2
+ `#include <(:link
+ 1
+
+ 0
+
+ -9
+
+
+ 2
+ :)>
[@namespace
boost
{
(:include decl pre_indent="4":)
}@]
+
+
+
+
+ 0
+
+ -41
+
+
+
+ 0
+
+
@@ -8506,16 +8506,22 @@
-25
- -26
+ -35
- -27
+ -38
- -28
+ -37
- -29
+ -42
+
+
+ -36
+
+
+ -34
-30
@@ -8523,45 +8529,39 @@
-31
-
- -32
-
-33
- -34
-
-
- -35
-
-
- -36
-
-
- -37
-
-
- -38
-
-
- -39
-
-
- -40
-
-
- -41
-
-
- -42
+ -32
-43
+
+ -40
+
+
+ -29
+
+
+ -28
+
-44
+
+ -27
+
+
+ -39
+
+
+ -26
+
+
+ -41
+
@@ -8581,7 +8581,7 @@
- -6
+ -25
@@ -8598,7 +8598,7 @@
- -7
+ -24
@@ -8615,7 +8615,7 @@
- -9
+ -20
@@ -8632,7 +8632,7 @@
- -35
+ -41
@@ -8656,7 +8656,7 @@
- -33
+ -21
@@ -8680,7 +8680,7 @@
- -36
+ -18
@@ -8704,7 +8704,7 @@
- -26
+ -38
@@ -8728,7 +8728,7 @@
- -10
+ -11
@@ -8752,7 +8752,7 @@
- -39
+ -17
@@ -8780,7 +8780,7 @@
- -15
+ -14
@@ -8808,7 +8808,7 @@
- -22
+ -33
@@ -8836,7 +8836,7 @@
- -5
+ -35
@@ -8864,7 +8864,7 @@
- -21
+ -32
@@ -8892,7 +8892,7 @@
- -23
+ -34
@@ -8920,7 +8920,7 @@
- -19
+ -30
@@ -8944,7 +8944,7 @@
- -18
+ -6
@@ -8968,7 +8968,7 @@
- -34
+ -8
@@ -8992,7 +8992,31 @@
- -31
+ -16
+
+
+
+
+
+
+ 1
+ 6A493A8C485B322041944D321FD34F6CC4D67ABA527387BDD5DA6287C5E4B966
+ 1638644878
+ 2590
+ 323
+
+
+
+
+
+ 0
+ ../../../../boost/exception/enable_error_info.hpp
+ 0
+ 0
+
+
+
+ -40
@@ -9016,7 +9040,35 @@
- -27
+ -39
+
+
+
+
+
+
+ 2
+ 6BE9712680D0514BFC3D878FEA4DD229F4D7354F822CEE0088C260175DAA536A
+ 1707118066
+ 2456
+ 457
+ 1203100C7C62C4006CF1C69686685819E118A3DF3E3774867C8A064F1BE6E707
+ 342590922
+ 2424
+ 26
+
+
+
+
+
+ 0
+ ../../../../boost/exception/enable_error_info.hpp
+ 0
+ 0
+
+
+
+ -29
@@ -9040,7 +9092,7 @@
- -25
+ -37
@@ -9068,7 +9120,7 @@
- -13
+ -27
@@ -9096,7 +9148,7 @@
- -16
+ -7
@@ -9124,7 +9176,7 @@
- -14
+ -28
@@ -9152,7 +9204,7 @@
- -24
+ -36
@@ -9180,7 +9232,7 @@
- -8
+ -23
@@ -9204,7 +9256,7 @@
- -29
+ -5
@@ -9232,35 +9284,7 @@
- -20
-
-
-
-
-
-
- 2
- 837760557B72743BFC955BC4B1213EC27F47583A9D7D08EA0BC5616F977A21A7
- 493325143
- 2449
- 457
- ACC64445E8B6AAEF58395C0083BC0247CDE33AC00ED8DB9B7B4F216325DEE410
- 2943579912
- 400
- 2043
-
-
-
-
-
- 0
- ../../../../boost/exception/enable_error_info.hpp
- 0
- 0
-
-
-
- -17
+ -31
@@ -9284,7 +9308,7 @@
- -32
+ -19
@@ -9308,7 +9332,7 @@
- -30
+ -9
@@ -9332,7 +9356,7 @@
- -43
+ -22
@@ -9356,7 +9380,7 @@
- -11
+ -10
@@ -9384,7 +9408,7 @@
- -12
+ -26
@@ -9420,7 +9444,7 @@
- -37
+ -15
@@ -9452,7 +9476,7 @@
- -38
+ -42
@@ -9484,7 +9508,7 @@
- -40
+ -44
@@ -9516,7 +9540,7 @@
- -44
+ -43
@@ -9540,7 +9564,7 @@
- -42
+ -13
@@ -9564,31 +9588,7 @@
- -41
-
-
-
-
-
-
- 1
- B23D4FF62C70B07638898ECB0B683410BC3E4C4F7DB2922C7B0E9844B1855FF5
- 3540957683
- 2583
- 323
-
-
-
-
-
- 0
- ../../../../boost/exception/enable_error_info.hpp
- 0
- 0
-
-
-
- -28
+ -12
@@ -9619,7 +9619,7 @@
-5
- exception_ptr,type,unknown_exception
+ boost/exception/error_info.hpp,error_info,header
@@ -9628,7 +9628,7 @@
-6
- noindex
+ BOOST_ERROR_INFO,error_info,macro
@@ -9637,7 +9637,7 @@
-7
- tutorial
+ error_info,free,function,get_error_info
@@ -9646,7 +9646,7 @@
-8
- free,function,throw_exception
+ boost/throw_exception.hpp,header,throw_exception
@@ -9655,7 +9655,7 @@
-9
- tutorial
+ boost/exception/exception.hpp,exception,header
@@ -9682,7 +9682,7 @@
-12
- exception,type
+ noalso,noindex,tutorial
@@ -9691,7 +9691,7 @@
-13
- error_info,free,type
+ noalso,noindex,tutorial
@@ -9700,7 +9700,7 @@
-14
- error_info,free,function,operator<<,operator<</exception
+ error_info,free,function,operator<<,operator<</tuple
@@ -9709,7 +9709,7 @@
-15
- error_info,free,function,operator<<,operator<</tuple
+ exception,exception::~exception,function,member
@@ -9718,7 +9718,7 @@
-16
- error_info,free,function,get_error_info
+ boost/exception/info.hpp,error_info,header,info
@@ -9727,7 +9727,7 @@
-17
- enable_error_info,error_info,free,function
+ noalso,noindex,tutorial
@@ -9736,7 +9736,7 @@
-18
- BOOST_ERROR_INFO,error_info,macro
+ noalso,noindex,tutorial
@@ -9745,7 +9745,7 @@
-19
- exception_ptr,type
+ boost/exception/info_tuple.hpp,error_info,header,info_tuple
@@ -9754,7 +9754,7 @@
-20
- enable_current_exception,exception_ptr,free,function
+ tutorial
@@ -9763,7 +9763,7 @@
-21
- current_exception,exception_ptr,free,function
+ boost/exception_ptr.hpp,exception_ptr,header
@@ -9772,7 +9772,7 @@
-22
- copy_exception,exception_ptr,free,function
+ noalso,noindex,tutorial
@@ -9781,7 +9781,7 @@
-23
- exception_ptr,free,function,rethrow_exception
+ free,function,throw_exception
@@ -9790,7 +9790,7 @@
-24
- diagnostic_information,free,function
+ tutorial
@@ -9799,13 +9799,22 @@
-25
- boost/exception.hpp,header
+ noindex
0
- -26
+ -35
+
+
+ exception_ptr,type,unknown_exception
+
+
+
+ 0
+
+ -38
boost/exception/diagnostic_information.hpp,diagnostic_information,header
@@ -9814,16 +9823,88 @@
0
- -27
+ -37
- boost/exception/enable_current_exception.hpp,enable_current_exception,exception_ptr,header
+ boost/exception.hpp,header
0
- -28
+ -42
+
+
+ diagnostic_information,exception,exception::diagnostic_information,function,member
+
+
+
+ 0
+
+ -36
+
+
+ diagnostic_information,free,function
+
+
+
+ 0
+
+ -34
+
+
+ exception_ptr,free,function,rethrow_exception
+
+
+
+ 0
+
+ -30
+
+
+ exception_ptr,type
+
+
+
+ 0
+
+ -31
+
+
+ enable_current_exception,exception_ptr,free,function
+
+
+
+ 0
+
+ -33
+
+
+ copy_exception,exception_ptr,free,function
+
+
+
+ 0
+
+ -32
+
+
+ current_exception,exception_ptr,free,function
+
+
+
+ 0
+
+ -43
+
+
+ exception,exception::what,function,member
+
+
+
+ 0
+
+ -40
boost/exception/enable_error_info.hpp,enable_error_info,error_info,header
@@ -9835,133 +9916,16 @@
-29
- boost/exception/error_info.hpp,error_info,header
+ enable_error_info,error_info,free,function
0
- -30
+ -28
- boost/exception/exception.hpp,exception,header
-
-
-
- 0
-
- -31
-
-
- boost/exception/info.hpp,error_info,header,info
-
-
-
- 0
-
- -32
-
-
- boost/exception/info_tuple.hpp,error_info,header,info_tuple
-
-
-
- 0
-
- -33
-
-
- boost/exception_ptr.hpp,exception_ptr,header
-
-
-
- 0
-
- -34
-
-
- boost/throw_exception.hpp,header,throw_exception
-
-
-
- 0
-
- -35
-
-
- index,noindex
-
-
-
- 0
-
- -36
-
-
- noalso,noindex,tutorial
-
-
-
- 0
-
- -37
-
-
- exception,exception::~exception,function,member
-
-
-
- 0
-
- -38
-
-
- diagnostic_information,exception,exception::diagnostic_information,function,member
-
-
-
- 0
-
- -39
-
-
- noalso,noindex,tutorial
-
-
-
- 0
-
- -40
-
-
- exception,exception::exception,function,member
-
-
-
- 0
-
- -41
-
-
- noalso,noindex,tutorial
-
-
-
- 0
-
- -42
-
-
- noalso,noindex,tutorial
-
-
-
- 0
-
- -43
-
-
- noalso,noindex,tutorial
+ error_info,free,function,operator<<,operator<</exception
@@ -9970,7 +9934,43 @@
-44
- exception,exception::what,function,member
+ exception,exception::exception,function,member
+
+
+
+ 0
+
+ -27
+
+
+ error_info,free,type
+
+
+
+ 0
+
+ -39
+
+
+ boost/exception/enable_current_exception.hpp,enable_current_exception,exception_ptr,header
+
+
+
+ 0
+
+ -26
+
+
+ exception,type
+
+
+
+ 0
+
+ -41
+
+
+ index,noindex