From 88ef7770881ea5918cfb4d98ce49c0d2623c915d Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Wed, 16 Jul 2008 21:00:44 +0000 Subject: [PATCH] minor documentation update [SVN r47492] --- doc/boost-exception.html | 10 +- doc/enable_current_exception.html | 2 +- doc/enable_error_info.html | 2 +- doc/error_info.html | 4 +- doc/exception.html | 14 +- doc/exception_diagnostic_information.html | 6 +- doc/exception_hpp.html | 4 +- doc/name_idx.html | 11 +- doc/operator_shl_exception.html | 4 +- doc/source/boost-exception.reno | 7008 ++++++++++----------- doc/throw_exception.html | 2 +- doc/tutorial_diagnostic_information.html | 4 +- doc/tutorial_enable_error_info.html | 4 +- doc/tutorial_exception_ptr.html | 8 +- doc/tutorial_transporting_data.html | 12 +- 15 files changed, 3551 insertions(+), 3544 deletions(-) diff --git a/doc/boost-exception.html b/doc/boost-exception.html index 2ae3f56..2002d35 100644 --- a/doc/boost-exception.html +++ b/doc/boost-exception.html @@ -25,10 +25,10 @@

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.

Contents

-
  1. Tutorial
    1. Tutorial: Transporting of Arbitrary Data to the Catch Site
    2. -
    3. Tutorial: Integrating Boost Exception in Existing Exception Class Hierarchies
    4. -
    5. Tutorial: Transporting of Exceptions Between Threads
    6. -
    7. Tutorial: Diagnostic Information
    8. +
      1. Tutorial
      2. Documentation
        1. Class exception
        2. @@ -199,7 +199,7 @@ boost
        virtual char const * diagnostic_information() const throw();

        Returns:

        -

        A string representation of all data stored in the boost::exception object by the operator<< function. See "Tutorial: Diagnostic Information" for details.

        +

        A string representation of all data stored in the boost::exception object by the operator<< function. See "Diagnostic Information" for details.

        Throws:

        Nothing.

        Notes:

        diff --git a/doc/enable_current_exception.html b/doc/enable_current_exception.html index 13107f4..75069f9 100644 --- a/doc/enable_current_exception.html +++ b/doc/enable_current_exception.html @@ -50,7 +50,7 @@ throw boost::enab
      diff --git a/doc/enable_error_info.html b/doc/enable_error_info.html index 4fb8c14..086f922 100644 --- a/doc/enable_error_info.html +++ b/doc/enable_error_info.html @@ -40,7 +40,7 @@ boost

      See Also:

    diff --git a/doc/error_info.html b/doc/error_info.html index 1776dbd..e15846e 100644 --- a/doc/error_info.html +++ b/doc/error_info.html @@ -52,12 +52,12 @@ typedef boost::error_infoBoost Exception
    boost/exception/error_info.hpp
    boost/exception/info.hpp
    +
    Diagnostic Information
    exception
    get_error_info
    +
    Integrating Boost Exception in Existing Exception Class Hierarchies
    operator<</exception
    operator<</tuple
    -
    Tutorial: Diagnostic Information
    -
    Tutorial: Integrating Boost Exception in Existing Exception Class Hierarchies
diff --git a/doc/exception.html b/doc/exception.html index 7d9f5fd..46f04f0 100644 --- a/doc/exception.html +++ b/doc/exception.html @@ -63,7 +63,7 @@ boost
virtual char const * diagnostic_information() const throw();

Returns:

-

A string representation of all data stored in the boost::exception object by the operator<< function. See "Tutorial: Diagnostic Information" for details.

+

A string representation of all data stored in the boost::exception object by the operator<< function. See "Diagnostic Information" for details.

Throws:

Nothing.

Notes:

@@ -74,18 +74,22 @@ boost

See Also:

BOOST_ERROR_INFO
Boost Exception
+
boost/exception/exception.hpp
current_exception
+
Diagnostic Information
diagnostic_information
enable_current_exception
enable_error_info
error_info
+
exception::diagnostic_information
+
exception::exception
+
exception::~exception
get_error_info
+
Integrating Boost Exception in Existing Exception Class Hierarchies
operator<</exception
operator<</tuple
-
Tutorial: Diagnostic Information
-
Tutorial: Integrating Boost Exception in Existing Exception Class Hierarchies
-
Tutorial: Transporting of Arbitrary Data to the Catch Site
-
Tutorial: Transporting of Exceptions Between Threads
+
Transporting of Arbitrary Data to the Catch Site
+
Transporting of Exceptions Between Threads
unknown_exception
diff --git a/doc/exception_diagnostic_information.html b/doc/exception_diagnostic_information.html index 43291ed..8cb0610 100644 --- a/doc/exception_diagnostic_information.html +++ b/doc/exception_diagnostic_information.html @@ -23,7 +23,7 @@
virtual char const * diagnostic_information() const throw();

Returns:

-

A string representation of all data stored in the boost::exception object by the operator<< function. See "Tutorial: Diagnostic Information" for details.

+

A string representation of all data stored in the boost::exception object by the operator<< function. See "Diagnostic Information" for details.

Throws:

Nothing.

Notes:

@@ -32,9 +32,9 @@

See Also:

- diff --git a/doc/exception_hpp.html b/doc/exception_hpp.html index 8a281e4..6324621 100644 --- a/doc/exception_hpp.html +++ b/doc/exception_hpp.html @@ -30,8 +30,8 @@

See Also:

diff --git a/doc/name_idx.html b/doc/name_idx.html index f7c08db..b2929f6 100644 --- a/doc/name_idx.html +++ b/doc/name_idx.html @@ -23,6 +23,7 @@

B

BOOST_ERROR_INFO

+

Boost Exception

b

boost/exception.hpp

boost/exception/diagnostic_information.hpp

@@ -37,6 +38,8 @@

c

copy_exception

current_exception

+

D

+

Diagnostic Information

d

diagnostic_information

e

@@ -50,16 +53,16 @@

exception_ptr

g

get_error_info

+

I

+

Integrating Boost Exception in Existing Exception Class Hierarchies

o

operator<</exception

operator<</tuple

r

rethrow_exception

T

-

Tutorial: Diagnostic Information

-

Tutorial: Integrating Boost Exception in Existing Exception Class Hierarchies

-

Tutorial: Transporting of Arbitrary Data to the Catch Site

-

Tutorial: Transporting of Exceptions Between Threads

+

Transporting of Arbitrary Data to the Catch Site

+

Transporting of Exceptions Between Threads

t

throw_exception

u

diff --git a/doc/operator_shl_exception.html b/doc/operator_shl_exception.html index 766a025..f7801a4 100644 --- a/doc/operator_shl_exception.html +++ b/doc/operator_shl_exception.html @@ -41,13 +41,13 @@ boost
diff --git a/doc/source/boost-exception.reno b/doc/source/boost-exception.reno index c5265b2..b4d5325 100644 --- a/doc/source/boost-exception.reno +++ b/doc/source/boost-exception.reno @@ -54,28 +54,28 @@ 2 - F7633FDCF6615C0199645701EE6E7ACE5CBCD7A7CF6838573791E91ABB3C09F2 - 1668435395 - 1332 - 396 - A1F443AF571973A12005D2F7D4AE09A32AAF686FEEAE272EC21512A65EB943E8 - 3879093659 - 1300 - 26 + D1AA2FC554CD67A50917905B0E9CCA2EBC1A9BA97368757B36ADF8419756ECF1 + 85276724 + 4917 + 514 + ED09F845070FF7D381BE5EFB6B55313FD09FBA16B64B69992410380EFA45519C + 2051939590 + 78 + 433 0 - ../../../../boost/exception/info_tuple.hpp + ../../../../boost/exception_ptr.hpp 0 0 - <string>operator<</tuple</string> + <string>exception_ptr</string> @@ -102,28 +102,32 @@ - 1 - 07959353ADCC10CF96D16F87F2D01195D75C3A6A2A797513ED3DDFA2F80E2E09 - 303643772 - 1838 - 91 + 2 + D1AA2FC554CD67A50917905B0E9CCA2EBC1A9BA97368757B36ADF8419756ECF1 + 85276724 + 4917 + 514 + 156B870761DB092CE4269C1173B479A344A1041BA2B883765AF19A72B371D776 + 3239976720 + 117 + 4794 0 - ../../../../boost/throw_exception.hpp + ../../../../boost/exception_ptr.hpp 0 0 - <string>boost/throw_exception.hpp</string> + <string>rethrow_exception</string> - throw_exception_hpp + @@ -148,27 +152,27 @@ 1 - A9C65F105342D728DE9C996079E82DF25408B94A272090039FAAC12D29659F69 - 2378831669 - 94 - 227 + 9CC0F5ADB1C04555FD571DABD1D7D6775D8B11977ECC8320AD4451FC435E89A1 + 1325628148 + 3147 + 323 0 - ../../../../boost/exception/enable_current_exception.hpp + ../../../../boost/exception/exception.hpp 0 0 - <string>boost/exception/enable_current_exception.hpp</string> + <string>boost/exception/exception.hpp</string> - exception_enable_exception_cloning_hpp + exception_exception_hpp @@ -286,40 +290,28 @@ - 4 - 13F58566E4D9F20B49F3F30B28528AEE562CD709108ADC1AE19A2F01D86C62F4 - 1430141721 - 2967 - 503 - 09CB6839AC1E71887371FB8159C2BFCD273A397C54E07B25CEF2EEF2FA24286A - 4111403263 - 1924 - 878 - 85EE1980CFB24E054EDB1B3BDFA61FD4D65AD0EF248A1A42D4C2552700459327 - 2238151539 - 428 - 923 - AD3F339F7126003907BCBDB3EF846FCACA895132E1100D202DA67D2B7846EE65 - 3032091776 - 60 - 369 + 1 + A9C65F105342D728DE9C996079E82DF25408B94A272090039FAAC12D29659F69 + 2378831669 + 94 + 227 0 - ../../../../boost/exception/exception.hpp + ../../../../boost/exception/enable_current_exception.hpp 0 0 - <string>exception::~exception</string> + <string>boost/exception/enable_current_exception.hpp</string> - exception_destructor + exception_enable_exception_cloning_hpp @@ -338,227 +330,6 @@ reno_context - - - - - - 1 - 187BFD2B78A0DD006717B5B06FFD465E2468F521C32A86FB793F7A68AB5417F3 - 4276724153 - 574 - 382 - - - - - - 0 - ../../example/error_info_1.cpp - 0 - 0 - - - - - <string>tutorial: adding of arbitrary data at the point of the throw</string> - - - adding_data_at_throw - - - - - - 0 - - - - - 0 - - 12 - - reno_context - - - - - - - 1 - 0C00BEB179039380247D771B12C728884E9A3E5B483AC63CD5789852C7A5CC35 - 2506662970 - 2467 - 323 - - - - - - 0 - ../../../../boost/exception/enable_error_info.hpp - 0 - 0 - - - - - <string>boost/exception/enable_error_info.hpp</string> - - - exception_enable_error_info_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 13 - - reno_context - - - - - - - 1 - CAD6C404CB725D336A44920D2341ECA131149AB02C368B59028F8147F16737BF - 2258638601 - 94 - 227 - - - - - - 0 - ../../../../boost/exception/info_tuple.hpp - 0 - 0 - - - - - <string>boost/exception/info_tuple.hpp</string> - - - exception_error_info_group_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 14 - - reno_context - - - - - - - 1 - CAB4D823BD4720B71E1CA5BE482AC95B42A9E07CD5E08671EA23184635F281A2 - 3077708282 - 89 - 323 - - - - - - 0 - ../../../../boost/exception/error_info.hpp - 0 - 0 - - - - - <string>boost/exception/error_info.hpp</string> - - - exception_error_info_value_hpp - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 15 - - reno_context - - - - - - - 1 - FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717 - 2229778754 - 631 - 319 - - - - - - 0 - ../../example/cloning_2.cpp - 0 - 0 - - - - - <string>tutorial: cloning and re-throwing an exception</string> - - - cloning_and_rethrowing - - - - - - 0 - - - - - 0 - - 16 - - reno_context - @@ -604,50 +375,7 @@ 0 - 17 - - reno_context - - - - - - - 1 - 5373E336DC4892A41D31694BCA1146382FC3137819A04689CA1F9FFAF1CFAB3B - 4050491732 - 466 - 307 - - - - - - 0 - ../../example/cloning_1.cpp - 0 - 0 - - - - - <string>tutorial: using enable_current_exception at the time of the throw</string> - - - using_enable_cloning - - - - - - 0 - - - - - 0 - - 18 + 12 reno_context @@ -674,7 +402,7 @@ - <string>tutorial: adding of arbitrary data to active exception objects</string> + <string>adding of arbitrary data to active exception objects</string> adding_data_later @@ -690,7 +418,7 @@ 0 - 19 + 13 reno_context @@ -717,7 +445,7 @@ - <string>tutorial: diagnostic information</string> + <string>diagnostic information</string> tutorial_diagnostic_information @@ -731,6 +459,271 @@ (:include include:) (:auto also:) + + + 0 + + 14 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>transporting of arbitrary data to the catch site</string> + + + tutorial_transporting_data + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 15 + + reno_context + + + + + + + 1 + D9B8E6AA12A4F33953B1A961FA590C5A3840234B6531CA8C04AC985AD5800835 + 2432554768 + 702 + 408 + + + + + + 0 + ../../example/enable_error_info.cpp + 0 + 0 + + + + + <string>integrating boost exception in existing exception class hierarchies</string> + + + tutorial_enable_error_info + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 16 + + reno_context + + + + + + + 1 + 749C8E4B47A3FD6A90DD8418BF64C4556537CE6E17ACEB2317D9F81DBEBBB0B0 + 1688004766 + 6783 + 323 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + + <string>boost/exception/info.hpp</string> + + + exception_error_info_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 17 + + reno_context + + + + + + + 1 + E444EE9697EEADFDE0767E1D0242FC0E70D98E61FB1F0FFA099648DE509B82F3 + 94503238 + 773 + 374 + + + + + + 0 + ../../example/info_tuple.cpp + 0 + 0 + + + + + <string>adding grouped data to exceptions</string> + + + grouping_data + + + + + + 0 + + + + + 0 + + 18 + + reno_context + + + + + + + 1 + E312FADF4C02B7A6CB1BE1EC16F05A21C20CBA3282D4EAFC8EBE0BA151F24779 + 2820045995 + 5108 + 323 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>boost/exception_ptr.hpp</string> + + + exception_cloning_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 19 + + reno_context + + + + + + + 2 + 13F58566E4D9F20B49F3F30B28528AEE562CD709108ADC1AE19A2F01D86C62F4 + 1430141721 + 2967 + 503 + 09CB6839AC1E71887371FB8159C2BFCD273A397C54E07B25CEF2EEF2FA24286A + 4111403263 + 1924 + 878 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>exception</string> + + + + + + + + + 1 + 2 + (:include include:) ---- !!!See Also: (:pagelist link="backlink" except_tags="exception,member" mod="w":) + + 0 @@ -739,6 +732,55 @@ reno_context + + + + + + 2 + 35F026FF4EC46450D19A8F970D6E39B881DA6B0FC2E95774CCADC5E34C9D57F1 + 1990614462 + 6369 + 737 + F839AFD37DC086BB1231B8E87D8EEBD28129649A06FC685AC7DF65595871AE30 + 2291609923 + 1204 + 243 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + + <string>error_info</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 21 + + reno_context + @@ -780,44 +822,6 @@ (:include include:) (:auto also:) - - - 0 - - 21 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>tutorial: transporting of arbitrary data to the catch site</string> - - - tutorial_transporting_data - - - - - - 1 - 2 - (:include include:) (:auto also:) - - 0 @@ -831,28 +835,32 @@ - 1 - D9B8E6AA12A4F33953B1A961FA590C5A3840234B6531CA8C04AC985AD5800835 - 2432554768 - 702 - 408 + 2 + F7633FDCF6615C0199645701EE6E7ACE5CBCD7A7CF6838573791E91ABB3C09F2 + 1668435395 + 1332 + 396 + A1F443AF571973A12005D2F7D4AE09A32AAF686FEEAE272EC21512A65EB943E8 + 3879093659 + 1300 + 26 0 - ../../example/enable_error_info.cpp + ../../../../boost/exception/info_tuple.hpp 0 0 - <string>tutorial: integrating boost exception in existing exception class hierarchies</string> + <string>operator<</tuple</string> - tutorial_enable_error_info + @@ -871,49 +879,6 @@ reno_context - - - - - - 1 - E444EE9697EEADFDE0767E1D0242FC0E70D98E61FB1F0FFA099648DE509B82F3 - 94503238 - 773 - 374 - - - - - - 0 - ../../example/info_tuple.cpp - 0 - 0 - - - - - <string>tutorial: adding grouped data to exceptions</string> - - - grouping_data - - - - - - 0 - - - - - 0 - - 24 - - reno_context - @@ -955,6 +920,55 @@ (:include include:) (:auto also:) + + + 0 + + 24 + + reno_context + + + + + + + 2 + 05061ED1DD1B33224DE28BF86AB10D99286A48DC055D54A19FF93B36F22E8A90 + 3225446538 + 372 + 408 + ED09AD72D3766F261A0044B58B9B73AA355EB50B1A8F602E5EE7F68D0D928596 + 328425570 + 340 + 26 + + + + + + 0 + ../../../../boost/exception/diagnostic_information.hpp + 0 + 0 + + + + + <string>diagnostic_information</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + 0 @@ -968,28 +982,40 @@ - 1 - 749C8E4B47A3FD6A90DD8418BF64C4556537CE6E17ACEB2317D9F81DBEBBB0B0 - 1688004766 - 6783 - 323 + 4 + 13F58566E4D9F20B49F3F30B28528AEE562CD709108ADC1AE19A2F01D86C62F4 + 1430141721 + 2967 + 503 + 09CB6839AC1E71887371FB8159C2BFCD273A397C54E07B25CEF2EEF2FA24286A + 4111403263 + 1924 + 878 + 85EE1980CFB24E054EDB1B3BDFA61FD4D65AD0EF248A1A42D4C2552700459327 + 2238151539 + 428 + 923 + AD3F339F7126003907BCBDB3EF846FCACA895132E1100D202DA67D2B7846EE65 + 3032091776 + 60 + 369 0 - ../../../../boost/exception/info.hpp + ../../../../boost/exception/exception.hpp 0 0 - <string>boost/exception/info.hpp</string> + <string>exception::~exception</string> - exception_error_info_hpp + exception_destructor @@ -997,7 +1023,7 @@ 1 2 - (:include include:) (:auto also:) + (:include include:) (:auto also:) @@ -1014,35 +1040,33 @@ 1 - E312FADF4C02B7A6CB1BE1EC16F05A21C20CBA3282D4EAFC8EBE0BA151F24779 - 2820045995 - 5108 - 323 + 187BFD2B78A0DD006717B5B06FFD465E2468F521C32A86FB793F7A68AB5417F3 + 4276724153 + 574 + 382 0 - ../../../../boost/exception_ptr.hpp + ../../example/error_info_1.cpp 0 0 - <string>boost/exception_ptr.hpp</string> + <string>adding of arbitrary data at the point of the throw</string> - exception_cloning_hpp + adding_data_at_throw - 1 - 2 - (:include include:) (:auto also:) + 0 @@ -1059,35 +1083,33 @@ 1 - 9CC0F5ADB1C04555FD571DABD1D7D6775D8B11977ECC8320AD4451FC435E89A1 - 1325628148 - 3147 - 323 + FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717 + 2229778754 + 631 + 319 0 - ../../../../boost/exception/exception.hpp + ../../example/cloning_2.cpp 0 0 - <string>boost/exception/exception.hpp</string> + <string>cloning and re-throwing an exception</string> - exception_exception_hpp + cloning_and_rethrowing - 1 - 2 - (:include include:) (:auto also:) + 0 @@ -1103,40 +1125,34 @@ - 2 - D1AA2FC554CD67A50917905B0E9CCA2EBC1A9BA97368757B36ADF8419756ECF1 - 85276724 - 4917 - 514 - ED09F845070FF7D381BE5EFB6B55313FD09FBA16B64B69992410380EFA45519C - 2051939590 - 78 - 433 + 1 + 5373E336DC4892A41D31694BCA1146382FC3137819A04689CA1F9FFAF1CFAB3B + 4050491732 + 466 + 307 0 - ../../../../boost/exception_ptr.hpp + ../../example/cloning_1.cpp 0 0 - <string>exception_ptr</string> + <string>using enable_current_exception at the time of the throw</string> - + using_enable_cloning - 1 - 2 - (:include include:) (:auto also:) + 0 @@ -1152,32 +1168,28 @@ - 2 - D1AA2FC554CD67A50917905B0E9CCA2EBC1A9BA97368757B36ADF8419756ECF1 - 85276724 - 4917 - 514 - 156B870761DB092CE4269C1173B479A344A1041BA2B883765AF19A72B371D776 - 3239976720 - 117 - 4794 + 1 + 429F0DE3599A4CC08B9458E2AECA2EAC202AB3471554FE82C307493805E6676E + 4224422781 + 401 + 323 0 - ../../../../boost/exception_ptr.hpp + ../../../../boost/exception.hpp 0 0 - <string>rethrow_exception</string> + <string>boost/exception.hpp</string> - + exception_hpp @@ -1201,29 +1213,25 @@ - 2 - 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A - 1770110914 - 587 - 1322 - 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D - 3929437933 - 361 - 213 + 1 + ECAD4A1E70A31D7F87F79F557D107AB0A3C5161CB370139974E08ECAFBE2D32F + 1816954312 + 457 + 323 0 - ../../../../boost/throw_exception.hpp + ../../../../boost/exception/diagnostic_information.hpp 0 0 - <string>throw_exception</string> + <string>boost/exception/diagnostic_information.hpp</string> @@ -1250,32 +1258,28 @@ - 2 - D1AA2FC554CD67A50917905B0E9CCA2EBC1A9BA97368757B36ADF8419756ECF1 - 85276724 - 4917 - 514 - A098B6FA5BC8E72E0E69C0323195FCC142AE807564C6892FCBD88588F2FBE049 - 2579522516 - 405 - 26 + 1 + 0C00BEB179039380247D771B12C728884E9A3E5B483AC63CD5789852C7A5CC35 + 2506662970 + 2467 + 323 0 - ../../../../boost/exception_ptr.hpp + ../../../../boost/exception/enable_error_info.hpp 0 0 - <string>unknown_exception</string> + <string>boost/exception/enable_error_info.hpp</string> - + exception_enable_error_info_hpp @@ -1299,32 +1303,28 @@ - 2 - FA5027D9799B8059059C23397F469D6EF6328DC23E92E0BE0FF5BE019A576174 - 1806359597 - 3234 - 506 - DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 - 1137981799 - 192 - 3036 + 1 + CAB4D823BD4720B71E1CA5BE482AC95B42A9E07CD5E08671EA23184635F281A2 + 3077708282 + 89 + 323 0 - ../../../../boost/exception/enable_current_exception.hpp + ../../../../boost/exception/error_info.hpp 0 0 - <string>enable_current_exception</string> + <string>boost/exception/error_info.hpp</string> - + exception_error_info_value_hpp @@ -1348,21 +1348,28 @@ - 0 + 1 + CAD6C404CB725D336A44920D2341ECA131149AB02C368B59028F8147F16737BF + 2258638601 + 94 + 227 - 1 + 0 + ../../../../boost/exception/info_tuple.hpp + 0 + 0 - <string>Index</string> + <string>boost/exception/info_tuple.hpp</string> - name_idx + exception_error_info_group_hpp @@ -1370,7 +1377,7 @@ 1 2 - (:auto !:) (:pagelist fmt="index" except_tags="index,noindex" mod="w":) + (:include include:) (:auto also:) @@ -1386,32 +1393,28 @@ - 2 - 7ACC4E316D4EDB3EC7AEC35FED3ADB47DDF75D575028D7BCD11C5233E4F4A277 - 4268848542 - 2333 - 457 - 61DE70107961C0B9A65674017F91FF85190CF84B4F3B0CA7AC04A7E16DE80B37 - 3187961206 - 2301 - 26 + 1 + 07959353ADCC10CF96D16F87F2D01195D75C3A6A2A797513ED3DDFA2F80E2E09 + 303643772 + 1838 + 91 0 - ../../../../boost/exception/enable_error_info.hpp + ../../../../boost/throw_exception.hpp 0 0 - <string>enable_error_info</string> + <string>boost/throw_exception.hpp</string> - + throw_exception_hpp @@ -1430,823 +1433,6 @@ reno_context - - - - - - 0 - - - - - - 1 - - - - - <string>tutorial: transporting of exceptions between threads</string> - - - tutorial_exception_ptr - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 36 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>boost exception</string> - - - boost-exception - - - - - - 113 - 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 types. 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 - - -35 - - - 2 - |copying:) of exception objects, implemented non-intrusively and automatically by the boost::(:link - 1 - - 0 - - -30 - - - 2 - :) function. !!Contents #Tutorial ##(:link - 1 - - 0 - - -21 - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -22 - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -35 - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -19 - - - 2 - mod="w":) #Documentation ##Class (:link - 1 - - 0 - - 37 - - reno_context - - - - - - - 2 - 13F58566E4D9F20B49F3F30B28528AEE562CD709108ADC1AE19A2F01D86C62F4 - 1430141721 - 2967 - 503 - 09CB6839AC1E71887371FB8159C2BFCD273A397C54E07B25CEF2EEF2FA24286A - 4111403263 - 1924 - 878 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>exception</string> - - - - - - - - 2 - :) ##Transporting of Arbitrary Data to the Catch Site ###(:link - 1 - - 0 - - 38 - - reno_context - - - - - - - 2 - 35F026FF4EC46450D19A8F970D6E39B881DA6B0FC2E95774CCADC5E34C9D57F1 - 1990614462 - 6369 - 737 - F839AFD37DC086BB1231B8E87D8EEBD28129649A06FC685AC7DF65595871AE30 - 2291609923 - 1204 - 243 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - - <string>error_info</string> - - - - - - - - 2 - :) ###(:link - 1 - - 0 - - -20 - - - 2 - :) ###(:link - 1 - - 0 - - -5 - - - 2 - :) ###(:link - 1 - - 0 - - -9 - - - 2 - :) ###(:link - 1 - - 0 - - -34 - - - 2 - :) ###(:link - 1 - - 0 - - -8 - - - 2 - :) ##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads ###(:link - 1 - - 0 - - -28 - - - 2 - :) ###(:link - 1 - - 0 - - -32 - - - 2 - :) ###(:link - 1 - - 0 - - -24 - - - 2 - :) ###(:link - 1 - - 0 - - -16 - - - 2 - :) ###(:link - 1 - - 0 - - -29 - - - 2 - :) ###(:link - 1 - - 0 - - -31 - - - 2 - :) ##(:link - 1 - - 0 - - 39 - - reno_context - - - - - - - 2 - 05061ED1DD1B33224DE28BF86AB10D99286A48DC055D54A19FF93B36F22E8A90 - 3225446538 - 372 - 408 - ED09AD72D3766F261A0044B58B9B73AA355EB50B1A8F602E5EE7F68D0D928596 - 328425570 - 340 - 26 - - - - - - 0 - ../../../../boost/exception/diagnostic_information.hpp - 0 - 0 - - - - - <string>diagnostic_information</string> - - - - - - - - 2 - :) ##(:link - 1 - - 0 - - -30 - - - 2 - :) ##Headers ###(:link - 1 - - 0 - - 40 - - reno_context - - - - - - - 1 - 429F0DE3599A4CC08B9458E2AECA2EAC202AB3471554FE82C307493805E6676E - 4224422781 - 401 - 323 - - - - - - 0 - ../../../../boost/exception.hpp - 0 - 0 - - - - - <string>boost/exception.hpp</string> - - - exception_hpp - - - - - 2 - :) ###(:link - 1 - - 0 - - 41 - - reno_context - - - - - - - 1 - ECAD4A1E70A31D7F87F79F557D107AB0A3C5161CB370139974E08ECAFBE2D32F - 1816954312 - 457 - 323 - - - - - - 0 - ../../../../boost/exception/diagnostic_information.hpp - 0 - 0 - - - - - <string>boost/exception/diagnostic_information.hpp</string> - - - - - - - - 2 - :) ###(:link - 1 - - 0 - - -7 - - - 2 - :) ###(:link - 1 - - 0 - - -12 - - - 2 - :) ###(:link - 1 - - 0 - - -14 - - - 2 - :) ###(:link - 1 - - 0 - - -27 - - - 2 - :) ###(:link - 1 - - 0 - - -25 - - - 2 - :) ###(:link - 1 - - 0 - - -13 - - - 2 - :) ###(:link - 1 - - 0 - - -26 - - - 2 - :) ###(:link - 1 - - 0 - - -6 - - - 2 - :) #(:link - 1 - - 0 - - -33 - - - 2 - :) !!Synopsis `#include <(:link - 1 - - 0 - - -40 - - - 2 - :)> [@namespace boost { (:include - 1 - - 0 - - -27 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -25 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -13 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -12 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -41 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -26 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -7 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -6 - - - 2 - api pre_indent="4":) }@] !!Class exception (:include - 1 - - 0 - - -37 - - - 2 - :) !!Transporting of Arbitrary Data to the Catch Site (:include - 1 - - 0 - - -38 - - - 2 - :) (:include - 1 - - 0 - - -20 - - - 2 - :) (:include - 1 - - 0 - - -5 - - - 2 - :) (:include - 1 - - 0 - - -9 - - - 2 - :) (:include - 1 - - 0 - - -34 - - - 2 - :) (:include - 1 - - 0 - - -8 - - - 2 - :) !!Transporting of Exceptions between Threads (:include - 1 - - 0 - - -28 - - - 2 - :) (:include - 1 - - 0 - - -32 - - - 2 - :) (:include - 1 - - 0 - - -24 - - - 2 - :) (:include - 1 - - 0 - - -16 - - - 2 - :) (:include - 1 - - 0 - - -29 - - - 2 - :) (:include - 1 - - 0 - - -31 - - - 2 - :) !!Printing Diagnostic Information (:include - 1 - - 0 - - -39 - - - 2 - :) !!Throwing Exceptions (:include - 1 - - 0 - - -30 - - - 2 - :) - - - - - 0 - - -37 - - - - 1 - 2 - (:include include:) ---- !!!See Also: (:pagelist link="backlink" except_tags="exception,member" mod="w":) - - - - - 0 - - -38 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -39 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -40 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -41 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 42 - - reno_context - @@ -2296,7 +1482,7 @@ 0 - 43 + 36 reno_context @@ -2345,6 +1531,820 @@ (:include include:) (:auto also:) + + + 0 + + 37 + + reno_context + + + + + + + 2 + D1AA2FC554CD67A50917905B0E9CCA2EBC1A9BA97368757B36ADF8419756ECF1 + 85276724 + 4917 + 514 + A098B6FA5BC8E72E0E69C0323195FCC142AE807564C6892FCBD88588F2FBE049 + 2579522516 + 405 + 26 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>unknown_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 38 + + reno_context + + + + + + + 2 + FA5027D9799B8059059C23397F469D6EF6328DC23E92E0BE0FF5BE019A576174 + 1806359597 + 3234 + 506 + DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 + 1137981799 + 192 + 3036 + + + + + + 0 + ../../../../boost/exception/enable_current_exception.hpp + 0 + 0 + + + + + <string>enable_current_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 39 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>Index</string> + + + name_idx + + + + + + 1 + 2 + (:auto !:) (:pagelist fmt="index" except_tags="index,noindex" mod="w":) + + + + + 0 + + 40 + + reno_context + + + + + + + 2 + 7ACC4E316D4EDB3EC7AEC35FED3ADB47DDF75D575028D7BCD11C5233E4F4A277 + 4268848542 + 2333 + 457 + 61DE70107961C0B9A65674017F91FF85190CF84B4F3B0CA7AC04A7E16DE80B37 + 3187961206 + 2301 + 26 + + + + + + 0 + ../../../../boost/exception/enable_error_info.hpp + 0 + 0 + + + + + <string>enable_error_info</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 41 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>transporting of exceptions between threads</string> + + + tutorial_exception_ptr + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 42 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>boost exception</string> + + + boost-exception + + + + + + 113 + 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 types. 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 + + -41 + + + 2 + |copying:) of exception objects, implemented non-intrusively and automatically by the boost::(:link + 1 + + 0 + + 43 + + reno_context + + + + + + + 2 + 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A + 1770110914 + 587 + 1322 + 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D + 3929437933 + 361 + 213 + + + + + + 0 + ../../../../boost/throw_exception.hpp + 0 + 0 + + + + + <string>throw_exception</string> + + + + + + + + 2 + :) function. !!Contents #Tutorial ##(:link + 1 + + 0 + + -14 + + + 2 + mod="w":) ##(:link + 1 + + 0 + + -15 + + + 2 + mod="w":) ##(:link + 1 + + 0 + + -41 + + + 2 + mod="w":) ##(:link + 1 + + 0 + + -13 + + + 2 + mod="w":) #Documentation ##Class (:link + 1 + + 0 + + -19 + + + 2 + :) ##Transporting of Arbitrary Data to the Catch Site ###(:link + 1 + + 0 + + -20 + + + 2 + :) ###(:link + 1 + + 0 + + -21 + + + 2 + :) ###(:link + 1 + + 0 + + -22 + + + 2 + :) ###(:link + 1 + + 0 + + -9 + + + 2 + :) ###(:link + 1 + + 0 + + -40 + + + 2 + :) ###(:link + 1 + + 0 + + -8 + + + 2 + :) ##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads ###(:link + 1 + + 0 + + -5 + + + 2 + :) ###(:link + 1 + + 0 + + -38 + + + 2 + :) ###(:link + 1 + + 0 + + -23 + + + 2 + :) ###(:link + 1 + + 0 + + -11 + + + 2 + :) ###(:link + 1 + + 0 + + -6 + + + 2 + :) ###(:link + 1 + + 0 + + -37 + + + 2 + :) ##(:link + 1 + + 0 + + -24 + + + 2 + :) ##(:link + 1 + + 0 + + -43 + + + 2 + :) ##Headers ###(:link + 1 + + 0 + + -29 + + + 2 + :) ###(:link + 1 + + 0 + + -30 + + + 2 + :) ###(:link + 1 + + 0 + + -10 + + + 2 + :) ###(:link + 1 + + 0 + + -31 + + + 2 + :) ###(:link + 1 + + 0 + + -32 + + + 2 + :) ###(:link + 1 + + 0 + + -7 + + + 2 + :) ###(:link + 1 + + 0 + + -16 + + + 2 + :) ###(:link + 1 + + 0 + + -33 + + + 2 + :) ###(:link + 1 + + 0 + + -18 + + + 2 + :) ###(:link + 1 + + 0 + + -34 + + + 2 + :) #(:link + 1 + + 0 + + -39 + + + 2 + :) !!Synopsis `#include <(:link + 1 + + 0 + + -29 + + + 2 + :)> [@namespace boost { (:include + 1 + + 0 + + -7 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -16 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -33 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -31 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -30 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -18 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -10 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -34 + + + 2 + api pre_indent="4":) }@] !!Class exception (:include + 1 + + 0 + + -19 + + + 2 + :) !!Transporting of Arbitrary Data to the Catch Site (:include + 1 + + 0 + + -20 + + + 2 + :) (:include + 1 + + 0 + + -21 + + + 2 + :) (:include + 1 + + 0 + + -22 + + + 2 + :) (:include + 1 + + 0 + + -9 + + + 2 + :) (:include + 1 + + 0 + + -40 + + + 2 + :) (:include + 1 + + 0 + + -8 + + + 2 + :) !!Transporting of Exceptions between Threads (:include + 1 + + 0 + + -5 + + + 2 + :) (:include + 1 + + 0 + + -38 + + + 2 + :) (:include + 1 + + 0 + + -23 + + + 2 + :) (:include + 1 + + 0 + + -11 + + + 2 + :) (:include + 1 + + 0 + + -6 + + + 2 + :) (:include + 1 + + 0 + + -37 + + + 2 + :) !!Printing Diagnostic Information (:include + 1 + + 0 + + -24 + + + 2 + :) !!Throwing Exceptions (:include + 1 + + 0 + + -43 + + + 2 + :) + + + + + 0 + + -43 + + + + 1 + 2 + (:include include:) (:auto also:) + + @@ -2521,7 +2521,45 @@ - 0 + 9 + 2 + [@class (:link + 1 + + 0 + + -19 + + + 2 + :) { public: (:include + 1 + + 0 + + -35 + + + 2 + decl pre_indent="4":) protected: (:include + 1 + + 0 + + -36 + + + 2 + decl pre_indent="4":) (:include + 1 + + 0 + + -25 + + + 2 + decl pre_indent="4":) };@] @@ -2532,7 +2570,18 @@ - 0 + 3 + 2 + [@template <class Tag,class T> class (:link + 1 + + 0 + + -20 + + + 2 + :) { public: typedef T value_type; error_info( value_type const & ); };@] @@ -2719,45 +2768,7 @@ - 9 - 2 - [@class (:link - 1 - - 0 - - -37 - - - 2 - :) { public: (:include - 1 - - 0 - - -42 - - - 2 - decl pre_indent="4":) protected: (:include - 1 - - 0 - - -43 - - - 2 - decl pre_indent="4":) (:include - 1 - - 0 - - -10 - - - 2 - decl pre_indent="4":) };@] + 0 @@ -2768,18 +2779,7 @@ - 3 - 2 - [@template <class Tag,class T> class (:link - 1 - - 0 - - -38 - - - 2 - :) { public: typedef T value_type; error_info( value_type const & ); };@] + 0 @@ -2870,18 +2870,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -30 - - - 2 - decl:)@] + 0 @@ -2899,11 +2888,11 @@ 0 - -32 + -19 2 - decl:)@] + def:)@] @@ -2936,7 +2925,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -38 + + + 2 + decl:)@] @@ -2958,18 +2958,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -34 - - - 2 - decl:)@] + 0 @@ -2980,18 +2969,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -5 - - - 2 - decl:)@] + 0 @@ -3002,18 +2980,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -38 - - - 2 - decl:)@] + 0 @@ -3035,7 +3002,45 @@ - 0 + 9 + 2 + [@(:include + 1 + + 0 + + -20 + + + 2 + def:) (:include + 1 + + 0 + + -9 + + + 2 + decl:) (:include + 1 + + 0 + + -8 + + + 2 + decl:) (:include + 1 + + 0 + + -21 + + + 2 + decl:)@] @@ -3057,7 +3062,54 @@ - 0 + 11 + 2 + [@(:include + 1 + + 0 + + -37 + + + 2 + decl:) (:include + 1 + + 0 + + -5 + + + 2 + decl:) (:include + 1 + + 0 + + -11 + + + 2 + decl:) (:include + 1 + + 0 + + -23 + + + 2 + decl:) (:include + 1 + + 0 + + -6 + + + 2 + decl:)@] @@ -3134,45 +3186,7 @@ - 9 - 2 - [@(:include - 1 - - 0 - - -38 - - - 2 - def:) (:include - 1 - - 0 - - -9 - - - 2 - decl:) (:include - 1 - - 0 - - -8 - - - 2 - decl:) (:include - 1 - - 0 - - -20 - - - 2 - decl:)@] + 0 @@ -3183,54 +3197,7 @@ - 11 - 2 - [@(:include - 1 - - 0 - - -31 - - - 2 - decl:) (:include - 1 - - 0 - - -28 - - - 2 - decl:) (:include - 1 - - 0 - - -16 - - - 2 - decl:) (:include - 1 - - 0 - - -24 - - - 2 - decl:) (:include - 1 - - 0 - - -29 - - - 2 - decl:)@] + 0 @@ -3241,18 +3208,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -37 - - - 2 - def:)@] + 0 @@ -3274,7 +3230,54 @@ - 0 + 11 + 2 + [@#include <(:link + 1 + + 0 + + -16 + + + 2 + :)> #include <(:link + 1 + + 0 + + -33 + + + 2 + :)> #include <(:link + 1 + + 0 + + -30 + + + 2 + :)> #include <(:link + 1 + + 0 + + -18 + + + 2 + :)> #include <(:link + 1 + + 0 + + -34 + + + 2 + :)>@] @@ -3285,7 +3288,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -24 + + + 2 + decl:)@] @@ -3296,7 +3310,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -40 + + + 2 + decl:)@] @@ -3307,7 +3332,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -20 + + + 2 + decl:)@] @@ -3318,7 +3354,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -22 + + + 2 + decl:)@] @@ -3329,7 +3376,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -43 + + + 2 + decl:)@] @@ -3395,54 +3453,7 @@ - 11 - 2 - [@#include <(:link - 1 - - 0 - - -25 - - - 2 - :)> #include <(:link - 1 - - 0 - - -13 - - - 2 - :)> #include <(:link - 1 - - 0 - - -41 - - - 2 - :)> #include <(:link - 1 - - 0 - - -26 - - - 2 - :)> #include <(:link - 1 - - 0 - - -6 - - - 2 - :)>@] + 0 @@ -3453,18 +3464,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -39 - - - 2 - decl:)@] + 0 @@ -3511,9 +3511,9 @@ - 7 + 3 2 - [@template <class E, class Tag1, class T1, ..., class TagN, class TN> E const & (:link + [@typedef ---unspecified--- (:link 1 0 @@ -3522,25 +3522,7 @@ 2 - |operator<<:)( E const & x, (:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)< (:link - 1 - - 0 - - -38 - - - 2 - :)<Tag1,T1>, ..., (:link - 1 - - 0 - - -38 - - - 2 - :)<TagN,TN> > const & v );@] + :);@] @@ -3551,7 +3533,27 @@ - 0 + 5 + 2 + [@void (:link + 1 + + 0 + + -6 + + + 2 + :)( (:link + 1 + + 0 + + -5 + + + 2 + :) const & ep ); @@ -3580,7 +3582,7 @@ 0 - -38 + -20 2 @@ -3589,7 +3591,7 @@ 0 - -38 + -20 2 @@ -3598,7 +3600,7 @@ 0 - -38 + -20 2 @@ -3644,18 +3646,7 @@ - 3 - 2 - [@(:link - 1 - - 0 - - -10 - - - 2 - mod="m":)();@] + 0 @@ -3666,7 +3657,27 @@ - 0 + 5 + 2 + [@template <class T> (:link + 1 + + 0 + + -5 + + + 2 + :) (:link + 1 + + 0 + + -11 + + + 2 + :)( T const & e );@] @@ -3721,27 +3732,7 @@ - 5 - 2 - [@template <class T> (:link - 1 - - 0 - - -28 - - - 2 - :) (:link - 1 - - 0 - - -16 - - - 2 - :)( T const & e );@] + 0 @@ -3774,7 +3765,18 @@ - 0 + 3 + 2 + [@class + 1 + + 0 + + -19 + + + 2 + ;@] @@ -3785,9 +3787,9 @@ - 5 + 3 2 - [@template <class E, class Tag, class T> E const & (:link + [@template <class Tag,class T> class (:link 1 0 @@ -3796,16 +3798,7 @@ 2 - |operator<<:)( E const & x, (:link - 1 - - 0 - - -38 - - - 2 - :)<Tag,T> const & v );@] + :);@] @@ -3816,7 +3809,27 @@ - 0 + 5 + 2 + [@template <class E, class Tag, class T> E const & (:link + 1 + + 0 + + -21 + + + 2 + |operator<<:)( E const & x, (:link + 1 + + 0 + + -20 + + + 2 + :)<Tag,T> const & v );@] @@ -3827,7 +3840,36 @@ - 0 + 7 + 2 + [@template <class E, class Tag1, class T1, ..., class TagN, class TN> E const & (:link + 1 + + 0 + + -22 + + + 2 + |operator<<:)( E const & x, (:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)< (:link + 1 + + 0 + + -20 + + + 2 + :)<Tag1,T1>, ..., (:link + 1 + + 0 + + -20 + + + 2 + :)<TagN,TN> > const & v );@] @@ -3837,17 +3879,6 @@ -23 - - 0 - - - - - 0 - - -24 - - 5 2 @@ -3856,7 +3887,7 @@ 0 - -28 + -5 2 @@ -3865,13 +3896,35 @@ 0 - -24 + -23 2 :)();@] + + + 0 + + -24 + + + + 3 + 2 + [@std::string + 1 + + 0 + + -24 + + + 2 + ( std::exception const & x );@] + + 0 @@ -3880,7 +3933,18 @@ - 0 + 3 + 2 + [@(:link + 1 + + 0 + + -25 + + + 2 + mod="m":)();@] @@ -3913,18 +3977,7 @@ - 3 - 2 - [@typedef ---unspecified--- (:link - 1 - - 0 - - -28 - - - 2 - :);@] + 0 @@ -3935,27 +3988,7 @@ - 5 - 2 - [@void (:link - 1 - - 0 - - -29 - - - 2 - :)( (:link - 1 - - 0 - - -28 - - - 2 - :) const & ep ); + 0 @@ -3966,27 +3999,7 @@ - 5 - 2 - [@#ifdef BOOST_NO_EXCEPTIONS void (:link - 1 - - 0 - - -30 - - - 2 - :)( std::exception const & e ); // user defined #else template <class E> void (:link - 1 - - 0 - - -30 - - - 2 - :)( E const & e ); #endif@] + 0 @@ -3997,27 +4010,7 @@ - 5 - 2 - [@class (:link - 1 - - 0 - - -31 - - - 2 - :): public std::exception public boost:: - 1 - - 0 - - -37 - - - 2 - { ---unspecified--- };@] + 0 @@ -4028,18 +4021,7 @@ - 3 - 2 - [@template <class T> ---unspecified--- (:link - 1 - - 0 - - -32 - - - 2 - :)( T const & e );@] + 0 @@ -4061,18 +4043,7 @@ - 3 - 2 - [@template <class T> ---unspecified--- (:link - 1 - - 0 - - -34 - - - 2 - :)( T const & x );@] + 0 @@ -4083,7 +4054,18 @@ - 0 + 3 + 2 + [@virtual char const * (:link + 1 + + 0 + + -35 + + + 2 + mod="m":)() const throw();@] @@ -4094,7 +4076,36 @@ - 0 + 7 + 2 + [@(:link + 1 + + 0 + + -36 + + + 2 + mod="m":)(); (:link + 1 + + 0 + + -36 + + + 2 + mod="m":)( (:link + 1 + + 0 + + -19 + + + 2 + :) const & x );@] @@ -4105,9 +4116,9 @@ - 3 + 5 2 - [@class + [@class (:link 1 0 @@ -4116,7 +4127,16 @@ 2 - ;@] + :): public std::exception public boost:: + 1 + + 0 + + -19 + + + 2 + { ---unspecified--- };@] @@ -4129,7 +4149,7 @@ 3 2 - [@template <class Tag,class T> class (:link + [@template <class T> ---unspecified--- (:link 1 0 @@ -4138,7 +4158,7 @@ 2 - :);@] + :)( T const & e );@] @@ -4149,18 +4169,7 @@ - 3 - 2 - [@std::string - 1 - - 0 - - -39 - - - 2 - ( std::exception const & x );@] + 0 @@ -4171,7 +4180,18 @@ - 0 + 3 + 2 + [@template <class T> ---unspecified--- (:link + 1 + + 0 + + -40 + + + 2 + :)( T const & x );@] @@ -4193,18 +4213,7 @@ - 3 - 2 - [@virtual char const * (:link - 1 - - 0 - - -42 - - - 2 - mod="m":)() const throw();@] + 0 @@ -4215,9 +4224,9 @@ - 7 + 5 2 - [@(:link + [@#ifdef BOOST_NO_EXCEPTIONS void (:link 1 0 @@ -4226,7 +4235,7 @@ 2 - mod="m":)(); (:link + :)( std::exception const & e ); // user defined #else template <class E> void (:link 1 0 @@ -4235,16 +4244,7 @@ 2 - mod="m":)( (:link - 1 - - 0 - - -37 - - - 2 - :) const & x );@] + :)( E const & e ); #endif@] @@ -4269,27 +4269,45 @@ - 5 + 9 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link + (:auto !!!:) (:include synopsis:) The (:link 1 0 - -37 + -5 2 - :), or a type that derives (indirectly) from boost::(:link + :) type can be used to refer to a copy of an exception object. It is Default Constructible, Copy Constructible, Assignable and Equality Comparable; (:link 1 0 - -37 + -5 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:) + :)'s operations do not throw. Two instances of (:link + 1 + + 0 + + -5 + + + 2 + :) are equivalent and compare equal if and only if they refer to the same exception. The default constructor of (:link + 1 + + 0 + + -5 + + + 2 + :) produces the null value of the type. The null value is equivalent only to itself. @@ -4302,7 +4320,7 @@ 1 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (:auto !!!:) (:include synopsis:) !!!!Precondition: ep shall not be null. !!!!Throws: The exception to which ep refers. @@ -4333,7 +4351,7 @@ 0 - -20 + -21 2 @@ -4342,7 +4360,7 @@ 0 - -37 + -19 2 @@ -4351,7 +4369,7 @@ 0 - -38 + -20 2 @@ -4373,7 +4391,7 @@ 0 - -38 + -20 2 @@ -4382,7 +4400,7 @@ 0 - -37 + -19 2 @@ -4391,7 +4409,7 @@ 0 - -20 + -21 2 @@ -4406,18 +4424,9 @@ - 3 + 1 2 - (:auto !!!:) (:include decl:) !!!!Effects: Frees all resources associated with a boost::(:link - 1 - - 0 - - -37 - - - 2 - :) object. !!!!Throws: Nothing. + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -4428,9 +4437,304 @@ - 17 + 3 2 - (:auto !!!:) The following example demonstrates how errno can be stored in exception objects using Boost Exception: [@#include <(:link + (:auto !!!:) (:include synopsis:) !!!!Effects: As if try { throw e; } catch( ... ) { return (:link + 1 + + 0 + + -23 + + + 2 + :)(); } + + + + + 0 + + -12 + + + + 21 + 2 + (:auto !!!:) 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 + + -19 + + + 2 + :), and free the file_read function from the burden of storing the file name in exceptions it throws: [@#include <(:link + 1 + + 0 + + -29 + + + 2 + :)> #include <stdio.h> #include <errno.h> typedef boost::(:link + 1 + + 0 + + -20 + + + 2 + :)<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link + 1 + + 0 + + -19 + + + 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 + + -29 + + + 2 + :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> typedef boost::(:link + 1 + + 0 + + -20 + + + 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 + + -19 + + + 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 + + -19 + + + 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 + + -19 + + + 2 + :) object is that the file name is relevant to any failure that occurs in parse_file, ''even if the failure is unrelated to file I/O''. As usual, the stored data can be retrieved using (:link + 1 + + 0 + + -9 + + + 2 + :). + + + + + 0 + + -13 + + + + 21 + 2 + (:auto !!:) Class boost::(:link + 1 + + 0 + + -19 + + + 2 + :) provides a virtual member function (:link + 1 + + 0 + + -35 + + + 2 + mod="m":), 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 + + -29 + + + 2 + :)> #include <iostream> void f(); //throws unknown types that derive from boost::(:link + 1 + + 0 + + -19 + + + 2 + :). void g() { try { f(); } catch( boost::(:link + 1 + + 0 + + -19 + + + 2 + :) & e ) { std::cerr << e.(:link + 1 + + 0 + + -35 + + + 2 + mod="m":)(); } }@] The (:link + 1 + + 0 + + -35 + + + 2 + mod="m":) member function iterates over all data objects stored in the boost::(:link + 1 + + 0 + + -19 + + + 2 + :) through (:link + 1 + + 0 + + -21 + + + 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 + + -20 + + + 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 expected to return std::string and 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 + + -14 + + + + 11 + 2 + (:auto !!:) All exception types that derive from boost::(:link + 1 + + 0 + + -19 + + + 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 + + -19 + + + 2 + :) at the time of the throw, or at a later time. (:include + 1 + + 0 + + -26 + + + 2 + :) (:include + 1 + + 0 + + -12 + + + 2 + :) (:include + 1 + + 0 + + -17 + + + 2 + :) + + + + + 0 + + -15 + + + + 27 + 2 + (:auto !!:) Some exception hierarchies can not be modified to make boost::(:link + 1 + + 0 + + -19 + + + 2 + :) a base type. In this case, the (:link 1 0 @@ -4439,7 +4743,543 @@ 2 - :)> #include <errno.h> #include <iostream> typedef boost::(:link + :) function template can be used to make exception objects derive from boost::(:link + 1 + + 0 + + -19 + + + 2 + :) anyway. Here is an example: [@#include <(:link + 1 + + 0 + + -29 + + + 2 + :)> #include <stdexcept> typedef boost::(:link + 1 + + 0 + + -20 + + + 2 + :)<struct tag_std_range_min,size_t> std_range_min; typedef boost::(:link + 1 + + 0 + + -20 + + + 2 + :)<struct tag_std_range_max,size_t> std_range_max; typedef boost::(:link + 1 + + 0 + + -20 + + + 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 + + -40 + + + 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 + + -40 + + + 2 + :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link + 1 + + 0 + + -19 + + + 2 + :) and T. This makes it possible to use (:link + 1 + + 0 + + -21 + + + 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 + + -19 + + + 2 + :) &, so that (:link + 1 + + 0 + + -14 + + + 2 + |more information can be added to the exception at a later time:). + + + + + 0 + + -16 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -17 + + + + 13 + 2 + (:auto !!!:) 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 + + -33 + + + 2 + :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> #include <errno.h> typedef boost::(:link + 1 + + 0 + + -20 + + + 2 + :)<struct tag_file_name,std::string> file_name_info; typedef boost::(:link + 1 + + 0 + + -20 + + + 2 + :)<struct tag_function,char const *> function_info; typedef boost::(:link + 1 + + 0 + + -20 + + + 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 + + -19 + + + 2 + :) { }; boost::shared_ptr<FILE> file_open( char const * name, char const * mode ) { if( FILE * f=fopen(name,mode) ) return boost::shared_ptr<FILE>(f,fclose); else throw file_open_error() << file_name_info(name) << clib_failure("fopen",errno); }@] Note that the members of a boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:) are stored separately in exception objects; they can only be retrieved individually, using (:link + 1 + + 0 + + -9 + + + 2 + :). + + + + + 0 + + -18 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -19 + + + + 19 + 2 + (:auto !!!:) (:include synopsis:) Class boost::(:link + 1 + + 0 + + -19 + + + 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 + + -19 + + + 2 + :) can store data of arbitrary types, using the (:link + 1 + + 0 + + -20 + + + 2 + :) wrapper and (:link + 1 + + 0 + + -21 + + + 2 + |operator<<:). To retrieve data from a boost::(:link + 1 + + 0 + + -19 + + + 2 + :) object, use the (:link + 1 + + 0 + + -9 + + + 2 + :) function template. (:include + 1 + + 0 + + -36 + + + 2 + :) (:include + 1 + + 0 + + -25 + + + 2 + :) (:include + 1 + + 0 + + -35 + + + 2 + :) + + + + + 0 + + -20 + + + + 25 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: T must have accessible copy constructor and must not be a reference (there is no requirement that T's copy constructor does not throw.) !!!!Description: This class template is used to associate a Tag type with a value type T. Objects of type (:link + 1 + + 0 + + -20 + + + 2 + :)<Tag,T> can be passed to (:link + 1 + + 0 + + -21 + + + 2 + |operator<<:) to be stored in objects of type boost::(:link + 1 + + 0 + + -19 + + + 2 + :). !!!!Note: The header <(:link + 1 + + 0 + + -32 + + + 2 + :)> provides a declaration of the (:link + 1 + + 0 + + -20 + + + 2 + :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, like this: [@#include <(:link + 1 + + 0 + + -32 + + + 2 + :)> typedef boost::(:link + 1 + + 0 + + -20 + + + 2 + :)<struct tag_errno,int> errno_info;@] Of course, to actually add an (:link + 1 + + 0 + + -20 + + + 2 + :) object to (:link + 1 + + 0 + + -19 + + + 2 + mod="p":) using (:link + 1 + + 0 + + -21 + + + 2 + |operator<<:), or to retrieve it using (:link + 1 + + 0 + + -9 + + + 2 + :), you must first #include <(:link + 1 + + 0 + + -16 + + + 2 + :)>. + + + + + 0 + + -21 + + + + 7 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link + 1 + + 0 + + -19 + + + 2 + :), or a type that derives (indirectly) from boost::(:link + 1 + + 0 + + -19 + + + 2 + :). !!!!Effects: Stores a copy of v into x. If x already contains data of type (:link + 1 + + 0 + + -20 + + + 2 + :)<Tag,T>, that data is overwritten. !!!!Returns: x. (:include throws:) + + + + + 0 + + -22 + + + + 5 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link + 1 + + 0 + + -19 + + + 2 + :), or a type that derives (indirectly) from boost::(:link + 1 + + 0 + + -19 + + + 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 + + -23 + + + + 29 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link + 1 + + 0 + + -23 + + + 2 + :) function must not be called outside of a catch block. !!!!Returns: * An (:link + 1 + + 0 + + -5 + + + 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 + + -5 + + + 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 + + -23 + + + 2 + :) refer to the same exception object. * Correct implementation of (:link + 1 + + 0 + + -23 + + + 2 + :) may require compiler support, unless (:link 1 0 @@ -4448,12 +5288,168 @@ 2 + :) was used at the time the currently handled exception object was passed to throw. If (:link + 1 + + 0 + + -38 + + + 2 + :) was not used, and if the compiler does not provide the necessary support, then (:link + 1 + + 0 + + -23 + + + 2 + :) may return an (:link + 1 + + 0 + + -5 + + + 2 + :) that refers to an instance of (:link + 1 + + 0 + + -37 + + + 2 + :). In this case, if the original exception object derives from boost::(:link + 1 + + 0 + + -19 + + + 2 + :), then the boost::(:link + 1 + + 0 + + -19 + + + 2 + :) sub-object of the (:link + 1 + + 0 + + -37 + + + 2 + :) object is initialized by the boost::(:link + 1 + + 0 + + -19 + + + 2 + :) copy constructor. + + + + + 0 + + -24 + + + + 5 + 2 + (:auto !!!:) (:include synopsis:) !!!!Returns: If dynamic_cast<boost::(:link + 1 + + 0 + + -19 + + + 2 + :) const *>(&x) is not null, the returned string is initialized by a call to (:link + 1 + + 0 + + -35 + + + 2 + :); otherwise, the returned string combines the output of x.what() and typeid(x).name(). + + + + + 0 + + -25 + + + + 3 + 2 + (:auto !!!:) (:include decl:) !!!!Effects: Frees all resources associated with a boost::(:link + 1 + + 0 + + -19 + + + 2 + :) object. !!!!Throws: Nothing. + + + + + 0 + + -26 + + + + 17 + 2 + (:auto !!!:) The following example demonstrates how errno can be stored in exception objects using Boost Exception: [@#include <(:link + 1 + + 0 + + -29 + + + 2 + :)> #include <errno.h> #include <iostream> typedef boost::(:link + 1 + + 0 + + -20 + + + 2 :)<struct tag_errno,int> errno_info; //(1) class my_error: public boost::(:link 1 0 - -37 + -19 2 @@ -4462,7 +5458,7 @@ 0 - -38 + -20 2 @@ -4471,7 +5467,7 @@ 0 - -37 + -19 2 @@ -4480,7 +5476,7 @@ 0 - -20 + -21 2 @@ -4509,46 +5505,7 @@ 0 - -12 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -13 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -14 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -15 + -27 @@ -4559,7 +5516,7 @@ 0 - -24 + -23 2 @@ -4568,7 +5525,7 @@ 0 - -28 + -5 2 @@ -4577,7 +5534,7 @@ 0 - -26 + -18 2 @@ -4586,7 +5543,7 @@ 0 - -37 + -19 2 @@ -4595,7 +5552,7 @@ 0 - -28 + -5 2 @@ -4604,7 +5561,7 @@ 0 - -28 + -5 2 @@ -4613,7 +5570,7 @@ 0 - -24 + -23 2 @@ -4622,7 +5579,7 @@ 0 - -24 + -23 2 @@ -4631,7 +5588,7 @@ 0 - -29 + -6 2 @@ -4640,7 +5597,7 @@ 0 - -28 + -5 2 @@ -4649,7 +5606,7 @@ 0 - -29 + -6 2 @@ -4658,7 +5615,7 @@ 0 - -24 + -23 2 @@ -4667,7 +5624,7 @@ 0 - -28 + -5 2 @@ -4676,7 +5633,7 @@ 0 - -32 + -38 2 @@ -4685,7 +5642,7 @@ 0 - -28 + -5 2 @@ -4694,7 +5651,7 @@ 0 - -31 + -37 2 @@ -4703,7 +5660,7 @@ 0 - -24 + -23 2 @@ -4712,7 +5669,7 @@ 0 - -29 + -6 2 @@ -4723,29 +5680,7 @@ 0 - -16 - - - - 3 - 2 - (:auto !!!:) (:include synopsis:) !!!!Effects: As if try { throw e; } catch( ... ) { return (:link - 1 - - 0 - - -24 - - - 2 - :)(); } - - - - - 0 - - -17 + -28 @@ -4756,7 +5691,7 @@ 0 - -7 + -10 2 @@ -4765,7 +5700,7 @@ 0 - -25 + -16 2 @@ -4774,7 +5709,7 @@ 0 - -37 + -19 2 @@ -4783,7 +5718,7 @@ 0 - -32 + -38 2 @@ -4792,7 +5727,7 @@ 0 - -32 + -38 2 @@ -4801,741 +5736,13 @@ 0 - -37 + -19 2 :). - - - 0 - - -18 - - - - 21 - 2 - (:auto !!!:) 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 - - -37 - - - 2 - :), and free the file_read function from the burden of storing the file name in exceptions it throws: [@#include <(:link - 1 - - 0 - - -40 - - - 2 - :)> #include <stdio.h> #include <errno.h> typedef boost::(:link - 1 - - 0 - - -38 - - - 2 - :)<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link - 1 - - 0 - - -37 - - - 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 - - -40 - - - 2 - :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> typedef boost::(:link - 1 - - 0 - - -38 - - - 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 - - -37 - - - 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 - - -37 - - - 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 - - -37 - - - 2 - :) object is that the file name is relevant to any failure that occurs in parse_file, ''even if the failure is unrelated to file I/O''. As usual, the stored data can be retrieved using (:link - 1 - - 0 - - -9 - - - 2 - :). - - - - - 0 - - -19 - - - - 21 - 2 - (:auto !!:) Class boost::(:link - 1 - - 0 - - -37 - - - 2 - :) provides a virtual member function (:link - 1 - - 0 - - -42 - - - 2 - mod="m":), 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 - - -40 - - - 2 - :)> #include <iostream> void f(); //throws unknown types that derive from boost::(:link - 1 - - 0 - - -37 - - - 2 - :). void g() { try { f(); } catch( boost::(:link - 1 - - 0 - - -37 - - - 2 - :) & e ) { std::cerr << e.(:link - 1 - - 0 - - -42 - - - 2 - mod="m":)(); } }@] The (:link - 1 - - 0 - - -42 - - - 2 - mod="m":) member function iterates over all data objects stored in the boost::(:link - 1 - - 0 - - -37 - - - 2 - :) through (:link - 1 - - 0 - - -20 - - - 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 - - -38 - - - 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 expected to return std::string and 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 - - -20 - - - - 7 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link - 1 - - 0 - - -37 - - - 2 - :), or a type that derives (indirectly) from boost::(:link - 1 - - 0 - - -37 - - - 2 - :). !!!!Effects: Stores a copy of v into x. If x already contains data of type (:link - 1 - - 0 - - -38 - - - 2 - :)<Tag,T>, that data is overwritten. !!!!Returns: x. (:include throws:) - - - - - 0 - - -21 - - - - 11 - 2 - (:auto !!:) All exception types that derive from boost::(:link - 1 - - 0 - - -37 - - - 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 - - -37 - - - 2 - :) at the time of the throw, or at a later time. (:include - 1 - - 0 - - -11 - - - 2 - :) (:include - 1 - - 0 - - -18 - - - 2 - :) (:include - 1 - - 0 - - -23 - - - 2 - :) - - - - - 0 - - -22 - - - - 27 - 2 - (:auto !!:) Some exception hierarchies can not be modified to make boost::(:link - 1 - - 0 - - -37 - - - 2 - :) a base type. In this case, the (:link - 1 - - 0 - - -34 - - - 2 - :) function template can be used to make exception objects derive from boost::(:link - 1 - - 0 - - -37 - - - 2 - :) anyway. Here is an example: [@#include <(:link - 1 - - 0 - - -40 - - - 2 - :)> #include <stdexcept> typedef boost::(:link - 1 - - 0 - - -38 - - - 2 - :)<struct tag_std_range_min,size_t> std_range_min; typedef boost::(:link - 1 - - 0 - - -38 - - - 2 - :)<struct tag_std_range_max,size_t> std_range_max; typedef boost::(:link - 1 - - 0 - - -38 - - - 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 - - -34 - - - 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 - - -34 - - - 2 - :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link - 1 - - 0 - - -37 - - - 2 - :) and T. This makes it possible to use (:link - 1 - - 0 - - -20 - - - 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 - - -37 - - - 2 - :) &, so that (:link - 1 - - 0 - - -21 - - - 2 - |more information can be added to the exception at a later time:). - - - - - 0 - - -23 - - - - 13 - 2 - (:auto !!!:) 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 - - -13 - - - 2 - :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> #include <errno.h> typedef boost::(:link - 1 - - 0 - - -38 - - - 2 - :)<struct tag_file_name,std::string> file_name_info; typedef boost::(:link - 1 - - 0 - - -38 - - - 2 - :)<struct tag_function,char const *> function_info; typedef boost::(:link - 1 - - 0 - - -38 - - - 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 - - -37 - - - 2 - :) { }; boost::shared_ptr<FILE> file_open( char const * name, char const * mode ) { if( FILE * f=fopen(name,mode) ) return boost::shared_ptr<FILE>(f,fclose); else throw file_open_error() << file_name_info(name) << clib_failure("fopen",errno); }@] Note that the members of a boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:) are stored separately in exception objects; they can only be retrieved individually, using (:link - 1 - - 0 - - -9 - - - 2 - :). - - - - - 0 - - -24 - - - - 29 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link - 1 - - 0 - - -24 - - - 2 - :) function must not be called outside of a catch block. !!!!Returns: * An (:link - 1 - - 0 - - -28 - - - 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 - - -28 - - - 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 - - -24 - - - 2 - :) refer to the same exception object. * Correct implementation of (:link - 1 - - 0 - - -24 - - - 2 - :) may require compiler support, unless (:link - 1 - - 0 - - -32 - - - 2 - :) was used at the time the currently handled exception object was passed to throw. If (:link - 1 - - 0 - - -32 - - - 2 - :) was not used, and if the compiler does not provide the necessary support, then (:link - 1 - - 0 - - -24 - - - 2 - :) may return an (:link - 1 - - 0 - - -28 - - - 2 - :) that refers to an instance of (:link - 1 - - 0 - - -31 - - - 2 - :). In this case, if the original exception object derives from boost::(:link - 1 - - 0 - - -37 - - - 2 - :), then the boost::(:link - 1 - - 0 - - -37 - - - 2 - :) sub-object of the (:link - 1 - - 0 - - -31 - - - 2 - :) object is initialized by the boost::(:link - 1 - - 0 - - -37 - - - 2 - :) copy constructor. - - - - - 0 - - -25 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -26 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -27 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -28 - - - - 9 - 2 - (:auto !!!:) (:include synopsis:) The (:link - 1 - - 0 - - -28 - - - 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 - - -28 - - - 2 - :)'s operations do not throw. Two instances of (:link - 1 - - 0 - - -28 - - - 2 - :) are equivalent and compare equal if and only if they refer to the same exception. The default constructor of (:link - 1 - - 0 - - -28 - - - 2 - :) produces the null value of the type. The null value is equivalent only to itself. - - 0 @@ -5546,7 +5753,7 @@ 1 2 - (:auto !!!:) (:include synopsis:) !!!!Precondition: ep shall not be null. !!!!Throws: The exception to which ep refers. + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -5557,63 +5764,9 @@ - 13 + 1 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must derive publicly from std::exception. !!!!Effects: * If BOOST_NO_EXCEPTIONS is not defined, boost::(:link - 1 - - 0 - - -30 - - - 2 - :)(e) is equivalent to throw boost::(:link - 1 - - 0 - - -32 - - - 2 - :)(boost::(:link - 1 - - 0 - - -34 - - - 2 - :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link - 1 - - 0 - - -30 - - - 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 - 1 - - 0 - - -30 - - - 2 - are allowed to assume that the function never returns; therefore, if the user-defined - 1 - - 0 - - -30 - - - 2 - returns, the behavior is undefined. + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -5624,27 +5777,9 @@ - 5 + 1 2 - (:auto !!!:) (:include synopsis:) This type is used by the (:link - 1 - - 0 - - -28 - - - 2 - :) support in Boost Exception. Please see (:link - 1 - - 0 - - -24 - - - 2 - :). + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -5655,99 +5790,9 @@ - 21 + 1 2 - (:auto !!!:) (: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 - 1 - - 0 - - -28 - - - 2 - support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link - 1 - - 0 - - -32 - - - 2 - :)(my_exception());@] Unless (:link - 1 - - 0 - - -32 - - - 2 - :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link - 1 - - 0 - - -24 - - - 2 - :) may return an (:link - 1 - - 0 - - -28 - - - 2 - :) which refers to an instance of (:link - 1 - - 0 - - -31 - - - 2 - :). See (:link - 1 - - 0 - - -24 - - - 2 - :) for details. !!!!Note: Instead of using the throw keyword directly, it is preferable to call boost::(:link - 1 - - 0 - - -30 - - - 2 - :). This is guaranteed to throw an exception that derives from boost::(:link - 1 - - 0 - - -37 - - - 2 - :) and supports the - 1 - - 0 - - -28 - - - 2 - functionality. + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -5758,7 +5803,9 @@ - 0 + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -5769,27 +5816,9 @@ - 5 + 1 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: T must be a user-defined type with accessible no-throw copy constructor as per (15.5.1). !!!!Returns: * If T derives from boost:: - 1 - - 0 - - -37 - - - 2 - , the returned object is of type T and is a copy of x. * Otherwise, the returned object is of an unspecified type that derives publicly from both T and boost:: - 1 - - 0 - - -37 - - - 2 - . The T sub-object is initialized from x by the T copy constructor. !!!!Throws: Nothing. + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -5799,370 +5828,11 @@ -35 - - 11 - 2 - (:auto !!:) 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 - - -32 - - - 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 - - -30 - - - 2 - :) are guaranteed to derive from boost::(:link - 1 - - 0 - - -37 - - - 2 - :) and to support cloning. (:include - 1 - - 0 - - -17 - - - 2 - :) (:include - 1 - - 0 - - -15 - - - 2 - :) - - - - - 0 - - -36 - - - - 0 - - - - - 0 - - -37 - - - - 19 - 2 - (:auto !!!:) (:include synopsis:) Class boost::(:link - 1 - - 0 - - -37 - - - 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 - - -37 - - - 2 - :) can store data of arbitrary types, using the (:link - 1 - - 0 - - -38 - - - 2 - :) wrapper and (:link - 1 - - 0 - - -20 - - - 2 - |operator<<:). To retrieve data from a boost::(:link - 1 - - 0 - - -37 - - - 2 - :) object, use the (:link - 1 - - 0 - - -9 - - - 2 - :) function template. (:include - 1 - - 0 - - -43 - - - 2 - :) (:include - 1 - - 0 - - -10 - - - 2 - :) (:include - 1 - - 0 - - -42 - - - 2 - :) - - - - - 0 - - -38 - - - - 25 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: T must have accessible copy constructor and must not be a reference (there is no requirement that T's copy constructor does not throw.) !!!!Description: This class template is used to associate a Tag type with a value type T. Objects of type (:link - 1 - - 0 - - -38 - - - 2 - :)<Tag,T> can be passed to (:link - 1 - - 0 - - -20 - - - 2 - |operator<<:) to be stored in objects of type boost::(:link - 1 - - 0 - - -37 - - - 2 - :). !!!!Note: The header <(:link - 1 - - 0 - - -14 - - - 2 - :)> provides a declaration of the (:link - 1 - - 0 - - -38 - - - 2 - :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, like this: [@#include <(:link - 1 - - 0 - - -14 - - - 2 - :)> typedef boost::(:link - 1 - - 0 - - -38 - - - 2 - :)<struct tag_errno,int> errno_info;@] Of course, to actually add an (:link - 1 - - 0 - - -38 - - - 2 - :) object to (:link - 1 - - 0 - - -37 - - - 2 - mod="p":) using (:link - 1 - - 0 - - -20 - - - 2 - |operator<<:), or to retrieve it using (:link - 1 - - 0 - - -9 - - - 2 - :), you must first #include <(:link - 1 - - 0 - - -25 - - - 2 - :)>. - - - - - 0 - - -39 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Returns: If dynamic_cast<boost::(:link - 1 - - 0 - - -37 - - - 2 - :) const *>(&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 - - -40 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -41 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -42 - - 15 2 (:auto !!!:) (:include decl:) !!!!Returns: A string representation of all data stored in the boost::(:link 1 - - 0 - - -37 - - - 2 - :) object by the (:link - 1 - - 0 - - -20 - - - 2 - |operator<<:) function. See "(:link - 1 0 @@ -6170,12 +5840,30 @@ 2 + :) object by the (:link + 1 + + 0 + + -21 + + + 2 + |operator<<:) function. See "(:link + 1 + + 0 + + -13 + + + 2 mod="w":)" for details. !!!!Throws: Nothing. !!!!Notes: *The return value remains valid until the exception object from which it was obtained is destroyed or modified. *The header 1 0 - -41 + -30 2 @@ -6184,7 +5872,7 @@ 0 - -39 + -24 2 @@ -6193,7 +5881,7 @@ 0 - -42 + -35 2 @@ -6202,7 +5890,7 @@ 0 - -37 + -19 2 @@ -6213,7 +5901,7 @@ 0 - -43 + -36 @@ -6224,7 +5912,7 @@ 0 - -37 + -19 2 @@ -6233,7 +5921,7 @@ 0 - -37 + -19 2 @@ -6242,13 +5930,325 @@ 0 - -20 + -21 2 |operator<<:), including data that is added at a future time. !!!!Throws: Nothing. + + + 0 + + -37 + + + + 5 + 2 + (:auto !!!:) (:include synopsis:) This type is used by the (:link + 1 + + 0 + + -5 + + + 2 + :) support in Boost Exception. Please see (:link + 1 + + 0 + + -23 + + + 2 + :). + + + + + 0 + + -38 + + + + 21 + 2 + (:auto !!!:) (: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 + 1 + + 0 + + -5 + + + 2 + support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link + 1 + + 0 + + -38 + + + 2 + :)(my_exception());@] Unless (:link + 1 + + 0 + + -38 + + + 2 + :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link + 1 + + 0 + + -23 + + + 2 + :) may return an (:link + 1 + + 0 + + -5 + + + 2 + :) which refers to an instance of (:link + 1 + + 0 + + -37 + + + 2 + :). See (:link + 1 + + 0 + + -23 + + + 2 + :) for details. !!!!Note: Instead of using the throw keyword directly, it is preferable to call boost::(:link + 1 + + 0 + + -43 + + + 2 + :). This is guaranteed to throw an exception that derives from boost::(:link + 1 + + 0 + + -19 + + + 2 + :) and supports the + 1 + + 0 + + -5 + + + 2 + functionality. + + + + + 0 + + -39 + + + + 0 + + + + + 0 + + -40 + + + + 5 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: T must be a user-defined type with accessible no-throw copy constructor as per (15.5.1). !!!!Returns: * If T derives from boost:: + 1 + + 0 + + -19 + + + 2 + , the returned object is of type T and is a copy of x. * Otherwise, the returned object is of an unspecified type that derives publicly from both T and boost:: + 1 + + 0 + + -19 + + + 2 + . The T sub-object is initialized from x by the T copy constructor. !!!!Throws: Nothing. + + + + + 0 + + -41 + + + + 11 + 2 + (:auto !!:) 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 + + -38 + + + 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 + + -43 + + + 2 + :) are guaranteed to derive from boost::(:link + 1 + + 0 + + -19 + + + 2 + :) and to support cloning. (:include + 1 + + 0 + + -28 + + + 2 + :) (:include + 1 + + 0 + + -27 + + + 2 + :) + + + + + 0 + + -42 + + + + 0 + + + + + 0 + + -43 + + + + 13 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must derive publicly from std::exception. !!!!Effects: * If BOOST_NO_EXCEPTIONS is not defined, boost::(:link + 1 + + 0 + + -43 + + + 2 + :)(e) is equivalent to throw boost::(:link + 1 + + 0 + + -38 + + + 2 + :)(boost::(:link + 1 + + 0 + + -40 + + + 2 + :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link + 1 + + 0 + + -43 + + + 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 + 1 + + 0 + + -43 + + + 2 + are allowed to assume that the function never returns; therefore, if the user-defined + 1 + + 0 + + -43 + + + 2 + returns, the behavior is undefined. + + @@ -6271,9 +6271,7 @@ - 1 - 2 - !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. + 0 @@ -6438,9 +6436,7 @@ - 1 - 2 - !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. + 0 @@ -6451,7 +6447,9 @@ - 0 + 1 + 2 + !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. @@ -6462,7 +6460,9 @@ - 0 + 1 + 2 + !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. @@ -6718,27 +6718,18 @@ - 5 + 3 2 `#include <(:link 1 0 - -13 + -18 2 - :)> [@namespace boost { (:include - 1 - - 0 - - -5 - - - 2 - decl pre_indent="4":) }@] + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -6749,27 +6740,18 @@ - 5 + 3 2 - [@#include <(:link + `#include <(:link 1 0 - -7 + -18 2 - :)> #include <(:link - 1 - - 0 - - -12 - - - 2 - :)> #include <exception> namespace boost { (:include api pre_indent="4":) }@] + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -6780,18 +6762,9 @@ - 3 + 1 2 - [@#include <(:link - 1 - - 0 - - -27 - - - 2 - :)> namespace boost { (:include api pre_indent="4":) }@] + [@namespace boost { (:include api pre_indent="4":) }@] @@ -6809,7 +6782,7 @@ 0 - -25 + -16 2 @@ -6831,7 +6804,7 @@ 0 - -25 + -16 2 @@ -6845,28 +6818,6 @@ -10 - - 0 - - - - - 0 - - -11 - - - - 0 - - - - - 0 - - -12 - - 3 2 @@ -6875,13 +6826,46 @@ 0 - -27 + -7 2 :)> namespace boost { (:include api pre_indent="4":) }@] + + + 0 + + -11 + + + + 3 + 2 + `#include <(:link + 1 + + 0 + + -18 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -12 + + + + 0 + + 0 @@ -6890,9 +6874,7 @@ - 1 - 2 - [@#include <boost/tuple/tuple.hpp> namespace boost { (:include api pre_indent="4":) }@] + 0 @@ -6903,9 +6885,7 @@ - 1 - 2 - [@namespace boost { (:include api pre_indent="4":) }@] + 0 @@ -6929,16 +6909,16 @@ 3 2 - `#include <(:link + [@#include <(:link 1 0 - -26 + -7 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + :)> #include <boost/current_function.hpp> #include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] @@ -6960,7 +6940,18 @@ - 0 + 3 + 2 + [@#include <(:link + 1 + + 0 + + -7 + + + 2 + :)> namespace boost { (:include api pre_indent="4":) }@] @@ -6971,7 +6962,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -7 + + + 2 + :)> [@namespace boost { (:include def pre_indent="4":) }@] @@ -6989,11 +6991,11 @@ 0 - -25 + -16 2 - :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] + :)> [@namespace boost { (:include def pre_indent="4":) }@] @@ -7004,7 +7006,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -16 + + + 2 + :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7015,7 +7028,27 @@ - 0 + 5 + 2 + `#include <(:link + 1 + + 0 + + -33 + + + 2 + :)> [@namespace boost { (:include + 1 + + 0 + + -22 + + + 2 + decl pre_indent="4":) }@] @@ -7026,7 +7059,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -18 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7044,7 +7088,7 @@ 0 - -26 + -30 2 @@ -7059,18 +7103,7 @@ - 3 - 2 - [@#include <(:link - 1 - - 0 - - -27 - - - 2 - :)> #include <boost/current_function.hpp> #include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] + 0 @@ -7081,18 +7114,7 @@ - 3 - 2 - [@#include <(:link - 1 - - 0 - - -27 - - - 2 - :)> namespace boost { (:include api pre_indent="4":) }@] + 0 @@ -7103,9 +7125,7 @@ - 1 - 2 - [@namespace boost { (:include api pre_indent="4":) }@] + 0 @@ -7116,18 +7136,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -26 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -7138,18 +7147,9 @@ - 3 + 1 2 - `#include <(:link - 1 - - 0 - - -26 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + [@(:include api:)@] @@ -7160,18 +7160,9 @@ - 3 + 1 2 - `#include <(:link - 1 - - 0 - - -6 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + [@#include <exception> namespace boost { (:include api pre_indent="4":) }@] @@ -7184,16 +7175,16 @@ 3 2 - `#include <(:link + [@#include <(:link 1 0 - -26 + -7 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + :)> namespace boost { (:include api pre_indent="4":) }@] @@ -7204,18 +7195,9 @@ - 3 + 1 2 - `#include <(:link - 1 - - 0 - - -7 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + [@namespace boost { (:include api pre_indent="4":) }@] @@ -7226,7 +7208,9 @@ - 0 + 1 + 2 + [@#include <boost/tuple/tuple.hpp> namespace boost { (:include api pre_indent="4":) }@] @@ -7237,18 +7221,27 @@ - 3 + 5 2 - `#include <(:link + [@#include <(:link 1 0 - -12 + -10 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + :)> #include <(:link + 1 + + 0 + + -31 + + + 2 + :)> #include <exception> namespace boost { (:include api pre_indent="4":) }@] @@ -7288,11 +7281,11 @@ 0 - -27 + -18 2 - :)> [@namespace boost { (:include def pre_indent="4":) }@] + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7310,35 +7303,24 @@ 0 - -25 - - - 2 - :)> [@namespace boost { (:include def pre_indent="4":) }@] - - - - - 0 - - -39 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -41 + -10 2 :)> [@namespace boost { (:include decl pre_indent="4":) }@] + + + 0 + + -39 + + + + 0 + + 0 @@ -7347,9 +7329,18 @@ - 1 + 3 2 - [@(:include api:)@] + `#include <(:link + 1 + + 0 + + -31 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7360,9 +7351,7 @@ - 1 - 2 - [@#include <exception> namespace boost { (:include api pre_indent="4":) }@] + 0 @@ -7384,7 +7373,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -34 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7541,7 +7541,7 @@ - -36 + -42 @@ -7558,7 +7558,7 @@ - -35 + -41 @@ -7575,7 +7575,7 @@ - -21 + -14 @@ -7592,7 +7592,7 @@ - -33 + -39 @@ -7616,7 +7616,7 @@ - -6 + -34 @@ -7640,7 +7640,7 @@ - -15 + -27 @@ -7664,7 +7664,7 @@ - -41 + -30 @@ -7688,7 +7688,7 @@ - -22 + -15 @@ -7712,7 +7712,7 @@ - -12 + -31 @@ -7736,7 +7736,7 @@ - -17 + -28 @@ -7784,7 +7784,7 @@ - -7 + -10 @@ -7808,7 +7808,7 @@ - -40 + -29 @@ -7836,7 +7836,7 @@ - -32 + -38 @@ -7864,7 +7864,7 @@ - -34 + -40 @@ -7888,7 +7888,7 @@ - -26 + -18 @@ -7916,7 +7916,7 @@ - -39 + -24 @@ -7944,7 +7944,7 @@ - -30 + -43 @@ -7968,7 +7968,7 @@ - -27 + -7 @@ -7992,7 +7992,7 @@ - -14 + -32 @@ -8016,7 +8016,7 @@ - -25 + -16 @@ -8040,7 +8040,7 @@ - -13 + -33 @@ -8064,7 +8064,7 @@ - -18 + -12 @@ -8088,7 +8088,7 @@ - -19 + -13 @@ -8116,7 +8116,7 @@ - -38 + -20 @@ -8172,7 +8172,7 @@ - -20 + -21 @@ -8200,7 +8200,7 @@ - -16 + -11 @@ -8228,7 +8228,7 @@ - -31 + -37 @@ -8256,7 +8256,7 @@ - -24 + -23 @@ -8284,7 +8284,7 @@ - -29 + -6 @@ -8312,7 +8312,7 @@ - -28 + -5 @@ -8340,7 +8340,7 @@ - -5 + -22 @@ -8364,7 +8364,7 @@ - -11 + -26 @@ -8388,7 +8388,7 @@ - -23 + -17 @@ -8416,7 +8416,7 @@ - -37 + -19 @@ -8452,7 +8452,7 @@ - -10 + -25 @@ -8484,7 +8484,7 @@ - -42 + -35 @@ -8516,7 +8516,7 @@ - -43 + -36 @@ -8547,7 +8547,7 @@ -5 - error_info,free,function,operator<<,operator<</tuple + exception_ptr,type @@ -8556,7 +8556,7 @@ -6 - boost/throw_exception.hpp,header,throw_exception + exception_ptr,free,function,rethrow_exception @@ -8565,7 +8565,7 @@ -7 - boost/exception/enable_current_exception.hpp,enable_current_exception,exception_ptr,header + boost/exception/exception.hpp,exception,header @@ -8592,7 +8592,7 @@ -10 - exception,exception::~exception,function,member + boost/exception/enable_current_exception.hpp,enable_current_exception,exception_ptr,header @@ -8601,7 +8601,7 @@ -11 - noalso,noindex,tutorial + copy_exception,exception_ptr,free,function @@ -8610,7 +8610,7 @@ -12 - boost/exception/enable_error_info.hpp,enable_error_info,error_info,header + noalso,noindex,tutorial @@ -8619,7 +8619,7 @@ -13 - boost/exception/info_tuple.hpp,error_info,header,info_tuple + tutorial @@ -8628,7 +8628,7 @@ -14 - boost/exception/error_info.hpp,error_info,header + tutorial @@ -8637,7 +8637,7 @@ -15 - noalso,noindex,tutorial + tutorial @@ -8646,7 +8646,7 @@ -16 - copy_exception,exception_ptr,free,function + boost/exception/info.hpp,error_info,header,info @@ -8664,7 +8664,7 @@ -18 - noalso,noindex,tutorial + boost/exception_ptr.hpp,exception_ptr,header @@ -8673,7 +8673,7 @@ -19 - tutorial + exception,type @@ -8682,7 +8682,7 @@ -20 - error_info,free,function,operator<<,operator<</exception + error_info,free,type @@ -8691,7 +8691,7 @@ -21 - tutorial + error_info,free,function,operator<<,operator<</exception @@ -8700,7 +8700,7 @@ -22 - tutorial + error_info,free,function,operator<<,operator<</tuple @@ -8709,7 +8709,7 @@ -23 - noalso,noindex,tutorial + current_exception,exception_ptr,free,function @@ -8718,7 +8718,7 @@ -24 - current_exception,exception_ptr,free,function + diagnostic_information,free,function @@ -8727,7 +8727,7 @@ -25 - boost/exception/info.hpp,error_info,header,info + exception,exception::~exception,function,member @@ -8736,7 +8736,7 @@ -26 - boost/exception_ptr.hpp,exception_ptr,header + noalso,noindex,tutorial @@ -8745,7 +8745,7 @@ -27 - boost/exception/exception.hpp,exception,header + noalso,noindex,tutorial @@ -8754,7 +8754,7 @@ -28 - exception_ptr,type + noalso,noindex,tutorial @@ -8763,7 +8763,7 @@ -29 - exception_ptr,free,function,rethrow_exception + boost/exception.hpp,header @@ -8772,7 +8772,7 @@ -30 - free,function,throw_exception + boost/exception/diagnostic_information.hpp,diagnostic_information,header @@ -8781,7 +8781,7 @@ -31 - exception_ptr,type,unknown_exception + boost/exception/enable_error_info.hpp,enable_error_info,error_info,header @@ -8790,7 +8790,7 @@ -32 - enable_current_exception,exception_ptr,free,function + boost/exception/error_info.hpp,error_info,header @@ -8799,7 +8799,7 @@ -33 - index,noindex + boost/exception/info_tuple.hpp,error_info,header,info_tuple @@ -8808,7 +8808,7 @@ -34 - enable_error_info,error_info,free,function + boost/throw_exception.hpp,header,throw_exception @@ -8817,7 +8817,7 @@ -35 - tutorial + diagnostic_information,exception,exception::diagnostic_information,function,member @@ -8826,7 +8826,7 @@ -36 - noindex + exception,exception::exception,function,member @@ -8835,7 +8835,7 @@ -37 - exception,type + exception_ptr,type,unknown_exception @@ -8844,7 +8844,7 @@ -38 - error_info,free,type + enable_current_exception,exception_ptr,free,function @@ -8853,7 +8853,7 @@ -39 - diagnostic_information,free,function + index,noindex @@ -8862,7 +8862,7 @@ -40 - boost/exception.hpp,header + enable_error_info,error_info,free,function @@ -8871,7 +8871,7 @@ -41 - boost/exception/diagnostic_information.hpp,diagnostic_information,header + tutorial @@ -8880,7 +8880,7 @@ -42 - diagnostic_information,exception,exception::diagnostic_information,function,member + noindex @@ -8889,7 +8889,7 @@ -43 - exception,exception::exception,function,member + free,function,throw_exception diff --git a/doc/throw_exception.html b/doc/throw_exception.html index 63861ab..27e7b17 100644 --- a/doc/throw_exception.html +++ b/doc/throw_exception.html @@ -47,7 +47,7 @@ boost diff --git a/doc/tutorial_diagnostic_information.html b/doc/tutorial_diagnostic_information.html index 4907207..50524fe 100644 --- a/doc/tutorial_diagnostic_information.html +++ b/doc/tutorial_diagnostic_information.html @@ -3,7 +3,7 @@ - tutorial: diagnostic information + diagnostic information @@ -19,7 +19,7 @@ -

Tutorial: Diagnostic Information

+

Diagnostic Information

Class boost::exception provides a virtual member function diagnostic_information, 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 <boost/exception.hpp>
diff --git a/doc/tutorial_enable_error_info.html b/doc/tutorial_enable_error_info.html
index 8eaab4d..e0e8cd3 100644
--- a/doc/tutorial_enable_error_info.html
+++ b/doc/tutorial_enable_error_info.html
@@ -3,7 +3,7 @@
 
 
 	
-	tutorial: integrating boost exception in existing exception class hierarchies
+	integrating boost exception in existing exception class hierarchies
 	
 
 
@@ -19,7 +19,7 @@
 
 
 
-

Tutorial: Integrating Boost Exception in Existing Exception Class Hierarchies

+

Integrating Boost Exception in Existing Exception Class Hierarchies

Some exception hierarchies can not be modified to make boost::exception a base type. In this case, the enable_error_info function template can be used to make exception objects derive from boost::exception anyway. Here is an example:

#include <boost/exception.hpp>
diff --git a/doc/tutorial_exception_ptr.html b/doc/tutorial_exception_ptr.html
index 892b951..52c1a63 100644
--- a/doc/tutorial_exception_ptr.html
+++ b/doc/tutorial_exception_ptr.html
@@ -3,7 +3,7 @@
 
 
 	
-	tutorial: transporting of exceptions between threads
+	transporting of exceptions between threads
 	
 
 
@@ -19,12 +19,12 @@
 
 
 
-

Tutorial: Transporting of Exceptions Between Threads

+

Transporting of Exceptions Between Threads

Boost Exception supports transporting of exception objects between threads through cloning. This system is similar to N2179, but because Boost Exception can not rely on language support, the use of enable_current_exception at the time of the throw is required in order to use cloning.

Note:

All exceptions emitted by the familiar function boost::throw_exception are guaranteed to derive from boost::exception and to support cloning.

-

Tutorial: Using enable_current_exception at the Time of the Throw

+

Using enable_current_exception at the Time of the Throw

Here is how cloning can be enabled in a throw-expression (15.1):

#include <boost/exception/enable_current_exception.hpp>
@@ -44,7 +44,7 @@ file_read( FILE * f, void * buffer, size_t size )
             errno_info(errno);
     }

Of course, enable_current_exception may be used with any exception type; there is no requirement that it should derive from boost::exception.

-

Tutorial: Cloning and Re-Throwing an Exception

+

Cloning and Re-Throwing an Exception

When you catch an exception, you can call current_exception to get an exception_ptr object:

#include <boost/exception_ptr.hpp>
diff --git a/doc/tutorial_transporting_data.html b/doc/tutorial_transporting_data.html
index a8e5689..57fe771 100644
--- a/doc/tutorial_transporting_data.html
+++ b/doc/tutorial_transporting_data.html
@@ -3,7 +3,7 @@
 
 
 	
-	tutorial: transporting of arbitrary data to the catch site
+	transporting of arbitrary data to the catch site
 	
 
 
@@ -19,10 +19,10 @@
 
 
 
-

Tutorial: Transporting of Arbitrary Data to the Catch Site

+

Transporting of Arbitrary Data to the Catch Site

All exception types that derive from boost::exception 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::exception at the time of the throw, or at a later time.

-

Tutorial: Adding of Arbitrary Data at the Point of the Throw

+

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 <boost/exception.hpp>
@@ -60,7 +60,7 @@ g()
         }
     }

The get_error_info function template is instantiated with the typedef from (1), and is passed an exception object of a polymorphic type. If the exception object contains the requested value, the returned shared_ptr will point to it; otherwise an empty shared_ptr is returned.

-

Tutorial: Adding of Arbitrary Data to Active Exception Objects

+

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>
@@ -141,7 +141,7 @@ parse_file( char const * file_name )
     }

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::exception object, stores the file name, and re-throws using a throw-expression with no operand (15.1.6). The rationale for catching any boost::exception 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 get_error_info.

-

Tutorial: Adding Grouped Data to Exceptions

+

Adding Grouped Data to Exceptions

The code snippet below demonstrates how boost::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 <boost/exception/info_tuple.hpp>
@@ -171,7 +171,7 @@ file_open( char const * name, char const * mode )