diff --git a/doc/boost_exception_all_hpp.html b/doc/boost_exception_all_hpp.html index 0e932d4..0757084 100644 --- a/doc/boost_exception_all_hpp.html +++ b/doc/boost_exception_all_hpp.html @@ -28,14 +28,17 @@ #include <boost/exception/get_error_info.hpp> #include <boost/exception/info.hpp> #include <boost/exception/info_tuple.hpp> -#include <boost/exception_ptr.hpp> #include <boost/exception/errinfo_api_function.hpp> #include <boost/exception/errinfo_at_line.hpp> #include <boost/exception/errinfo_errno.hpp> #include <boost/exception/errinfo_file_handle.hpp> #include <boost/exception/errinfo_file_name.hpp> #include <boost/exception/errinfo_file_open_mode.hpp> -#include <boost/exception/errinfo_type_info_name.hpp> +#include <boost/exception/errinfo_type_info_name.hpp> +#ifndef BOOST_NO_EXCEPTIONS +#include <boost/exception/errinfo_nested_exception.hpp> +#include <boost/exception_ptr.hpp> +#endif

See Also:

boost/exception.hpp
diff --git a/doc/boost_exception_errinfo_nested_exception_hpp.html b/doc/boost_exception_errinfo_nested_exception_hpp.html new file mode 100644 index 0000000..ea34b07 --- /dev/null +++ b/doc/boost_exception_errinfo_nested_exception_hpp.html @@ -0,0 +1,56 @@ + + + + + boost/exception/errinfo_nested_exception.hpp + + + +
+
+
+
+ +

Boost Exception

+
+ + + +

boost/exception/errinfo_nested_exception.hpp

+
+

Synopsis

+
#include <boost/exception/error_info.hpp>
+
+namespace
+boost
+    {
+    typedef ---unspecified--- exception_ptr;
+    typedef error_info<struct errinfo_nested_exception_,exception_ptr> errinfo_nested_exception;
+    }
+
+ + + + +
+
+
+ + diff --git a/doc/boost_exception_error_info_hpp.html b/doc/boost_exception_error_info_hpp.html index fe6cd10..ee6643b 100644 --- a/doc/boost_exception_error_info_hpp.html +++ b/doc/boost_exception_error_info_hpp.html @@ -37,6 +37,7 @@ boost boost/exception/errinfo_file_handle.hpp
boost/exception/errinfo_file_name.hpp
boost/exception/errinfo_file_open_mode.hpp
+
boost/exception/errinfo_nested_exception.hpp
boost/exception/errinfo_type_info_name.hpp
error_info
Synopsis
diff --git a/doc/configuration_macros.html b/doc/configuration_macros.html index 83b17fd..e229a8f 100644 --- a/doc/configuration_macros.html +++ b/doc/configuration_macros.html @@ -35,6 +35,7 @@

See Also:

diff --git a/doc/errinfo_nested_exception.html b/doc/errinfo_nested_exception.html new file mode 100644 index 0000000..334d1c1 --- /dev/null +++ b/doc/errinfo_nested_exception.html @@ -0,0 +1,56 @@ + + + + + errinfo_nested_exception + + + +
+
+
+
+ +

Boost Exception

+
+ + + +

errinfo_nested_exception

+
+

#include <boost/exception/errinfo_nested_exception.hpp>

+
#include <boost/exception/error_info.hpp>
+
+namespace
+boost
+    {
+    typedef ---unspecified--- exception_ptr;
+    typedef error_info<struct errinfo_nested_exception_,exception_ptr> errinfo_nested_exception;
+    }
+

This type is designed to be used as a standard error_info instance for transporting (in exceptions deriving from boost::exception) an exception_ptr to an exception nested into another exception.

+
+ + + + +
+
+
+ + diff --git a/doc/error_info.html b/doc/error_info.html index d6b21eb..1ac72b6 100644 --- a/doc/error_info.html +++ b/doc/error_info.html @@ -67,6 +67,7 @@ typedef boost::error_info<struct tag_errno,int& errinfo_file_handle
errinfo_file_name
errinfo_file_open_mode
+
errinfo_nested_exception
errinfo_type_info_name

diff --git a/doc/exception.html b/doc/exception.html index 7ad5346..553ea44 100644 --- a/doc/exception.html +++ b/doc/exception.html @@ -40,38 +40,22 @@ boost

To retrieve data from a boost::exception object, use the get_error_info function template.


See Also:

-
Boost Exception
-
boost/exception/diagnostic_information.hpp
-
boost/exception/exception.hpp
-
Configuration Macros
+
Configuration Macros
current_exception
current_exception_diagnostic_information
Diagnostic Information
diagnostic_information
diagnostic_information_what
-
Exception Types as Simple Semantic Tags
enable_current_exception
enable_error_info
-
errinfo_api_function
-
errinfo_at_line
-
errinfo_errno
-
errinfo_file_handle
-
errinfo_file_name
-
errinfo_file_open_mode
-
errinfo_type_info_name
error_info
-
exception/operator<<
-
exception::exception
-
exception::~exception
exception_ptr
Frequently Asked Questions
get_error_info
-
Integrating Boost Exception in Existing Exception Class Hierarchies
Motivation
Transporting of Arbitrary Data to the Catch Site
Transporting of Exceptions Between Threads
tuple/operator<<
-
Using Virtual Inheritance in Exception Types
unknown_exception
diff --git a/doc/exception_ptr.html b/doc/exception_ptr.html index a5600b3..f25784c 100644 --- a/doc/exception_ptr.html +++ b/doc/exception_ptr.html @@ -41,6 +41,7 @@ boost

See Also:

Boost Exception
+
boost/exception/errinfo_nested_exception.hpp
boost/exception_ptr.hpp
copy_exception
current_exception
diff --git a/doc/headers.html b/doc/headers.html index 2011fcf..2fafbbc 100644 --- a/doc/headers.html +++ b/doc/headers.html @@ -32,6 +32,7 @@
boost/exception/errinfo_file_handle.hpp
boost/exception/errinfo_file_name.hpp
boost/exception/errinfo_file_open_mode.hpp
+
boost/exception/errinfo_nested_exception.hpp
boost/exception/errinfo_type_info_name.hpp
boost/exception/error_info.hpp
boost/exception/exception.hpp
diff --git a/doc/page_idx.html b/doc/page_idx.html index fcd540e..9bb0291 100644 --- a/doc/page_idx.html +++ b/doc/page_idx.html @@ -36,6 +36,7 @@

boost/exception/errinfo_file_handle.hpp

boost/exception/errinfo_file_name.hpp

boost/exception/errinfo_file_open_mode.hpp

+

boost/exception/errinfo_nested_exception.hpp

boost/exception/errinfo_type_info_name.hpp

boost/exception/error_info.hpp

boost/exception/exception.hpp

@@ -67,6 +68,7 @@

errinfo_file_handle

errinfo_file_name

errinfo_file_open_mode

+

errinfo_nested_exception

errinfo_type_info_name

error_info

error_info::error_info

diff --git a/doc/source/boost-exception.reno b/doc/source/boost-exception.reno index 8c062c2..2426f9c 100644 --- a/doc/source/boost-exception.reno +++ b/doc/source/boost-exception.reno @@ -39,7 +39,7 @@ - 74 + 76 0 @@ -53,21 +53,28 @@ - 0 + 1 + DE766B811244919E8E1EA54FC747A8487BCE57F1AB592932640FC90428B617A5 + 414875037 + 427 + 323 - 1 + 0 + ../../../../boost/exception/errinfo_file_open_mode.hpp + 0 + 0 - <string>transporting of arbitrary data to the catch site</string> + <string>boost/exception/errinfo_file_open_mode.hpp</string> - tutorial_transporting_data + @@ -92,24 +99,24 @@ 1 - 91CF203512705C8B2CDCBCD1439821CBF93CFC1A4C2EA2CA91F38DAA3F7720B2 - 1769665510 - 1558 - 352 + 5AD376A17B373BF62FE491E6E7883756836612C74138FFFA15FFF54E7CDBADAA + 20822643 + 5426 + 323 0 - ../../example/errinfos.cpp + ../../../../boost/exception/diagnostic_information.hpp 0 0 - <string>errinfos example</string> + <string>boost/exception/diagnostic_information.hpp</string> @@ -118,7 +125,9 @@ - 0 + 1 + 2 + (:include include:) (:auto also:) @@ -135,28 +144,28 @@ 2 - 21027A2B73C9AA6FF083752A952D63BBA9B5FD68A3C8915965A7184EA62A5D61 - 1523356166 - 537 - 403 - 24256E1CE56594FB38D0630858B8947191827CFC57771E8727A6A56F76207454 - 665917505 - 66 - 26 + EEA69AA1E84CB2B7C903A3F4C236D0A233D03DBA4BA1D3B97D959918F3B30E09 + 2728032055 + 406 + 344 + EE695B95A2499B66980754857E184776F1DE7224372A5F5153B6DF94E621A89B + 1009590890 + 92 + 308 0 - ../../../../boost/exception/errinfo_errno.hpp + ../../../../boost/exception/errinfo_file_open_mode.hpp 0 0 - <string>errinfo_errno</string> + <string>errinfo_file_open_mode</string> @@ -184,9 +193,9 @@ 1 - D6841F0363736F4F8554C35ADD6A9D160C4C49AF6F64FD9E259BC154F779866F - 1169632142 - 9204 + FFF4359EFC66EE6AA729B641F38B4020A55E83A1C099BCA59B1CA9A9875E7F79 + 366628170 + 236 323 @@ -194,14 +203,14 @@ 0 - ../../../../boost/exception/exception.hpp + ../../../../boost/exception/errinfo_file_handle.hpp 0 0 - <string>boost/exception/exception.hpp</string> + <string>boost/exception/errinfo_file_handle.hpp</string> @@ -228,25 +237,18 @@ - 1 - 283AE6BE0920B1882100C426958FDF998DEE10226546B300B45C1A26B242FC25 - 722381934 - 617 - 323 + 0 - 0 - ../../../../boost/exception/errinfo_errno.hpp - 0 - 0 + 1 - <string>boost/exception/errinfo_errno.hpp</string> + <string>boost/exception/enable_current_exception.hpp</string> @@ -273,34 +275,40 @@ - 1 - 27ED18F9B6131B084FEF0C9F932B7027AF449E378B5FD7973CD6642263FCAF27 - 2867102400 - 404 - 307 + 2 + 126A895281064E2195458B8A47CD73DB7E3BE3608F250925E07AF4230CBDDE1D + 4231421785 + 307 + 344 + 16179B125E2BC6D993FBE4BA5E9A96DBAE43CA1443C7D281B659D020B6725983 + 1126376090 + 92 + 209 0 - ../../example/cloning_1.cpp + ../../../../boost/exception/errinfo_type_info_name.hpp 0 0 - <string>using enable_current_exception at the time of the throw</string> + <string>errinfo_type_info_name</string> - using_enable_cloning + - 0 + 1 + 2 + (:include include:) (:auto also:) @@ -317,28 +325,28 @@ 2 - D6841F0363736F4F8554C35ADD6A9D160C4C49AF6F64FD9E259BC154F779866F - 1169632142 - 9204 - 323 - E8F75513DDED11FD99209774D96C52882C530DC63A1B0527156DF56901DAF5C7 - 1386049295 - 2209 - 3718 + F7554EEA94C796DF4EC724B2F21CFE92B2A7BEF13097D61CE13CE50CE7192313 + 2034584854 + 4201 + 560 + 5738DF31DB52E5E8784199058479E798957794147A099D834110FF821C605EE3 + 1133216499 + 490 + 3705 0 - ../../../../boost/exception/exception.hpp + ../../../../boost/exception/diagnostic_information.hpp 0 0 - <string>exception</string> + <string>diagnostic_information_what</string> @@ -349,7 +357,7 @@ 1 2 - (:include include:) ---- !!!See Also: (:pagelist link="backlink" except_tags="exception,member" mod="w":) + (:include include:) (:auto also:) @@ -409,6 +417,51 @@ reno_context + + + + + + 1 + 04DDC793002AFCF4F4166D250C67D09B6FE8B86224318ED7847AD6EC423B70CA + 922651615 + 433 + 1061 + + + + + + 0 + ../../../../boost/throw_exception.hpp + 0 + 0 + + + + + <string>BOOST_THROW_EXCEPTION</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 14 + + reno_context + @@ -450,51 +503,6 @@ (:include include:) (:auto also:) - - - 0 - - 14 - - reno_context - - - - - - - 1 - C95CEF2E9D0BAA1E950509471062916DB849A46A19F7692BA478030E79B338EB - 1917376632 - 706 - 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 @@ -503,1248 +511,6 @@ reno_context - - - - - - 1 - 5AD376A17B373BF62FE491E6E7883756836612C74138FFFA15FFF54E7CDBADAA - 20822643 - 5426 - 323 - - - - - - 0 - ../../../../boost/exception/diagnostic_information.hpp - 0 - 0 - - - - - <string>boost/exception/diagnostic_information.hpp</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 16 - - reno_context - - - - - - - 2 - 9A4ECF9A49A73AED83C1565CB8C67AE1519E8AFE6818F968B4C4733CB9E86CEF - 1615599655 - 68 - 227 - 34F0583BC8DE767CE2D79721E1F956895E43E5397473B1050F59BE7E26C773DB - 805836816 - 66 - 1 - - - - - - 0 - ../../../../boost/exception/error_info.hpp - 0 - 0 - - - - - <string>boost/exception/error_info.hpp</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 17 - - reno_context - - - - - - - 1 - FFF4359EFC66EE6AA729B641F38B4020A55E83A1C099BCA59B1CA9A9875E7F79 - 366628170 - 236 - 323 - - - - - - 0 - ../../../../boost/exception/errinfo_file_handle.hpp - 0 - 0 - - - - - <string>boost/exception/errinfo_file_handle.hpp</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 18 - - reno_context - - - - - - - 2 - 126A895281064E2195458B8A47CD73DB7E3BE3608F250925E07AF4230CBDDE1D - 4231421785 - 307 - 344 - 16179B125E2BC6D993FBE4BA5E9A96DBAE43CA1443C7D281B659D020B6725983 - 1126376090 - 92 - 209 - - - - - - 0 - ../../../../boost/exception/errinfo_type_info_name.hpp - 0 - 0 - - - - - <string>errinfo_type_info_name</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 19 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>Synopsis</string> - - - synopsis - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 20 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>boost exception</string> - - - boost-exception - - - - - - 1 - 2 - (:include include:) - - - - - 0 - - 21 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>Motivation</string> - - - motivation - - - - - - 7 - 2 - (:include include:) (:auto also explicit=" - 1 - - 0 - - 22 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>exception types as simple semantic tags</string> - - - - - - - - 2 - - 1 - - 0 - - -14 - - - 2 - - 1 - - 0 - - 23 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>frequently asked questions</string> - - - - - - - - 2 - ":) - - - - - 0 - - 24 - - reno_context - - - - - - - 2 - CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414 - 1114955626 - 11770 - 723 - 1516D0B7E11CBEB60CE4222565ACCAFF2E9857A8A505C1C26E2AE90087250581 - 3624753243 - 279 - 26 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>original_exception_type</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 25 - - reno_context - - - - - - - 1 - A95165313334B684C85659D05D3D8EB17F4AF552EDCB3C180AC1F85D18C99CBF - 115507474 - 2037 - 91 - - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>boost/throw_exception.hpp</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 26 - - reno_context - - - - - - - 2 - DA1CAA5F6BAB712AD89E8A0B7D83961FCE4AF9FD198791C9F6EA299800A64FAC - 3553871704 - 612 - 1496 - 154AC930BD1FDCADE24CDB07DBD3163CA26378AF4F1D428C34B67D1F68A60891 - 50905072 - 586 - 23 - - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>throw_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 27 - - reno_context - - - - - - - 3 - 892ACAF5EB4C2D93ECC578359C6CF16C5DDB159571B19B7EE11CC84ED6828258 - 116592015 - 1062 - 344 - 5D5B59DE2E0728CF19BDD22BF7DE3FADAD08B422B577E0705508F6D9FB6707C7 - 387228411 - 623 - 433 - 98B33BE76679E3A4831241335CD5DFF6F634429F36BABF96C1D4DC2296C5ECC5 - 1584672077 - 208 - 259 - - - - - - 0 - ../../../../boost/exception/detail/error_info_impl.hpp - 0 - 0 - - - - - <string>error_info::value</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 28 - - reno_context - - - - - - - 2 - D6841F0363736F4F8554C35ADD6A9D160C4C49AF6F64FD9E259BC154F779866F - 1169632142 - 9204 - 323 - DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 - 1137981799 - 192 - 9006 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>enable_current_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 29 - - reno_context - - - - - - - 2 - CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414 - 1114955626 - 11770 - 723 - 6B3B617AC518A2177BDB89656E726B4E4D79577E289130493A61BAE24FB64838 - 3173127726 - 1101 - 2184 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>unknown_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 30 - - reno_context - - - - - - - 1 - 66E0BD9724AB83012F5B35D887E3313960DC0E69B94E0C03CA1F3C85A0D84A5C - 2883671483 - 311 - 306 - - - - - - 0 - ../../example/logging.cpp - 0 - 0 - - - - - <string>diagnostic information</string> - - - tutorial_diagnostic_information - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 31 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>Functions</string> - - - functions - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 32 - - reno_context - - - - - - - 2 - 46AE88799BE7F14F1E2B48F0077193517F25AFFD4AE13C30489247555042EEE3 - 1975649535 - 3970 - 518 - D31BCE814DF5B8B718E7EB67A194AD08EF716A26D422E436596ABA1F145007D8 - 4055211476 - 525 - 3439 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - - <string>exception/operator<<</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 33 - - reno_context - - - - - - - 2 - F7633FDCF6615C0199645701EE6E7ACE5CBCD7A7CF6838573791E91ABB3C09F2 - 1668435395 - 1332 - 396 - A1F443AF571973A12005D2F7D4AE09A32AAF686FEEAE272EC21512A65EB943E8 - 3879093659 - 1300 - 26 - - - - - - 0 - ../../../../boost/exception/info_tuple.hpp - 0 - 0 - - - - - <string>tuple/operator<<</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 34 - - reno_context - - - - - - - 2 - CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414 - 1114955626 - 11770 - 723 - E23085202D084CBB50F289988A6A592F06D923B77D0AB25D7A98A7188DF5BE3B - 1414247481 - 766 - 10094 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>current_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 35 - - reno_context - - - - - - - 1 - 2CCD2A79129C832AB12435E43BB35DE67318A8940A36530EF83C5E617987D661 - 2091122505 - 699 - 323 - - - - - - 0 - ../../../../boost/exception/all.hpp - 0 - 0 - - - - - <string>boost/exception/all.hpp</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 36 - - reno_context - - - - - - - 2 - CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414 - 1114955626 - 11770 - 723 - B20A3D4631F3B2415EED1888B65FA33D7AED20F86BE196159D9297AAED115787 - 3293519666 - 117 - 11169 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>rethrow_exception</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 37 - - reno_context - - - - - - - 2 - 46AE88799BE7F14F1E2B48F0077193517F25AFFD4AE13C30489247555042EEE3 - 1975649535 - 3970 - 518 - 6E325144EF4F41FA3A225EB30729101382C4E99B3D6160E307311E4B4E641010 - 1097215175 - 161 - 240 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - - <string>error_info::error_info</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 38 - - reno_context - - - - - - - 1 - A14B5595A6DD87562792D402B48500AAD71FA1ABD75C14EDF089FCC7318CBB9B - 3469762901 - 468 - 227 - - - - - - 0 - ../../../../boost/exception/current_exception_cast.hpp - 0 - 0 - - - - - <string>boost/exception/current_exception_cast.hpp</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 39 - - reno_context - - - - - - - 3 - DA1CAA5F6BAB712AD89E8A0B7D83961FCE4AF9FD198791C9F6EA299800A64FAC - 3553871704 - 612 - 1496 - 154AC930BD1FDCADE24CDB07DBD3163CA26378AF4F1D428C34B67D1F68A60891 - 50905072 - 586 - 23 - CD1241D84950468704F3C3F04116B8DA5162A8BEA4364F10951232F49113C5DE - 1658463867 - 121 - 453 - - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>configuration macros</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 40 - - reno_context - - - - - - - 3 - 892ACAF5EB4C2D93ECC578359C6CF16C5DDB159571B19B7EE11CC84ED6828258 - 116592015 - 1062 - 344 - 5D5B59DE2E0728CF19BDD22BF7DE3FADAD08B422B577E0705508F6D9FB6707C7 - 387228411 - 623 - 433 - 38B566F2C6678B8724D18086A6F76E077DC2ADC1BB69A4B83BF0A2C3B7D31B50 - 2218658069 - 31 - 143 - - - - - - 0 - ../../../../boost/exception/detail/error_info_impl.hpp - 0 - 0 - - - - - <string>error_info::value_type</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 41 - - reno_context - - - - - - - 1 - 9A6D5598D65F1C1B5F913007D1CD1A814F3CDAD07D4AF8C468A0716059B2F7CC - 3552995087 - 1405 - 323 - - - - - - 0 - ../../../../boost/exception/info_tuple.hpp - 0 - 0 - - - - - <string>boost/exception/info_tuple.hpp</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 42 - - reno_context - @@ -1790,56 +556,7 @@ 0 - 43 - - reno_context - - - - - - - 2 - D6841F0363736F4F8554C35ADD6A9D160C4C49AF6F64FD9E259BC154F779866F - 1169632142 - 9204 - 323 - 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E - 765399792 - 77 - 5929 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>exception::~exception</string> - - - exception_destructor - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 44 + 16 reno_context @@ -1849,24 +566,24 @@ 1 - 04DDC793002AFCF4F4166D250C67D09B6FE8B86224318ED7847AD6EC423B70CA - 922651615 - 433 - 1061 + F39D869016327CDFEA720920B2743F47989202BF5814B6556EC54A1B0FE562F8 + 3703518029 + 147 + 323 0 - ../../../../boost/throw_exception.hpp + ../../../../boost/exception.hpp 0 0 - <string>BOOST_THROW_EXCEPTION</string> + <string>boost/exception.hpp</string> @@ -1884,7 +601,32 @@ 0 - -22 + 17 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>Types</string> + + + types + + @@ -1897,7 +639,7 @@ 0 - 45 + 18 reno_context @@ -1907,9 +649,9 @@ 1 - DE766B811244919E8E1EA54FC747A8487BCE57F1AB592932640FC90428B617A5 - 414875037 - 427 + 283AE6BE0920B1882100C426958FDF998DEE10226546B300B45C1A26B242FC25 + 722381934 + 617 323 @@ -1917,14 +659,14 @@ 0 - ../../../../boost/exception/errinfo_file_open_mode.hpp + ../../../../boost/exception/errinfo_errno.hpp 0 0 - <string>boost/exception/errinfo_file_open_mode.hpp</string> + <string>boost/exception/errinfo_errno.hpp</string> @@ -1942,7 +684,90 @@ 0 - 46 + 19 + + reno_context + + + + + + + 1 + C95CEF2E9D0BAA1E950509471062916DB849A46A19F7692BA478030E79B338EB + 1917376632 + 706 + 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 + + 20 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>transporting of arbitrary data to the catch site</string> + + + tutorial_transporting_data + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 21 reno_context @@ -1995,7 +820,879 @@ 0 - 47 + 22 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>Motivation</string> + + + motivation + + + + + + 7 + 2 + (:include include:) (:auto also explicit=" + 1 + + 0 + + 23 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>exception types as simple semantic tags</string> + + + + + + + + 2 + + 1 + + 0 + + -19 + + + 2 + + 1 + + 0 + + 24 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>frequently asked questions</string> + + + + + + + + 2 + ":) + + + + + 0 + + -23 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 25 + + reno_context + + + + + + + 1 + 66EFC83C830F0B00D0C9399B475099072E2674B3C694F9152645A33E3D7AC303 + 561674611 + 417 + 323 + + + + + + 0 + ../../../../boost/exception/errinfo_file_name.hpp + 0 + 0 + + + + + <string>boost/exception/errinfo_file_name.hpp</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + -24 + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 26 + + reno_context + + + + + + + 2 + 307034E20863A00923777A60D9495B4076B7F917D5B97203025299060F0833E0 + 3948311309 + 396 + 344 + F8ED2052577830AC0C515EC5932BB14445DD5DA714782281FCDB1776961FECB1 + 3880328768 + 82 + 308 + + + + + + 0 + ../../../../boost/exception/errinfo_file_name.hpp + 0 + 0 + + + + + <string>errinfo_file_name</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 27 + + reno_context + + + + + + + 1 + 756A81C65A938BEEAD9B576707145748A3DB3BF767CC77ADD5AACD549373856A + 904132245 + 744 + 363 + + + + + + 0 + ../../example/info_tuple.cpp + 0 + 0 + + + + + <string>adding grouped data to exceptions</string> + + + grouping_data + + + + + + 0 + + + + + 0 + + 28 + + reno_context + + + + + + + 3 + 892ACAF5EB4C2D93ECC578359C6CF16C5DDB159571B19B7EE11CC84ED6828258 + 116592015 + 1062 + 344 + 5D5B59DE2E0728CF19BDD22BF7DE3FADAD08B422B577E0705508F6D9FB6707C7 + 387228411 + 623 + 433 + 38B566F2C6678B8724D18086A6F76E077DC2ADC1BB69A4B83BF0A2C3B7D31B50 + 2218658069 + 31 + 143 + + + + + + 0 + ../../../../boost/exception/detail/error_info_impl.hpp + 0 + 0 + + + + + <string>error_info::value_type</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 29 + + reno_context + + + + + + + 1 + 9DF8D57248B036B570603802AAD3E0FC25D94268FCF31A2B395973D93FFE1CF5 + 1380075423 + 208 + 323 + + + + + + 0 + ../../../../boost/exception/errinfo_nested_exception.hpp + 0 + 0 + + + + + <string>boost/exception/errinfo_nested_exception.hpp</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 30 + + reno_context + + + + + + + 2 + F7554EEA94C796DF4EC724B2F21CFE92B2A7BEF13097D61CE13CE50CE7192313 + 2034584854 + 4201 + 560 + 2973B09697BC6642C8CBECE8C3DD7C429FA1348B67AAAB47E01B9C1292EE3BB2 + 2629550564 + 3677 + 26 + + + + + + 0 + ../../../../boost/exception/diagnostic_information.hpp + 0 + 0 + + + + + <string>diagnostic_information</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 31 + + reno_context + + + + + + + 1 + 9A6D5598D65F1C1B5F913007D1CD1A814F3CDAD07D4AF8C468A0716059B2F7CC + 3552995087 + 1405 + 323 + + + + + + 0 + ../../../../boost/exception/info_tuple.hpp + 0 + 0 + + + + + <string>boost/exception/info_tuple.hpp</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 32 + + reno_context + + + + + + + 2 + DA1CAA5F6BAB712AD89E8A0B7D83961FCE4AF9FD198791C9F6EA299800A64FAC + 3553871704 + 612 + 1496 + 154AC930BD1FDCADE24CDB07DBD3163CA26378AF4F1D428C34B67D1F68A60891 + 50905072 + 586 + 23 + + + + + + 0 + ../../../../boost/throw_exception.hpp + 0 + 0 + + + + + <string>throw_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 33 + + reno_context + + + + + + + 1 + BF7B46FEFA4E2DED7D652BFD40E94DD0B225ADA8D35E28FF4216F72812589835 + 422843600 + 756 + 323 + + + + + + 0 + ../../../../boost/exception/all.hpp + 0 + 0 + + + + + <string>boost/exception/all.hpp</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 34 + + reno_context + + + + + + + 1 + 977045132A532A0071B0B53F737D85367CE9A331402F96790E45B3B6F2FC88A6 + 1875939463 + 529 + 382 + + + + + + 0 + ../../example/error_info_1.cpp + 0 + 0 + + + + + <string>adding of arbitrary data at the point of the throw</string> + + + adding_data_at_throw + + + + + + 0 + + + + + 0 + + 35 + + reno_context + + + + + + + 1 + A2BF537B251039FA1AF972D55F975E8FDDD14F2731A47FBDEBF3E001F7CF5245 + 2585086703 + 4165 + 323 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + + <string>boost/exception/info.hpp</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 36 + + reno_context + + + + + + + 1 + 27ED18F9B6131B084FEF0C9F932B7027AF449E378B5FD7973CD6642263FCAF27 + 2867102400 + 404 + 307 + + + + + + 0 + ../../example/cloning_1.cpp + 0 + 0 + + + + + <string>using enable_current_exception at the time of the throw</string> + + + using_enable_cloning + + + + + + 0 + + + + + 0 + + 37 + + reno_context + + + + + + + 1 + 4D7009F0868C1DF4898EC6ECF9AD2CFEA98E8653B01B066106761807405D4C22 + 1416707852 + 3107 + 323 + + + + + + 0 + ../../../../boost/exception/get_error_info.hpp + 0 + 0 + + + + + <string>boost/exception/get_error_info.hpp</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 38 + + reno_context + + + + + + + 1 + 21E8093D2AF6946EAE135823066EF38B9DC8870432B44C81E585FF63A72F9903 + 3352783584 + 12170 + 323 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>boost/exception_ptr.hpp</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 39 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>page index</string> + + + page_idx + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 40 + + reno_context + + + + + + + 2 + 9DF8D57248B036B570603802AAD3E0FC25D94268FCF31A2B395973D93FFE1CF5 + 1380075423 + 208 + 323 + 83E18B98A15DEF9418E38218D221D10DC093B915D630B51974CCD23A6E1EDC44 + 849683856 + 98 + 104 + + + + + + 0 + ../../../../boost/exception/errinfo_nested_exception.hpp + 0 + 0 + + + + + <string>errinfo_nested_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 41 reno_context @@ -2033,188 +1730,7 @@ 0 - 48 - - reno_context - - - - - - - 2 - D6841F0363736F4F8554C35ADD6A9D160C4C49AF6F64FD9E259BC154F779866F - 1169632142 - 9204 - 323 - F3FB15CD82336271C6E875BC620385322777D16F0B7C233300783CE35710CCBF - 3292878997 - 282 - 7317 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>enable_error_info</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 49 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>boost/exception/enable_current_exception.hpp</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 50 - - reno_context - - - - - - - 2 - EEA69AA1E84CB2B7C903A3F4C236D0A233D03DBA4BA1D3B97D959918F3B30E09 - 2728032055 - 406 - 344 - EE695B95A2499B66980754857E184776F1DE7224372A5F5153B6DF94E621A89B - 1009590890 - 92 - 308 - - - - - - 0 - ../../../../boost/exception/errinfo_file_open_mode.hpp - 0 - 0 - - - - - <string>errinfo_file_open_mode</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 51 - - reno_context - - - - - - - 1 - F39D869016327CDFEA720920B2743F47989202BF5814B6556EC54A1B0FE562F8 - 3703518029 - 147 - 323 - - - - - - 0 - ../../../../boost/exception.hpp - 0 - 0 - - - - - <string>boost/exception.hpp</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 52 + 42 reno_context @@ -2263,7 +1779,189 @@ 0 - 53 + 43 + + reno_context + + + + + + + 1 + DB156E6A8ACB9FB90C8FB110FC25A5FEB14A619F82EEC47FF913373592E5CC3E + 240075319 + 6209 + 412 + + + + + + 0 + ../../example/example_io.cpp + 0 + 0 + + + + + <string>diagnostic_information example</string> + + + + + + + + + 0 + + + + + 0 + + 44 + + reno_context + + + + + + + 1 + A14B5595A6DD87562792D402B48500AAD71FA1ABD75C14EDF089FCC7318CBB9B + 3469762901 + 468 + 227 + + + + + + 0 + ../../../../boost/exception/current_exception_cast.hpp + 0 + 0 + + + + + <string>boost/exception/current_exception_cast.hpp</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 45 + + reno_context + + + + + + + 2 + D6841F0363736F4F8554C35ADD6A9D160C4C49AF6F64FD9E259BC154F779866F + 1169632142 + 9204 + 323 + DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 + 1137981799 + 192 + 9006 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>enable_current_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 46 + + reno_context + + + + + + + 1 + 4EDD3DF2332B6D9D22AC9AD90B850ACC715A24DD466E675014CBED25C63C255F + 4175717823 + 328 + 323 + + + + + + 0 + ../../../../boost/exception/errinfo_type_info_name.hpp + 0 + 0 + + + + + <string>boost/exception/errinfo_type_info_name.hpp</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 47 reno_context @@ -2283,10 +1981,296 @@ - <string>page index</string> + <string>Headers</string> - page_idx + headers + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 48 + + reno_context + + + + + + + 2 + 46AE88799BE7F14F1E2B48F0077193517F25AFFD4AE13C30489247555042EEE3 + 1975649535 + 3970 + 518 + D31BCE814DF5B8B718E7EB67A194AD08EF716A26D422E436596ABA1F145007D8 + 4055211476 + 525 + 3439 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + + <string>exception/operator<<</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 49 + + reno_context + + + + + + + 2 + CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414 + 1114955626 + 11770 + 723 + 1516D0B7E11CBEB60CE4222565ACCAFF2E9857A8A505C1C26E2AE90087250581 + 3624753243 + 279 + 26 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>original_exception_type</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 50 + + reno_context + + + + + + + 1 + A95165313334B684C85659D05D3D8EB17F4AF552EDCB3C180AC1F85D18C99CBF + 115507474 + 2037 + 91 + + + + + + 0 + ../../../../boost/throw_exception.hpp + 0 + 0 + + + + + <string>boost/throw_exception.hpp</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 51 + + reno_context + + + + + + + 2 + CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414 + 1114955626 + 11770 + 723 + 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4 + 2078296250 + 305 + 10862 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>copy_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 52 + + reno_context + + + + + + + 1 + 21A43755562CB78B3FFCC49F66B457C1FCD659EE98F25BBFA8DDE453EB89DF0E + 2576704708 + 337 + 323 + + + + + + 0 + ../../../../boost/exception/errinfo_api_function.hpp + 0 + 0 + + + + + <string>boost/exception/errinfo_api_function.hpp</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 53 + + reno_context + + + + + + + 2 + CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414 + 1114955626 + 11770 + 723 + 6B3B617AC518A2177BDB89656E726B4E4D79577E289130493A61BAE24FB64838 + 3173127726 + 1101 + 2184 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>unknown_exception</string> + + + @@ -2311,28 +2295,28 @@ 2 - E08150343DD1B942E2AC7DDB8EE52852BF2E03476430238FCFF49CD2C09E55E6 - 1796675348 - 978 - 4763 - 36688510914673386A7870D1D4970B7D74CF9A4B7226F9E225A5607DCBFB12C4 - 2314308857 - 446 - 110 + 9A4ECF9A49A73AED83C1565CB8C67AE1519E8AFE6818F968B4C4733CB9E86CEF + 1615599655 + 68 + 227 + 34F0583BC8DE767CE2D79721E1F956895E43E5397473B1050F59BE7E26C773DB + 805836816 + 66 + 1 0 - ../../../../boost/exception/diagnostic_information.hpp + ../../../../boost/exception/error_info.hpp 0 0 - <string>current_exception_diagnostic_information</string> + <string>boost/exception/error_info.hpp</string> @@ -2360,35 +2344,33 @@ 1 - 21E8093D2AF6946EAE135823066EF38B9DC8870432B44C81E585FF63A72F9903 - 3352783584 - 12170 - 323 + FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717 + 2229778754 + 631 + 319 0 - ../../../../boost/exception_ptr.hpp + ../../example/cloning_2.cpp 0 0 - <string>boost/exception_ptr.hpp</string> + <string>cloning and re-throwing an exception</string> - + cloning_and_rethrowing - 1 - 2 - (:include include:) (:auto also:) + 0 @@ -2404,29 +2386,25 @@ - 2 - AEDDD2FA4F47CEBD99444F1054D85AB8132748CF38D6634503D62E9C8AD5FE68 - 1378637100 - 292 - 368 - 892C0239798B84BA2E80DAA70BBEB7BE0B6086A1D0829D0E1937EC1D19E3FF20 - 3349881047 - 89 - 197 + 1 + D6841F0363736F4F8554C35ADD6A9D160C4C49AF6F64FD9E259BC154F779866F + 1169632142 + 9204 + 323 0 - ../../../../boost/exception/errinfo_api_function.hpp + ../../../../boost/exception/exception.hpp 0 0 - <string>errinfo_api_function</string> + <string>boost/exception/exception.hpp</string> @@ -2502,25 +2480,33 @@ - 1 - A2BF537B251039FA1AF972D55F975E8FDDD14F2731A47FBDEBF3E001F7CF5245 - 2585086703 - 4165 - 323 + 3 + DA1CAA5F6BAB712AD89E8A0B7D83961FCE4AF9FD198791C9F6EA299800A64FAC + 3553871704 + 612 + 1496 + 154AC930BD1FDCADE24CDB07DBD3163CA26378AF4F1D428C34B67D1F68A60891 + 50905072 + 586 + 23 + CD1241D84950468704F3C3F04116B8DA5162A8BEA4364F10951232F49113C5DE + 1658463867 + 121 + 453 0 - ../../../../boost/exception/info.hpp + ../../../../boost/throw_exception.hpp 0 0 - <string>boost/exception/info.hpp</string> + <string>configuration macros</string> @@ -2531,7 +2517,7 @@ 1 2 - (:include include:) (:auto also:) + (:include include:) (:auto also:) @@ -2542,266 +2528,6 @@ reno_context - - - - - - 1 - FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717 - 2229778754 - 631 - 319 - - - - - - 0 - ../../example/cloning_2.cpp - 0 - 0 - - - - - <string>cloning and re-throwing an exception</string> - - - cloning_and_rethrowing - - - - - - 0 - - - - - 0 - - 60 - - reno_context - - - - - - - 1 - 977045132A532A0071B0B53F737D85367CE9A331402F96790E45B3B6F2FC88A6 - 1875939463 - 529 - 382 - - - - - - 0 - ../../example/error_info_1.cpp - 0 - 0 - - - - - <string>adding of arbitrary data at the point of the throw</string> - - - adding_data_at_throw - - - - - - 0 - - - - - 0 - - 61 - - reno_context - - - - - - - 2 - 307034E20863A00923777A60D9495B4076B7F917D5B97203025299060F0833E0 - 3948311309 - 396 - 344 - F8ED2052577830AC0C515EC5932BB14445DD5DA714782281FCDB1776961FECB1 - 3880328768 - 82 - 308 - - - - - - 0 - ../../../../boost/exception/errinfo_file_name.hpp - 0 - 0 - - - - - <string>errinfo_file_name</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 62 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>boost/exception/enable_error_info.hpp</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 63 - - reno_context - - - - - - - 2 - F7554EEA94C796DF4EC724B2F21CFE92B2A7BEF13097D61CE13CE50CE7192313 - 2034584854 - 4201 - 560 - 5738DF31DB52E5E8784199058479E798957794147A099D834110FF821C605EE3 - 1133216499 - 490 - 3705 - - - - - - 0 - ../../../../boost/exception/diagnostic_information.hpp - 0 - 0 - - - - - <string>diagnostic_information_what</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 64 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>Macros</string> - - - macros - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 65 - - reno_context - @@ -2839,6 +2565,267 @@ (:include include:) (:auto also:) + + + 0 + + 60 + + reno_context + + + + + + + 2 + D6841F0363736F4F8554C35ADD6A9D160C4C49AF6F64FD9E259BC154F779866F + 1169632142 + 9204 + 323 + F3FB15CD82336271C6E875BC620385322777D16F0B7C233300783CE35710CCBF + 3292878997 + 282 + 7317 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>enable_error_info</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 61 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>Macros</string> + + + macros + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 62 + + reno_context + + + + + + + 2 + F7633FDCF6615C0199645701EE6E7ACE5CBCD7A7CF6838573791E91ABB3C09F2 + 1668435395 + 1332 + 396 + A1F443AF571973A12005D2F7D4AE09A32AAF686FEEAE272EC21512A65EB943E8 + 3879093659 + 1300 + 26 + + + + + + 0 + ../../../../boost/exception/info_tuple.hpp + 0 + 0 + + + + + <string>tuple/operator<<</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 63 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>using virtual inheritance in exception types</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 64 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>Synopsis</string> + + + synopsis + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 65 + + reno_context + + + + + + + 2 + E08150343DD1B942E2AC7DDB8EE52852BF2E03476430238FCFF49CD2C09E55E6 + 1796675348 + 978 + 4763 + 36688510914673386A7870D1D4970B7D74CF9A4B7226F9E225A5607DCBFB12C4 + 2314308857 + 446 + 110 + + + + + + 0 + ../../../../boost/exception/diagnostic_information.hpp + 0 + 0 + + + + + <string>current_exception_diagnostic_information</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + 0 @@ -2863,10 +2850,10 @@ - <string>Types</string> + <string>boost exception</string> - types + boost-exception @@ -2874,7 +2861,7 @@ 1 2 - (:include include:) (:auto also:) + (:include include:) @@ -2890,25 +2877,33 @@ - 1 - 4D7009F0868C1DF4898EC6ECF9AD2CFEA98E8653B01B066106761807405D4C22 - 1416707852 - 3107 - 323 + 3 + 892ACAF5EB4C2D93ECC578359C6CF16C5DDB159571B19B7EE11CC84ED6828258 + 116592015 + 1062 + 344 + 5D5B59DE2E0728CF19BDD22BF7DE3FADAD08B422B577E0705508F6D9FB6707C7 + 387228411 + 623 + 433 + 98B33BE76679E3A4831241335CD5DFF6F634429F36BABF96C1D4DC2296C5ECC5 + 1584672077 + 208 + 259 0 - ../../../../boost/exception/get_error_info.hpp + ../../../../boost/exception/detail/error_info_impl.hpp 0 0 - <string>boost/exception/get_error_info.hpp</string> + <string>error_info::value</string> @@ -2930,224 +2925,6 @@ reno_context - - - - - - 1 - DB156E6A8ACB9FB90C8FB110FC25A5FEB14A619F82EEC47FF913373592E5CC3E - 240075319 - 6209 - 412 - - - - - - 0 - ../../example/example_io.cpp - 0 - 0 - - - - - <string>diagnostic_information example</string> - - - - - - - - - 0 - - - - - 0 - - 69 - - reno_context - - - - - - - 1 - 756A81C65A938BEEAD9B576707145748A3DB3BF767CC77ADD5AACD549373856A - 904132245 - 744 - 363 - - - - - - 0 - ../../example/info_tuple.cpp - 0 - 0 - - - - - <string>adding grouped data to exceptions</string> - - - grouping_data - - - - - - 0 - - - - - 0 - - 70 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>Headers</string> - - - headers - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 71 - - reno_context - - - - - - - 1 - 21A43755562CB78B3FFCC49F66B457C1FCD659EE98F25BBFA8DDE453EB89DF0E - 2576704708 - 337 - 323 - - - - - - 0 - ../../../../boost/exception/errinfo_api_function.hpp - 0 - 0 - - - - - <string>boost/exception/errinfo_api_function.hpp</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 72 - - reno_context - - - - - - - 2 - F7554EEA94C796DF4EC724B2F21CFE92B2A7BEF13097D61CE13CE50CE7192313 - 2034584854 - 4201 - 560 - 2973B09697BC6642C8CBECE8C3DD7C429FA1348B67AAAB47E01B9C1292EE3BB2 - 2629550564 - 3677 - 26 - - - - - - 0 - ../../../../boost/exception/diagnostic_information.hpp - 0 - 0 - - - - - <string>diagnostic_information</string> - - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 73 - - reno_context - @@ -3193,7 +2970,7 @@ 0 - 74 + 69 reno_context @@ -3202,25 +2979,29 @@ - 1 - 4EDD3DF2332B6D9D22AC9AD90B850ACC715A24DD466E675014CBED25C63C255F - 4175717823 - 328 - 323 + 2 + CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414 + 1114955626 + 11770 + 723 + B20A3D4631F3B2415EED1888B65FA33D7AED20F86BE196159D9297AAED115787 + 3293519666 + 117 + 11169 0 - ../../../../boost/exception/errinfo_type_info_name.hpp + ../../../../boost/exception_ptr.hpp 0 0 - <string>boost/exception/errinfo_type_info_name.hpp</string> + <string>rethrow_exception</string> @@ -3238,7 +3019,101 @@ 0 - 75 + 70 + + reno_context + + + + + + + 1 + 66E0BD9724AB83012F5B35D887E3313960DC0E69B94E0C03CA1F3C85A0D84A5C + 2883671483 + 311 + 306 + + + + + + 0 + ../../example/logging.cpp + 0 + 0 + + + + + <string>diagnostic information</string> + + + tutorial_diagnostic_information + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 71 + + reno_context + + + + + + + 2 + AEDDD2FA4F47CEBD99444F1054D85AB8132748CF38D6634503D62E9C8AD5FE68 + 1378637100 + 292 + 368 + 892C0239798B84BA2E80DAA70BBEB7BE0B6086A1D0829D0E1937EC1D19E3FF20 + 3349881047 + 89 + 197 + + + + + + 0 + ../../../../boost/exception/errinfo_api_function.hpp + 0 + 0 + + + + + <string>errinfo_api_function</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 72 reno_context @@ -3281,7 +3156,119 @@ 0 - -23 + 73 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>Functions</string> + + + functions + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 74 + + reno_context + + + + + + + 2 + 46AE88799BE7F14F1E2B48F0077193517F25AFFD4AE13C30489247555042EEE3 + 1975649535 + 3970 + 518 + 6E325144EF4F41FA3A225EB30729101382C4E99B3D6160E307311E4B4E641010 + 1097215175 + 161 + 240 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + + <string>error_info::error_info</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 75 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>boost/exception/enable_error_info.hpp</string> + + + + + @@ -3304,28 +3291,28 @@ 2 - CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414 - 1114955626 - 11770 - 723 - 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4 - 2078296250 - 305 - 10862 + 21027A2B73C9AA6FF083752A952D63BBA9B5FD68A3C8915965A7184EA62A5D61 + 1523356166 + 537 + 403 + 24256E1CE56594FB38D0630858B8947191827CFC57771E8727A6A56F76207454 + 665917505 + 66 + 26 0 - ../../../../boost/exception_ptr.hpp + ../../../../boost/exception/errinfo_errno.hpp 0 0 - <string>copy_exception</string> + <string>errinfo_errno</string> @@ -3352,25 +3339,29 @@ - 1 - 66EFC83C830F0B00D0C9399B475099072E2674B3C694F9152645A33E3D7AC303 - 561674611 - 417 - 323 + 2 + CEB9022E39DA32E612158FF553D383E13D300D1202CEB754E28B716040EFC414 + 1114955626 + 11770 + 723 + E23085202D084CBB50F289988A6A592F06D923B77D0AB25D7A98A7188DF5BE3B + 1414247481 + 766 + 10094 0 - ../../../../boost/exception/errinfo_file_name.hpp + ../../../../boost/exception_ptr.hpp 0 0 - <string>boost/exception/errinfo_file_name.hpp</string> + <string>current_exception</string> @@ -3397,18 +3388,29 @@ - 0 + 2 + D6841F0363736F4F8554C35ADD6A9D160C4C49AF6F64FD9E259BC154F779866F + 1169632142 + 9204 + 323 + E8F75513DDED11FD99209774D96C52882C530DC63A1B0527156DF56901DAF5C7 + 1386049295 + 2209 + 3718 - 1 + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 - <string>using virtual inheritance in exception types</string> + <string>exception</string> @@ -3416,12 +3418,104 @@ + + 1 + 2 + (:include include:) ---- !!!See Also: (:pagelist link="backlink" except_tags="exception member noalso" mod="w":) + + + + + 0 + + 79 + + reno_context + + + + + + + 2 + D6841F0363736F4F8554C35ADD6A9D160C4C49AF6F64FD9E259BC154F779866F + 1169632142 + 9204 + 323 + 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E + 765399792 + 77 + 5929 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>exception::~exception</string> + + + exception_destructor + + + + 1 2 (:include include:) (:auto also:) + + + 0 + + 80 + + reno_context + + + + + + + 1 + 91CF203512705C8B2CDCBCD1439821CBF93CFC1A4C2EA2CA91F38DAA3F7720B2 + 1769665510 + 1558 + 352 + + + + + + 0 + ../../example/errinfos.cpp + 0 + 0 + + + + + <string>errinfos example</string> + + + + + + + + + 0 + + @@ -3429,13 +3523,13 @@ def - 79 + 81 reno_layer - 74 + 76 0 @@ -3477,7 +3571,7 @@ 2 - <struct errinfo_errno_,int> + <struct errinfo_file_open_mode_,std::string> 1 0 @@ -3519,7 +3613,27 @@ - 0 + 5 + 2 + [@typedef + 1 + + 0 + + -57 + + + 2 + <struct errinfo_type_info_name_,std::string> + 1 + + 0 + + -10 + + + 2 + ;@] @@ -3530,36 +3644,7 @@ - 7 - 2 - [@class (:link - 1 - - 0 - - -11 - - - 2 - :) { protected: (:include - 1 - - 0 - - -46 - - - 2 - decl pre_indent="4":) (:include - 1 - - 0 - - -43 - - - 2 - decl pre_indent="4":) };@] + 0 @@ -3572,7 +3657,7 @@ 5 2 - [@typedef + [@typedef (:link 1 0 @@ -3581,7 +3666,7 @@ 2 - <struct errinfo_at_line_,int> + :)<struct errinfo_at_line_,int> (:link 1 0 @@ -3590,7 +3675,7 @@ 2 - ;@] + :);@] @@ -3656,27 +3741,7 @@ - 5 - 2 - [@typedef - 1 - - 0 - - -57 - - - 2 - <struct errinfo_type_info_name_,std::string> - 1 - - 0 - - -18 - - - 2 - ;@] + 0 @@ -3716,7 +3781,18 @@ 0 - -24 + -22 + + + + 0 + + + + + 0 + + -23 @@ -3738,13 +3814,44 @@ 0 - -26 + -24 0 + + + 0 + + -26 + + + + 5 + 2 + [@typedef (:link + 1 + + 0 + + -57 + + + 2 + :)<struct errinfo_file_name_,std::string> (:link + 1 + + 0 + + -26 + + + 2 + :);@] + + 0 @@ -3896,7 +4003,36 @@ - 0 + 7 + 2 + [@typedef (:link + 1 + + 0 + + -57 + + + 2 + :)<struct errinfo_nested_exception_,(:link + 1 + + 0 + + -42 + + + 2 + :)> (:link + 1 + + 0 + + -40 + + + 2 + :);@] @@ -3943,17 +4079,6 @@ 0 - - - 0 - - -22 - - - - 0 - - 0 @@ -4017,27 +4142,7 @@ - 5 - 2 - [@typedef - 1 - - 0 - - -57 - - - 2 - <struct errinfo_file_open_mode_,std::string> - 1 - - 0 - - -50 - - - 2 - ;@] + 0 @@ -4103,27 +4208,7 @@ - 5 - 2 - [@typedef (:link - 1 - - 0 - - -57 - - - 2 - :)<struct errinfo_api_function_,char const *> (:link - 1 - - 0 - - -56 - - - 2 - :);@] + 0 @@ -4150,7 +4235,7 @@ 0 - -40 + -28 2 @@ -4159,7 +4244,7 @@ 0 - -37 + -74 2 @@ -4168,7 +4253,7 @@ 0 - -27 + -67 2 @@ -4216,27 +4301,7 @@ - 5 - 2 - [@typedef (:link - 1 - - 0 - - -57 - - - 2 - :)<struct errinfo_file_name_,std::string> (:link - 1 - - 0 - - -61 - - - 2 - :);@] + 0 @@ -4313,7 +4378,27 @@ - 0 + 5 + 2 + [@typedef (:link + 1 + + 0 + + -57 + + + 2 + :)<struct errinfo_file_handle_,weak_ptr<FILE> > (:link + 1 + + 0 + + -68 + + + 2 + :);@] @@ -4346,7 +4431,27 @@ - 0 + 5 + 2 + [@typedef (:link + 1 + + 0 + + -57 + + + 2 + :)<struct errinfo_api_function_,char const *> (:link + 1 + + 0 + + -71 + + + 2 + :);@] @@ -4368,27 +4473,7 @@ - 5 - 2 - [@typedef - 1 - - 0 - - -57 - - - 2 - <struct errinfo_file_handle_,weak_ptr<FILE> > - 1 - - 0 - - -73 - - - 2 - ;@] + 0 @@ -4413,17 +4498,6 @@ 0 - - - 0 - - -23 - - - - 0 - - 0 @@ -4432,7 +4506,27 @@ - 0 + 5 + 2 + [@typedef + 1 + + 0 + + -57 + + + 2 + <struct errinfo_errno_,int> + 1 + + 0 + + -76 + + + 2 + ;@] @@ -4453,6 +4547,57 @@ -78 + + 7 + 2 + [@class (:link + 1 + + 0 + + -78 + + + 2 + :) { protected: (:include + 1 + + 0 + + -21 + + + 2 + decl pre_indent="4":) (:include + 1 + + 0 + + -79 + + + 2 + decl pre_indent="4":) };@] + + + + + 0 + + -79 + + + + 0 + + + + + 0 + + -80 + + 0 @@ -4464,13 +4609,13 @@ api - 80 + 82 reno_layer - 74 + 76 0 @@ -4479,7 +4624,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -7 + + + 2 + def:)@] @@ -4490,7 +4646,36 @@ - 0 + 7 + 2 + [@(:include + 1 + + 0 + + -30 + + + 2 + decl:) (:include + 1 + + 0 + + -11 + + + 2 + decl:) (:include + 1 + + 0 + + -65 + + + 2 + decl:)@] @@ -4511,6 +4696,897 @@ -8 + + 3 + 2 + [@(:include + 1 + + 0 + + -68 + + + 2 + def:)@] + + + + + 0 + + -9 + + + + 3 + 2 + [@(:include + 1 + + 0 + + -45 + + + 2 + decl:)@] + + + + + 0 + + -10 + + + + 0 + + + + + 0 + + -11 + + + + 0 + + + + + 0 + + -12 + + + + 0 + + + + + 0 + + -13 + + + + 0 + + + + + 0 + + -14 + + + + 0 + + + + + 0 + + -15 + + + + 0 + + + + + 0 + + -16 + + + + 0 + + + + + 0 + + -17 + + + + 0 + + + + + 0 + + -18 + + + + 3 + 2 + [@(:include + 1 + + 0 + + -76 + + + 2 + def:)@] + + + + + 0 + + -19 + + + + 0 + + + + + 0 + + -20 + + + + 0 + + + + + 0 + + -21 + + + + 0 + + + + + 0 + + -22 + + + + 0 + + + + + 0 + + -23 + + + + 0 + + + + + 0 + + -25 + + + + 3 + 2 + [@(:include + 1 + + 0 + + -26 + + + 2 + def:)@] + + + + + 0 + + -24 + + + + 0 + + + + + 0 + + -26 + + + + 0 + + + + + 0 + + -27 + + + + 0 + + + + + 0 + + -28 + + + + 0 + + + + + 0 + + -29 + + + + 3 + 2 + [@(:include + 1 + + 0 + + -40 + + + 2 + def:)@] + + + + + 0 + + -30 + + + + 0 + + + + + 0 + + -31 + + + + 3 + 2 + [@(:include + 1 + + 0 + + -62 + + + 2 + decl:)@] + + + + + 0 + + -32 + + + + 0 + + + + + 0 + + -33 + + + + 33 + 2 + [@#include <(:link + 1 + + 0 + + -6 + + + 2 + :)> #include <(:link + 1 + + 0 + + -54 + + + 2 + :)> #include <(:link + 1 + + 0 + + -56 + + + 2 + :)> #include <(:link + 1 + + 0 + + -37 + + + 2 + :)> #include <(:link + 1 + + 0 + + -35 + + + 2 + :)> #include <(:link + 1 + + 0 + + -31 + + + 2 + :)> #include <(:link + 1 + + 0 + + -52 + + + 2 + :)> #include <(:link + 1 + + 0 + + -59 + + + 2 + :)> #include <(:link + 1 + + 0 + + -18 + + + 2 + :)> #include <(:link + 1 + + 0 + + -8 + + + 2 + :)> #include <(:link + 1 + + 0 + + -25 + + + 2 + :)> #include <(:link + 1 + + 0 + + -5 + + + 2 + :)> #include <(:link + 1 + + 0 + + -46 + + + 2 + :)> #ifndef (:link + 1 + + 0 + + -58 + + + 2 + |BOOST_NO_EXCEPTIONS:) #include <(:link + 1 + + 0 + + -29 + + + 2 + :)> #include <(:link + 1 + + 0 + + -38 + + + 2 + :)> #endif@] + + + + + 0 + + -34 + + + + 0 + + + + + 0 + + -35 + + + + 5 + 2 + [@(:include + 1 + + 0 + + -57 + + + 2 + def:) (:include + 1 + + 0 + + -48 + + + 2 + decl:)@] + + + + + 0 + + -36 + + + + 0 + + + + + 0 + + -37 + + + + 3 + 2 + [@(:include + 1 + + 0 + + -14 + + + 2 + decl:)@] + + + + + 0 + + -38 + + + + 13 + 2 + [@(:include + 1 + + 0 + + -53 + + + 2 + decl:) (:include + 1 + + 0 + + -49 + + + 2 + decl:) (:include + 1 + + 0 + + -42 + + + 2 + decl:) (:include + 1 + + 0 + + -51 + + + 2 + decl:) (:include + 1 + + 0 + + -77 + + + 2 + decl:) (:include + 1 + + 0 + + -69 + + + 2 + decl:)@] + + + + + 0 + + -39 + + + + 0 + + + + + 0 + + -40 + + + + 0 + + + + + 0 + + -41 + + + + 0 + + + + + 0 + + -42 + + + + 0 + + + + + 0 + + -43 + + + + 0 + + + + + 0 + + -44 + + + + 3 + 2 + [@(:include + 1 + + 0 + + -15 + + + 2 + decl:)@] + + + + + 0 + + -45 + + + + 0 + + + + + 0 + + -46 + + + + 3 + 2 + [@(:include + 1 + + 0 + + -10 + + + 2 + def:)@] + + + + + 0 + + -47 + + + + 0 + + + + + 0 + + -48 + + + + 0 + + + + + 0 + + -49 + + + + 0 + + + + + 0 + + -50 + + + + 5 + 2 + [@(:include + 1 + + 0 + + -13 + + + 2 + decl:) namespace boost { (:include + 1 + + 0 + + -32 + + + 2 + decl:) }@] + + + + + 0 + + -51 + + + + 0 + + + + + 0 + + -52 + + + + 3 + 2 + [@(:include + 1 + + 0 + + -71 + + + 2 + def:)@] + + + + + 0 + + -53 + + + + 0 + + + + + 0 + + -54 + + + + 3 + 2 + [@(:include + 1 + + 0 + + -57 + + + 2 + decl:)@] + + + + + 0 + + -55 + + + + 0 + + + + + 0 + + -56 + + 11 2 @@ -4519,7 +5595,7 @@ 0 - -11 + -78 2 @@ -4562,833 +5638,6 @@ :)<struct throw_line_,int> throw_line;@] - - - 0 - - -9 - - - - 3 - 2 - [@(:include - 1 - - 0 - - -7 - - - 2 - def:)@] - - - - - 0 - - -10 - - - - 0 - - - - - 0 - - -11 - - - - 0 - - - - - 0 - - -12 - - - - 0 - - - - - 0 - - -13 - - - - 0 - - - - - 0 - - -14 - - - - 0 - - - - - 0 - - -15 - - - - 7 - 2 - [@(:include - 1 - - 0 - - -72 - - - 2 - decl:) (:include - 1 - - 0 - - -63 - - - 2 - decl:) (:include - 1 - - 0 - - -54 - - - 2 - decl:)@] - - - - - 0 - - -16 - - - - 3 - 2 - [@(:include - 1 - - 0 - - -57 - - - 2 - decl:)@] - - - - - 0 - - -17 - - - - 3 - 2 - [@(:include - 1 - - 0 - - -73 - - - 2 - def:)@] - - - - - 0 - - -18 - - - - 0 - - - - - 0 - - -19 - - - - 0 - - - - - 0 - - -20 - - - - 0 - - - - - 0 - - -21 - - - - 0 - - - - - 0 - - -24 - - - - 0 - - - - - 0 - - -25 - - - - 5 - 2 - [@(:include - 1 - - 0 - - -44 - - - 2 - decl:) namespace boost { (:include - 1 - - 0 - - -26 - - - 2 - decl:) }@] - - - - - 0 - - -26 - - - - 0 - - - - - 0 - - -27 - - - - 0 - - - - - 0 - - -28 - - - - 0 - - - - - 0 - - -29 - - - - 0 - - - - - 0 - - -30 - - - - 0 - - - - - 0 - - -31 - - - - 0 - - - - - 0 - - -32 - - - - 0 - - - - - 0 - - -33 - - - - 0 - - - - - 0 - - -34 - - - - 0 - - - - - 0 - - -35 - - - - 29 - 2 - [@#include <(:link - 1 - - 0 - - -15 - - - 2 - :)> #include <(:link - 1 - - 0 - - -16 - - - 2 - :)> #include <(:link - 1 - - 0 - - -8 - - - 2 - :)> #include <(:link - 1 - - 0 - - -67 - - - 2 - :)> #include <(:link - 1 - - 0 - - -58 - - - 2 - :)> #include <(:link - 1 - - 0 - - -41 - - - 2 - :)> #include <(:link - 1 - - 0 - - -55 - - - 2 - :)> #include <(:link - 1 - - 0 - - -71 - - - 2 - :)> #include <(:link - 1 - - 0 - - -65 - - - 2 - :)> #include <(:link - 1 - - 0 - - -9 - - - 2 - :)> #include <(:link - 1 - - 0 - - -17 - - - 2 - :)> #include <(:link - 1 - - 0 - - -77 - - - 2 - :)> #include <(:link - 1 - - 0 - - -45 - - - 2 - :)> #include <(:link - 1 - - 0 - - -74 - - - 2 - :)>@] - - - - - 0 - - -36 - - - - 0 - - - - - 0 - - -37 - - - - 0 - - - - - 0 - - -38 - - - - 3 - 2 - [@(:include - 1 - - 0 - - -42 - - - 2 - decl:)@] - - - - - 0 - - -39 - - - - 0 - - - - - 0 - - -40 - - - - 0 - - - - - 0 - - -41 - - - - 3 - 2 - [@(:include - 1 - - 0 - - -33 - - - 2 - decl:)@] - - - - - 0 - - -42 - - - - 0 - - - - - 0 - - -43 - - - - 0 - - - - - 0 - - -44 - - - - 0 - - - - - 0 - - -22 - - - - 0 - - - - - 0 - - -45 - - - - 3 - 2 - [@(:include - 1 - - 0 - - -50 - - - 2 - def:)@] - - - - - 0 - - -46 - - - - 0 - - - - - 0 - - -47 - - - - 0 - - - - - 0 - - -48 - - - - 0 - - - - - 0 - - -49 - - - - 3 - 2 - [@(:include - 1 - - 0 - - -28 - - - 2 - decl:)@] - - - - - 0 - - -50 - - - - 0 - - - - - 0 - - -51 - - - - 0 - - - - - 0 - - -52 - - - - 0 - - - - - 0 - - -53 - - - - 0 - - - - - 0 - - -54 - - - - 0 - - - - - 0 - - -55 - - - - 13 - 2 - [@(:include - 1 - - 0 - - -29 - - - 2 - decl:) (:include - 1 - - 0 - - -24 - - - 2 - decl:) (:include - 1 - - 0 - - -52 - - - 2 - decl:) (:include - 1 - - 0 - - -76 - - - 2 - decl:) (:include - 1 - - 0 - - -34 - - - 2 - decl:) (:include - 1 - - 0 - - -36 - - - 2 - decl:)@] - - - - - 0 - - -56 - - - - 0 - - 0 @@ -5408,27 +5657,7 @@ - 5 - 2 - [@(:include - 1 - - 0 - - -57 - - - 2 - def:) (:include - 1 - - 0 - - -32 - - - 2 - decl:)@] + 0 @@ -5439,7 +5668,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -12 + + + 2 + def:)@] @@ -5472,18 +5712,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -48 - - - 2 - decl:)@] + 0 @@ -5516,18 +5745,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -12 - - - 2 - def:)@] + 0 @@ -5549,18 +5767,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -13 - - - 2 - decl:)@] + 0 @@ -5604,18 +5811,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -56 - - - 2 - def:)@] + 0 @@ -5648,18 +5844,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -18 - - - 2 - def:)@] + 0 @@ -5670,18 +5855,18 @@ - 0 - - - - - 0 - - -23 - - - - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -60 + + + 2 + decl:)@] @@ -5703,18 +5888,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -61 - - - 2 - def:)@] + 0 @@ -5728,6 +5902,28 @@ 0 + + + 0 + + -79 + + + + 0 + + + + + 0 + + -80 + + + + 0 + + @@ -5735,13 +5931,13 @@ decl - 81 + 83 reno_layer - 74 + 76 0 @@ -5816,9 +6012,9 @@ - 3 + 5 2 - [@class (:link + [@char const * 1 0 @@ -5827,7 +6023,16 @@ 2 - :);@] + ( boost:: + 1 + + 0 + + -78 + + + 2 + const & e ) throw();@] @@ -5849,9 +6054,90 @@ - 1 + 19 2 - [@template <class ErrorInfo,class E> typename ErrorInfo::(:link error_info::value_type mod="m":) const * (:link get_error_info:)( E const & x ); template <class ErrorInfo,class E> typename ErrorInfo::(:link error_info::value_type mod="m":) * (:link get_error_info:)( E & x );@] + [@#if !defined( BOOST_EXCEPTION_DISABLE ) #include <(:link + 1 + + 0 + + -56 + + + 2 + :)> #include <boost/current_function.hpp> #define (:link + 1 + + 0 + + -13 + + + 2 + :)(x)\ ::boost::(:link + 1 + + 0 + + -32 + + + 2 + :)( ::boost::(:link + 1 + + 0 + + -60 + + + 2 + :)(x) <<\ ::boost::(:link + 1 + + 0 + + -56 + + + 2 + |throw_function:)(BOOST_CURRENT_FUNCTION) <<\ ::boost::(:link + 1 + + 0 + + -56 + + + 2 + |throw_file:)(__FILE__) <<\ ::boost::(:link + 1 + + 0 + + -56 + + + 2 + |throw_line:)((int)__LINE__) ) #else #define (:link + 1 + + 0 + + -13 + + + 2 + :)(x) ::boost::(:link + 1 + + 0 + + -32 + + + 2 + :)(x) #endif@] @@ -5862,7 +6148,9 @@ - 0 + 1 + 2 + [@template <class ErrorInfo,class E> typename ErrorInfo::(:link error_info::value_type mod="m":) const * (:link get_error_info:)( E const & x ); template <class ErrorInfo,class E> typename ErrorInfo::(:link error_info::value_type mod="m":) * (:link get_error_info:)( E & x );@] @@ -5873,7 +6161,18 @@ - 0 + 3 + 2 + [@template <class E> E * + 1 + + 0 + + -15 + + + 2 + ();@] @@ -5938,6 +6237,46 @@ -21 + + 7 + 2 + [@(:link + 1 + + 0 + + -21 + + + 2 + mod="m":)(); (:link + 1 + + 0 + + -21 + + + 2 + mod="m":)( (:link + 1 + + 0 + + -78 + + + 2 + :) const & x );@] + + + + + 0 + + -22 + + 0 @@ -5946,31 +6285,11 @@ 0 - -24 + -23 - 5 - 2 - [@typedef (:link - 1 - - 0 - - -57 - - - 2 - :)<struct tag_original_exception_type,std::type_info const *> - 1 - - 0 - - -24 - - - 2 - ;@] + 0 @@ -5984,6 +6303,17 @@ 0 + + + 0 + + -24 + + + + 0 + + 0 @@ -5992,27 +6322,7 @@ - 5 - 2 - [@#ifdef BOOST_NO_EXCEPTIONS void (:link - 1 - - 0 - - -26 - - - 2 - :)( std::exception const & e ); // user defined #else template <class E> void (:link - 1 - - 0 - - -26 - - - 2 - :)( E const & e ); #endif@] + 0 @@ -6023,45 +6333,7 @@ - 9 - 2 - [@(:link - 1 - - 0 - - -40 - - - 2 - mod="m":) const & (:link - 1 - - 0 - - -27 - - - 2 - mod="m":)() const; (:link - 1 - - 0 - - -40 - - - 2 - mod="m":) & (:link - 1 - - 0 - - -27 - - - 2 - mod="m":)();@] + 0 @@ -6074,7 +6346,7 @@ 3 2 - [@template <class T> ---unspecified--- (:link + [@typedef T (:link 1 0 @@ -6083,7 +6355,7 @@ 2 - :)( T const & e );@] + mod="m":);@] @@ -6094,27 +6366,7 @@ - 5 - 2 - [@class (:link - 1 - - 0 - - -29 - - - 2 - :): public std::exception public boost:: - 1 - - 0 - - -11 - - - 2 - { ---unspecified--- };@] + 0 @@ -6125,7 +6377,36 @@ - 0 + 7 + 2 + [@template <class E> std::string (:link + 1 + + 0 + + -30 + + + 2 + :)( E const & e ); std::string (:link + 1 + + 0 + + -30 + + + 2 + :)( (:link + 1 + + 0 + + -42 + + + 2 + :) const & p );@] @@ -6149,7 +6430,7 @@ 5 2 - [@template <class E, class Tag, class T> E const & (:link + [@#ifdef BOOST_NO_EXCEPTIONS void (:link 1 0 @@ -6158,16 +6439,16 @@ 2 - mod="/":)( E const & x, (:link + :)( std::exception const & e ); // user defined #else template <class E> void (:link 1 0 - -57 + -32 2 - :)<Tag,T> const & v );@] + :)( E const & e ); #endif@] @@ -6178,36 +6459,7 @@ - 7 - 2 - [@template <class E, class Tag1, class T1, ..., class TagN, class TN> E const & (:link - 1 - - 0 - - -33 - - - 2 - mod="/":)( E const & x, (:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)< (:link - 1 - - 0 - - -57 - - - 2 - :)<Tag1,T1>, ..., (:link - 1 - - 0 - - -57 - - - 2 - :)<TagN,TN> > const & v );@] + 0 @@ -6218,27 +6470,7 @@ - 5 - 2 - [@(:link - 1 - - 0 - - -52 - - - 2 - :) (:link - 1 - - 0 - - -34 - - - 2 - :)();@] + 0 @@ -6260,27 +6492,7 @@ - 5 - 2 - [@void (:link - 1 - - 0 - - -36 - - - 2 - :)( (:link - 1 - - 0 - - -52 - - - 2 - :) const & ep ); + 0 @@ -6291,27 +6503,7 @@ - 5 - 2 - [@(:link - 1 - - 0 - - -37 - - - 2 - mod="m":)( (:link - 1 - - 0 - - -40 - - - 2 - mod="m":) const & v );@] + 0 @@ -6344,18 +6536,7 @@ - 3 - 2 - [@typedef T (:link - 1 - - 0 - - -40 - - - 2 - mod="m":);@] + 0 @@ -6379,7 +6560,7 @@ 3 2 - [@template <class E> E * + [@typedef ---unspecified--- (:link 1 0 @@ -6388,7 +6569,7 @@ 2 - ();@] + :);@] @@ -6399,18 +6580,7 @@ - 3 - 2 - [@(:link - 1 - - 0 - - -43 - - - 2 - mod="m":)();@] + 0 @@ -6420,100 +6590,6 @@ -44 - - 19 - 2 - [@#if !defined( BOOST_EXCEPTION_DISABLE ) #include <(:link - 1 - - 0 - - -8 - - - 2 - :)> #include <boost/current_function.hpp> #define (:link - 1 - - 0 - - -44 - - - 2 - :)(x)\ ::boost::(:link - 1 - - 0 - - -26 - - - 2 - :)( ::boost::(:link - 1 - - 0 - - -48 - - - 2 - :)(x) <<\ ::boost::(:link - 1 - - 0 - - -8 - - - 2 - |throw_function:)(BOOST_CURRENT_FUNCTION) <<\ ::boost::(:link - 1 - - 0 - - -8 - - - 2 - |throw_file:)(__FILE__) <<\ ::boost::(:link - 1 - - 0 - - -8 - - - 2 - |throw_line:)((int)__LINE__) ) #else #define (:link - 1 - - 0 - - -44 - - - 2 - :)(x) ::boost::(:link - 1 - - 0 - - -26 - - - 2 - :)(x) #endif@] - - - - - 0 - - -22 - - 0 @@ -6526,7 +6602,18 @@ - 0 + 3 + 2 + [@template <class T> ---unspecified--- (:link + 1 + + 0 + + -45 + + + 2 + :)( T const & e );@] @@ -6537,36 +6624,7 @@ - 7 - 2 - [@(:link - 1 - - 0 - - -46 - - - 2 - mod="m":)(); (:link - 1 - - 0 - - -46 - - - 2 - mod="m":)( (:link - 1 - - 0 - - -11 - - - 2 - :) const & x );@] + 0 @@ -6588,9 +6646,9 @@ - 3 + 5 2 - [@template <class T> ---unspecified--- (:link + [@template <class E, class Tag, class T> E const & (:link 1 0 @@ -6599,7 +6657,16 @@ 2 - :)( T const & x );@] + mod="/":)( E const & x, (:link + 1 + + 0 + + -57 + + + 2 + :)<Tag,T> const & v );@] @@ -6610,7 +6677,27 @@ - 0 + 5 + 2 + [@typedef (:link + 1 + + 0 + + -57 + + + 2 + :)<struct tag_original_exception_type,std::type_info const *> + 1 + + 0 + + -49 + + + 2 + ;@] @@ -6632,7 +6719,27 @@ - 0 + 5 + 2 + [@template <class T> (:link + 1 + + 0 + + -42 + + + 2 + :) (:link + 1 + + 0 + + -51 + + + 2 + :)( T const & e );@] @@ -6643,18 +6750,7 @@ - 3 - 2 - [@typedef ---unspecified--- (:link - 1 - - 0 - - -52 - - - 2 - :);@] + 0 @@ -6665,7 +6761,27 @@ - 0 + 5 + 2 + [@class (:link + 1 + + 0 + + -53 + + + 2 + :): public std::exception public boost:: + 1 + + 0 + + -78 + + + 2 + { ---unspecified--- };@] @@ -6676,18 +6792,7 @@ - 3 - 2 - [@std::string (:link - 1 - - 0 - - -54 - - - 2 - :)();@] + 0 @@ -6764,7 +6869,18 @@ - 0 + 3 + 2 + [@template <class T> ---unspecified--- (:link + 1 + + 0 + + -60 + + + 2 + :)( T const & x );@] @@ -6786,7 +6902,36 @@ - 0 + 7 + 2 + [@template <class E, class Tag1, class T1, ..., class TagN, class TN> E const & (:link + 1 + + 0 + + -62 + + + 2 + mod="/":)( E const & x, (:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)< (:link + 1 + + 0 + + -57 + + + 2 + :)<Tag1,T1>, ..., (:link + 1 + + 0 + + -57 + + + 2 + :)<TagN,TN> > const & v );@] @@ -6797,27 +6942,7 @@ - 5 - 2 - [@char const * - 1 - - 0 - - -63 - - - 2 - ( boost:: - 1 - - 0 - - -11 - - - 2 - const & e ) throw();@] + 0 @@ -6839,7 +6964,18 @@ - 0 + 3 + 2 + [@std::string (:link + 1 + + 0 + + -65 + + + 2 + :)();@] @@ -6861,7 +6997,45 @@ - 0 + 9 + 2 + [@(:link + 1 + + 0 + + -28 + + + 2 + mod="m":) const & (:link + 1 + + 0 + + -67 + + + 2 + mod="m":)() const; (:link + 1 + + 0 + + -28 + + + 2 + mod="m":) & (:link + 1 + + 0 + + -67 + + + 2 + mod="m":)();@] @@ -6883,7 +7057,27 @@ - 0 + 5 + 2 + [@void (:link + 1 + + 0 + + -69 + + + 2 + :)( (:link + 1 + + 0 + + -42 + + + 2 + :) const & ep ); @@ -6916,36 +7110,7 @@ - 7 - 2 - [@template <class E> std::string (:link - 1 - - 0 - - -72 - - - 2 - :)( E const & e ); std::string (:link - 1 - - 0 - - -72 - - - 2 - :)( (:link - 1 - - 0 - - -52 - - - 2 - :) const & p );@] + 0 @@ -6967,7 +7132,27 @@ - 0 + 5 + 2 + [@(:link + 1 + + 0 + + -74 + + + 2 + mod="m":)( (:link + 1 + + 0 + + -28 + + + 2 + mod="m":) const & v );@] @@ -6981,17 +7166,6 @@ 0 - - - 0 - - -23 - - - - 0 - - 0 @@ -7000,27 +7174,7 @@ - 5 - 2 - [@template <class T> (:link - 1 - - 0 - - -52 - - - 2 - :) (:link - 1 - - 0 - - -76 - - - 2 - :)( T const & e );@] + 0 @@ -7031,7 +7185,27 @@ - 0 + 5 + 2 + [@(:link + 1 + + 0 + + -42 + + + 2 + :) (:link + 1 + + 0 + + -77 + + + 2 + :)();@] @@ -7041,6 +7215,50 @@ -78 + + 3 + 2 + [@class (:link + 1 + + 0 + + -78 + + + 2 + :);@] + + + + + 0 + + -79 + + + + 3 + 2 + [@(:link + 1 + + 0 + + -79 + + + 2 + mod="m":)();@] + + + + + 0 + + -80 + + 0 @@ -7052,13 +7270,13 @@ include - 82 + 84 reno_layer - 74 + 76 0 @@ -7067,54 +7285,9 @@ - 11 + 1 2 - (:auto !!:) All exception types that derive from boost::(:link - 1 - - 0 - - -11 - - - 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. When exceptions derive from boost::(:link - 1 - - 0 - - -11 - - - 2 - :), arbitrary data can be added to exception objects: *At the point of the throw; *At a later time as exceptions bubble up the call stack. (:include - 1 - - 0 - - -60 - - - 2 - :) (:include - 1 - - 0 - - -75 - - - 2 - :) (:include - 1 - - 0 - - -69 - - - 2 - :) + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -7125,171 +7298,9 @@ - 37 + 1 2 - [@#include < - 1 - - 0 - - -71 - - - 2 - > #include < - 1 - - 0 - - -65 - - - 2 - > #include < - 1 - - 0 - - -9 - - - 2 - > #include < - 1 - - 0 - - -17 - - - 2 - > #include < - 1 - - 0 - - -77 - - - 2 - > #include < - 1 - - 0 - - -45 - - - 2 - > #include < - 1 - - 0 - - -58 - - - 2 - > #include < - 1 - - 0 - - -25 - - - 2 - > #include <boost/shared_ptr.hpp> #include <boost/weak_ptr.hpp> #include <stdio.h> #include <errno.h> #include <exception> struct error : virtual std::exception, virtual boost:: - 1 - - 0 - - -11 - - - 2 - { }; struct file_error : virtual error { }; struct file_open_error: virtual file_error { }; struct file_read_error: virtual file_error { }; boost::shared_ptr<FILE> open_file( char const * file, char const * mode ) { if( FILE * f=fopen(file,mode) ) return boost::shared_ptr<FILE>(f,fclose); else - 1 - - 0 - - -44 - - - 2 - ( file_open_error() << boost:: - 1 - - 0 - - -56 - - - 2 - ("fopen") << boost:: - 1 - - 0 - - -7 - - - 2 - (errno) << boost:: - 1 - - 0 - - -61 - - - 2 - (file) << boost:: - 1 - - 0 - - -50 - - - 2 - (mode) ); } size_t read_file( boost::shared_ptr<FILE> const & f, void * buf, size_t size ) { size_t nr=fread(buf,1,size,f.get()); if( ferror(f.get()) ) - 1 - - 0 - - -44 - - - 2 - ( file_read_error() << boost:: - 1 - - 0 - - -56 - - - 2 - ("fread") << boost:: - 1 - - 0 - - -7 - - - 2 - (errno) << boost:: - 1 - - 0 - - -73 - - - 2 - (f) ); return nr; }@] + (:auto !!:) !!!Synopsis (:include synopsis:) @@ -7311,12 +7322,12 @@ 2 - :) instance for transporting a relevant errno value in exceptions deriving from boost::(:link + :) instance for transporting the string passed as a second argument to fopen in exceptions indicating fopen failures and deriving from boost::(:link 1 0 - -11 + -78 2 @@ -7325,7 +7336,7 @@ 0 - -6 + -80 2 @@ -7355,7 +7366,7 @@ 1 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (:auto !!!:) !!!Synopsis (:include synopsis:) @@ -7366,72 +7377,27 @@ - 15 + 5 2 - (:auto !!!:) Here is how cloning can be enabled in a throw-expression (15.1): [@#include <(:link + (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard 1 0 - -58 + -57 2 - :)> #include <(:link + instance for transporting strings returned by std::type_info::name in exceptions deriving from boost:: 1 0 - -9 + -78 2 - :)> #include <stdio.h> #include <errno.h> struct file_read_error: virtual boost::(:link - 1 - - 0 - - -11 - - - 2 - :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw boost::(:link - 1 - - 0 - - -28 - - - 2 - :)(file_read_error()) << boost::(:link - 1 - - 0 - - -7 - - - 2 - :)(errno); }@] Of course, (:link - 1 - - 0 - - -28 - - - 2 - :) may be used with any exception type; there is no requirement that it should derive from boost::(:link - 1 - - 0 - - -11 - - - 2 - :). + objects. @@ -7442,9 +7408,9 @@ - 13 + 7 2 - (:auto !!!:) (:include synopsis:) Class boost::(:link + (:auto !!!:) (:include synopsis:) The 1 0 @@ -7453,16 +7419,16 @@ 2 - :) is designed to be used as a universal base for user-defined exception types. An object of any type deriving from boost::(:link + function is intended to be called from a user-defined std::exception::what() override. This allows diagnostic information to be returned as the what() string. !!!!Returns: A pointer to a zero-terminated buffer that contains a string similar to the std::string returned by the 1 0 - -11 + -30 2 - :) can store data of arbitrary types, using the (:link + function, or null to indicate a failure. !!!!Throws: Nothing. !!!!Note: The returned pointer becomes invalid if any 1 0 @@ -7471,34 +7437,7 @@ 2 - :) wrapper and (:link - 1 - - 0 - - -32 - - - 2 - mod="/":). To retrieve data from a boost::(:link - 1 - - 0 - - -11 - - - 2 - :) object, use the (:link - 1 - - 0 - - -13 - - - 2 - :) function template. + is modified or added to the exception object, or if another diagnostic information function is called. @@ -7525,7 +7464,7 @@ 0 - -11 + -78 2 @@ -7534,7 +7473,7 @@ 0 - -6 + -80 2 @@ -7548,6 +7487,46 @@ -13 + + 7 + 2 + (:auto !!!:) (:include synopsis:) This macro takes an exception object, records BOOST_CURRENT_FUNCTION, __FILE__ and __LINE__ in it, and forwards it to + 1 + + 0 + + -32 + + + 2 + . To recover this information at the catch site, use + 1 + + 0 + + -14 + + + 2 + ; the information is also included in the message returned by + 1 + + 0 + + -30 + + + 2 + . + + + + + 0 + + -14 + + 13 2 @@ -7565,7 +7544,7 @@ 0 - -11 + -78 2 @@ -7574,7 +7553,7 @@ 0 - -32 + -48 2 @@ -7583,7 +7562,7 @@ 0 - -13 + -14 2 @@ -7592,7 +7571,7 @@ 0 - -13 + -14 2 @@ -7601,7 +7580,7 @@ 0 - -39 + -58 2 @@ -7612,7 +7591,68 @@ 0 - -14 + -15 + + + + 1 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: This function must not be called outside of a catch block. !!!!Returns: A pointer of type E to the current exception object, or null if the current exception object can not be converted to E *. !!!!Throws: Nothing. + + + + + 0 + + -16 + + + + 3 + 2 + (:auto !!:) This header has been deprecated. Please #include < + 1 + + 0 + + -33 + + + 2 + > instead. + + + + + 0 + + -17 + + + + 1 + 2 + (:auto !!:) (:pagelist fmt="index" tags="type":) + + + + + 0 + + -18 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -19 @@ -7623,7 +7663,7 @@ 0 - -11 + -78 2 @@ -7632,7 +7672,7 @@ 0 - -48 + -60 2 @@ -7641,7 +7681,7 @@ 0 - -11 + -78 2 @@ -7650,7 +7690,7 @@ 0 - -35 + -33 2 @@ -7686,7 +7726,7 @@ 0 - -48 + -60 2 @@ -7695,7 +7735,7 @@ 0 - -48 + -60 2 @@ -7704,7 +7744,7 @@ 0 - -11 + -78 2 @@ -7713,7 +7753,7 @@ 0 - -32 + -48 2 @@ -7722,7 +7762,7 @@ 0 - -11 + -78 2 @@ -7731,420 +7771,13 @@ 0 - -5 + -20 2 |more information can be added to the exception at a later time:). - - - 0 - - -15 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -16 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -17 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -18 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard - 1 - - 0 - - -57 - - - 2 - instance for transporting strings returned by std::type_info::name in exceptions deriving from boost:: - 1 - - 0 - - -11 - - - 2 - objects. - - - - - 0 - - -19 - - - - 73 - 2 - !!Synopsis List of documented definitions, declarations and includes by header file: `#include <(:link - 1 - - 0 - - -8 - - - 2 - :)> [@(:include - 1 - - 0 - - -8 - - - 2 - synopsis:)@] `#include <(:link - 1 - - 0 - - -16 - - - 2 - :)> [@(:include - 1 - - 0 - - -16 - - - 2 - synopsis:)@] `#include <(:link - 1 - - 0 - - -58 - - - 2 - :)> [@(:include - 1 - - 0 - - -58 - - - 2 - synopsis:)@] `#include <(:link - 1 - - 0 - - -41 - - - 2 - :)> [@(:include - 1 - - 0 - - -41 - - - 2 - synopsis:)@] `#include <(:link - 1 - - 0 - - -62 - - - 2 - :)> [@(:include - 1 - - 0 - - -62 - - - 2 - synopsis:)@] `#include <(:link - 1 - - 0 - - -15 - - - 2 - :)> [@(:include - 1 - - 0 - - -15 - - - 2 - synopsis:)@] `#include <(:link - 1 - - 0 - - -38 - - - 2 - :)> [@(:include - 1 - - 0 - - -38 - - - 2 - synopsis:)@] `#include <(:link - 1 - - 0 - - -55 - - - 2 - :)> [@(:include - 1 - - 0 - - -55 - - - 2 - synopsis:)@] `#include <(:link - 1 - - 0 - - -49 - - - 2 - :)> [@(:include - 1 - - 0 - - -49 - - - 2 - synopsis:)@] `#include <(:link - 1 - - 0 - - -25 - - - 2 - :)> [@(:include - 1 - - 0 - - -25 - - - 2 - synopsis:)@] `#include < - 1 - - 0 - - -71 - - - 2 - > (:include - 1 - - 0 - - -71 - - - 2 - synopsis:) `#include < - 1 - - 0 - - -65 - - - 2 - > (:include - 1 - - 0 - - -65 - - - 2 - synopsis:) `#include < - 1 - - 0 - - -9 - - - 2 - > (:include - 1 - - 0 - - -9 - - - 2 - synopsis:) `#include < - 1 - - 0 - - -17 - - - 2 - > (:include - 1 - - 0 - - -17 - - - 2 - synopsis:) `#include < - 1 - - 0 - - -77 - - - 2 - > (:include - 1 - - 0 - - -77 - - - 2 - synopsis:) `#include < - 1 - - 0 - - -45 - - - 2 - > (:include - 1 - - 0 - - -45 - - - 2 - synopsis:) `#include < - 1 - - 0 - - -74 - - - 2 - > (:include - 1 - - 0 - - -74 - - - 2 - synopsis:) `#include < - 1 - - 0 - - -35 - - - 2 - > (:include - 1 - - 0 - - -35 - - - 2 - synopsis:) - - 0 @@ -8153,72 +7786,9 @@ - 69 + 11 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 - - -47 - - - 2 - |copying:) of exception objects, implemented non-intrusively and automatically by the boost::(:link - 1 - - 0 - - -26 - - - 2 - :) function. !!Contents #(:link - 1 - - 0 - - -21 - - - 2 - :) #Tutorial ##(:link - 1 - - 0 - - -5 - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -14 - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -47 - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -22 - - - 2 - mod="w":) ##(:link + (:auto !!:) All exception types that derive from boost::(:link 1 0 @@ -8227,106 +7797,16 @@ 2 - mod="w":) ##(:link + :) can be used as type-safe containers of arbitrary data objects, while complying with the no-throw requirements (15.5.1) of the ANSI C++ standard for exception types. When exceptions derive from boost::(:link 1 0 - -30 + -78 2 - mod="w":) #Documentation ##Class (:link - 1 - - 0 - - -11 - - - 2 - :) ##Throwing Exceptions ###(:link - 1 - - 0 - - -44 - - - 2 - :) ###(:link - 1 - - 0 - - -26 - - - 2 - :) ##Transporting of Arbitrary Data to the Catch Site ###(:link - 1 - - 0 - - -57 - - - 2 - :) ###(:link - 1 - - 0 - - -32 - - - 2 - :) ###(:link - 1 - - 0 - - -33 - - - 2 - :) ###(:link - 1 - - 0 - - -13 - - - 2 - :) ###(:link - 1 - - 0 - - -48 - - - 2 - :) ##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads ###(:link - 1 - - 0 - - -52 - - - 2 - :) ###(:link - 1 - - 0 - - -28 - - - 2 - :) ###(:link + :), arbitrary data can be added to exception objects: *At the point of the throw; *At a later time as exceptions bubble up the call stack. (:include 1 0 @@ -8335,34 +7815,7 @@ 2 - :) ###(:link - 1 - - 0 - - -76 - - - 2 - :) ###(:link - 1 - - 0 - - -36 - - - 2 - :) ###(:link - 1 - - 0 - - -29 - - - 2 - :) ##Diagnostic Information ###(:link + :) (:include 1 0 @@ -8371,97 +7824,16 @@ 2 - :) ###(:link + :) (:include 1 0 - -54 + -27 2 - :) ##(:link - 1 - - 0 - - -42 - - - 2 - :) #API ##(:link - 1 - - 0 - - -19 - - - 2 - :) ##(:link - 1 - - 0 - - -70 - - - 2 - :) ##(:link - 1 - - 0 - - -66 - - - 2 - :) ##(:link - 1 - - 0 - - -31 - - - 2 - :) ##(:link - 1 - - 0 - - -64 - - - 2 - :) ##(:link - 1 - - 0 - - -39 - - - 2 - mod="w":) #(:link - 1 - - 0 - - -23 - - - 2 - mod="w":) #(:link - 1 - - 0 - - -53 - - - 2 - mod="w":) !!!Acknowledgements Thanks to Peter Dimov for his continuing help. Also thanks to Tobias Schwinger, Tom Brinkman, Pavel Vozenilek and everyone who participated in the review process. + :) @@ -8471,6 +7843,46 @@ -21 + + 7 + 2 + (:auto !!!:) (:include decl:) !!!!Effects: * Default constructor: initializes an empty boost::(:link + 1 + + 0 + + -78 + + + 2 + :) object. * Copy constructor: initializes a boost::(:link + 1 + + 0 + + -78 + + + 2 + :) object which shares ownership with x of all data added through (:link + 1 + + 0 + + -48 + + + 2 + mod="/":), including data that is added at a future time. !!!!Throws: Nothing. + + + + + 0 + + -22 + + 33 2 @@ -8479,7 +7891,7 @@ 0 - -11 + -78 2 @@ -8488,7 +7900,7 @@ 0 - -11 + -78 2 @@ -8506,7 +7918,7 @@ 0 - -32 + -48 2 @@ -8515,7 +7927,7 @@ 0 - -11 + -78 2 @@ -8533,7 +7945,7 @@ 0 - -11 + -78 2 @@ -8542,7 +7954,7 @@ 0 - -32 + -48 2 @@ -8551,7 +7963,7 @@ 0 - -11 + -78 2 @@ -8560,7 +7972,7 @@ 0 - -32 + -48 2 @@ -8569,7 +7981,7 @@ 0 - -11 + -78 2 @@ -8578,7 +7990,7 @@ 0 - -13 + -14 2 @@ -8587,7 +7999,7 @@ 0 - -13 + -14 2 @@ -8596,7 +8008,7 @@ 0 - -72 + -30 2 @@ -8614,7 +8026,7 @@ 0 - -11 + -78 2 @@ -8625,49 +8037,40 @@ 0 - -24 + -23 - 9 + 7 2 - (:auto !!!:) (:include synopsis:) This + (:auto !!!:) Deriving from boost::(:link 1 0 - -57 + -78 2 - typedef is used by + :) effectively decouples the semantics of a failure from the information that is relevant to each individual instance of reporting a failure with a given semantic. In other words: with boost::(:link 1 0 - -34 + -78 2 - if it defaults to returning an + :), what data a given exception object transports depends primarily on the context in which failures are reported (not on its type.) Since exception types need no members, it becomes very natural to throw exceptions that derive from more than one type to indicate multiple appropriate semantics: [@struct exception_base: virtual std::exception, virtual boost::(:link 1 0 - -52 + -78 2 - that refers to an object of type - 1 - - 0 - - -29 - - - 2 - , to record in it the std::type_info of the original exception object. + :) { }; struct io_error: virtual exception_base { }; struct file_error: virtual io_error { }; struct read_error: virtual io_error { }; struct file_read_error: virtual file_error, virtual read_error { };@] Using this approach, exception types become a simple tagging system for categorizing errors and selecting failures in exception handlers. @@ -8683,6 +8086,370 @@ (:auto !!:) !!!Synopsis (:include synopsis:) + + + 0 + + -24 + + + + 79 + 2 + (:auto !!:) !!!Why doesn't boost::exception derive from std::exception? Despite that (:link + 1 + + 0 + + -63 + + + 2 + |virtual inheritance should be used in deriving from base exception types:), many programmers fail to follow this principle when deriving from std::exception. If boost::(:link + 1 + + 0 + + -78 + + + 2 + :) derives from std::exception, using the (:link + 1 + + 0 + + -60 + + + 2 + :) function with such user-defined types would introduce dangerous ambiguity which would break all catch(std::exception &) statements. Of course, boost::(:link + 1 + + 0 + + -78 + + + 2 + :) should not be used to replace std::exception as a base type in exception type hierarchies. Instead, it should be included as a virtual base, in addition to std::exception (which should also be derived virtually.) !!!Why is boost::exception abstract? To prevent exception-neutral contexts from erroneously erasing the type of the original exception when adding (:link + 1 + + 0 + + -57 + + + 2 + :) to an active exception object: [@catch( boost::(:link + 1 + + 0 + + -78 + + + 2 + :) & e ) { e (:link + 1 + + 0 + + -48 + + + 2 + |<<:) foo_info(foo); throw e; //Compile error: boost::(:link + 1 + + 0 + + -78 + + + 2 + :) is abstract }@] The correct code is: [@catch( boost::(:link + 1 + + 0 + + -78 + + + 2 + :) & e ) { e (:link + 1 + + 0 + + -48 + + + 2 + |<<:) foo_info(foo); throw; //Okay, re-throwing the original exception object. }@] !!!What is the space overhead of the boost::exception base class? The space overhead for the boost::exception data members is negligible in the context of exception handling. Throwing objects that derive from boost::(:link + 1 + + 0 + + -78 + + + 2 + :) does not by itself cause dynamic memory allocations. Deriving from boost::(:link + 1 + + 0 + + -78 + + + 2 + :) enables any data to be added to exceptions, which usually does allocate memory. However, this memory is reclaimed when the exception has been handled, and since typically user code does not allocate memory during the unrolling of the stack, adding error info to exceptions should not cause memory fragmentation. !!!Should I use boost::throw_exception or BOOST_THROW_EXCEPTION or just throw? The benefit of calling boost::(:link + 1 + + 0 + + -32 + + + 2 + :) instead of using throw directly is that it ensures that the emitted exception derives from boost::(:link + 1 + + 0 + + -78 + + + 2 + :) and that it is compatible with boost::(:link + 1 + + 0 + + -77 + + + 2 + :). The (:link + 1 + + 0 + + -13 + + + 2 + :) macro also results in a call to boost::(:link + 1 + + 0 + + -32 + + + 2 + :), but in addition it records in the exception object the __FILE__ and __LINE__ of the throw, as well as the pretty name of the function that throws. This has virtually no overhead, yet enables boost::(:link + 1 + + 0 + + -30 + + + 2 + :) to compose a more useful, if not user-friendly message. Typical use of boost::(:link + 1 + + 0 + + -30 + + + 2 + :) is: [@catch( boost::exception & e ) { std::cerr << "OMG!" << boost::diagnostic_information(e); } catch( ... ) { std::cerr << "OMG!!!"; }@] This is a possible message it may display, the first line is only possible if (:link + 1 + + 0 + + -13 + + + 2 + :) is used: [@example_io.cpp(70): Throw in function class boost::shared_ptr<struct _iobuf> __cdecl my_fopen(const char *,const char *) Dynamic exception type: class boost::exception_detail::clone_impl<class fopen_error> std::exception::what: example_io error [struct boost::(:link + 1 + + 0 + + -71 + + + 2 + :)_ *] = fopen [struct boost::(:link + 1 + + 0 + + -76 + + + 2 + :)_ *] = 2, "No such file or directory" [struct boost::(:link + 1 + + 0 + + -26 + + + 2 + :)_ *] = tmp1.txt [struct boost::(:link + 1 + + 0 + + -7 + + + 2 + :)_ *] = rb@] !!!Why is boost::exception integrated in boost::throw_exception? The boost::(:link + 1 + + 0 + + -32 + + + 2 + :) function predates the Boost Exception library and there has been some concern about its current behavior of injecting boost::(:link + 1 + + 0 + + -78 + + + 2 + :) as a base of any exception passed to boost::(:link + 1 + + 0 + + -32 + + + 2 + :). Such concerns are dictated by the typical strict interpretation of a common principle in C and C++, that users only pay for features they actually use. The problem is that users of Boost Exception can't by themselves cause a library to throw types that derive from boost::(:link + 1 + + 0 + + -78 + + + 2 + :), and without this they can't use any of the Boost Exception facilities. For example, if a user wants to use Boost Serialization in a separate thread, it is desirable to be able to transport exceptions emitted by that library into the main thread where they can be analyzed to generate a user-friendly message. This can be easily achieved using boost::(:link + 1 + + 0 + + -42 + + + 2 + :), but this requires that Boost Serialization throws exceptions using boost::(:link + 1 + + 0 + + -45 + + + 2 + :). If Boost Serialization calls boost::(:link + 1 + + 0 + + -32 + + + 2 + :) to throw, this behavior happens automatically and transparently. The cost of this integration is: * In terms of space: a pointer and 3 ints are added to the static size of exception objects. * In terms of speed: the pointer is initialized to null at the point of the throw. * In terms of coupling: about 400 self-contained lines of C++ with no external includes. !!!Why use operator<< overload for adding info to exceptions? Before throwing an object of type that derives from boost::(:link + 1 + + 0 + + -78 + + + 2 + :), it is often desirable to add one or more (:link + 1 + + 0 + + -57 + + + 2 + :) objects in it. The syntactic sugar provided by (:link + 1 + + 0 + + -48 + + + 2 + :) allows this to be done directly in a throw expression: [@throw error() (:link + 1 + + 0 + + -48 + + + 2 + |<<:) foo_info(foo) (:link + 1 + + 0 + + -48 + + + 2 + |<<:) bar_info(bar);@] which saves typing compared to this possible alternative: [@error e; e.add(foo_info(foo)); e.add(bar_info(bar)); throw e;@] and looks better than something like: [@throw error().add(foo_info(foo)).add(bar_info(bar));@] !!!Why is operator<< allowed to throw? This question is referring to the following issue. Consider this throw statement example: [@throw file_open_error() (:link + 1 + + 0 + + -48 + + + 2 + |<<:) file_name(fn);@] The intention here is to throw a file_open_error, however if (:link + 1 + + 0 + + -48 + + + 2 + mod="/":) fails to copy the std::string contained in the file_name (:link + 1 + + 0 + + -57 + + + 2 + :) wrapper, a std::bad_alloc could propagate instead. This behavior seems undesirable to some programmers. Bjarne Stroustrup, The C++ Programming Language, 3rd Edition, page 371: ->''"Throwing an exception requires an object to throw. A C++ implementation is required to have enough spare memory to be able to throw bad_alloc in case of memory exhaustion. However, it is possible that throwing some other exception will cause memory exhaustion."'' So, an attempt to throw any exception may already result in propagating std::bad_alloc instead. + + 0 @@ -8690,1824 +8457,6 @@ -26 - - 17 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must derive publicly from std::exception. !!!!Effects: * If BOOST_NO_EXCEPTIONS is not defined, boost::(:link - 1 - - 0 - - -26 - - - 2 - :)(e) is equivalent to throw boost::(:link - 1 - - 0 - - -28 - - - 2 - :)(boost::(:link - 1 - - 0 - - -48 - - - 2 - :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link - 1 - - 0 - - -26 - - - 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 (:link - 1 - - 0 - - -26 - - - 2 - :) are allowed to assume that the function never returns; therefore, if the user-defined (:link - 1 - - 0 - - -26 - - - 2 - :) returns, the behavior is undefined. !!!!Note: Under BOOST_NO_EXCEPTIONS, unless BOOST_EXCEPTION_DISABLE is also defined, users can examine the passed exception object using boost:: - 1 - - 0 - - -13 - - - 2 - , or format an automatic diagnostic message using boost:: - 1 - - 0 - - -72 - - - 2 - . - - - - - 0 - - -27 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Description: Returns a (const) reference to the copy of the value passed to (:link - 1 - - 0 - - -57 - - - 2 - :)'s constructor stored in the (:link - 1 - - 0 - - -57 - - - 2 - :) object. !!!!Throws: Nothing. - - - - - 0 - - -28 - - - - 21 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: * T must be a class with an accessible no-throw copy constructor. * If T has any virtual base types, those types must have an accessible default 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 (:link - 1 - - 0 - - -52 - - - 2 - :) support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link - 1 - - 0 - - -28 - - - 2 - :)(my_exception());@] Unless (:link - 1 - - 0 - - -28 - - - 2 - :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link - 1 - - 0 - - -34 - - - 2 - :) may return an (:link - 1 - - 0 - - -52 - - - 2 - :) which refers to an instance of (:link - 1 - - 0 - - -29 - - - 2 - :). See (:link - 1 - - 0 - - -34 - - - 2 - :) for details. !!!!Note: Instead of using the throw keyword directly, it is preferable to call boost::(:link - 1 - - 0 - - -26 - - - 2 - :). This is guaranteed to throw an exception that derives from boost::(:link - 1 - - 0 - - -11 - - - 2 - :) and supports the (:link - 1 - - 0 - - -52 - - - 2 - :) functionality. - - - - - 0 - - -29 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) This type is used by the (:link - 1 - - 0 - - -52 - - - 2 - :) support in Boost Exception. Please see (:link - 1 - - 0 - - -34 - - - 2 - :). - - - - - 0 - - -30 - - - - 19 - 2 - (:auto !!:) Boost Exception provides a namespace-scope function (:link - 1 - - 0 - - -72 - - - 2 - :) which takes a boost::(:link - 1 - - 0 - - -11 - - - 2 - :). The returned string contains: *the string representation of all data objects added to the boost::(:link - 1 - - 0 - - -11 - - - 2 - :) through (:link - 1 - - 0 - - -32 - - - 2 - mod="/":); *the output from std::exception::what; *additional platform-specific diagnostic information. The returned string 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 - - -35 - - - 2 - :)> #include <iostream> void f(); //throws unknown types that derive from boost::(:link - 1 - - 0 - - -11 - - - 2 - :). void g() { try { f(); } catch( boost::(:link - 1 - - 0 - - -11 - - - 2 - :) & e ) { std::cerr << (:link - 1 - - 0 - - -72 - - - 2 - :)(e); } }@] (:include - 1 - - 0 - - -68 - - - 2 - :) - - - - - 0 - - -31 - - - - 1 - 2 - (:auto !!:) (:pagelist fmt="index" tags="function":) - - - - - 0 - - -32 - - - - 7 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link - 1 - - 0 - - -11 - - - 2 - :), or a type that derives (indirectly) from boost::(:link - 1 - - 0 - - -11 - - - 2 - :). !!!!Postcondition: A copy of v is stored into x. If x already contains data of type (:link - 1 - - 0 - - -57 - - - 2 - :)<Tag,T>, that data is overwritten. Basic exception safety guarantee. !!!!Returns: x. (:include throws:) - - - - - 0 - - -33 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link - 1 - - 0 - - -11 - - - 2 - :), or a type that derives (indirectly) from boost::(:link - 1 - - 0 - - -11 - - - 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 - - -34 - - - - 33 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link - 1 - - 0 - - -34 - - - 2 - :) function must not be called outside of a catch block. !!!!Returns: * An (:link - 1 - - 0 - - -52 - - - 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 - - -52 - - - 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 - - -34 - - - 2 - :) refer to the same exception object. * Correct implementation of (:link - 1 - - 0 - - -34 - - - 2 - :) may require compiler support, unless (:link - 1 - - 0 - - -28 - - - 2 - :) was used at the time the currently handled exception object was passed to throw. Whenever - 1 - - 0 - - -34 - - - 2 - fails to properly copy the current exception object, it returns an - 1 - - 0 - - -52 - - - 2 - to an object of type that is as close as possible to the original exception type, using - 1 - - 0 - - -29 - - - 2 - as a final fallback. All such types derive from boost:: - 1 - - 0 - - -11 - - - 2 - , and: ** if the original exception object derives from boost::(:link - 1 - - 0 - - -11 - - - 2 - :), then the boost::(:link - 1 - - 0 - - -11 - - - 2 - :) sub-object of the object referred to by the returned - 1 - - 0 - - -52 - - - 2 - is initialized by the boost::(:link - 1 - - 0 - - -11 - - - 2 - :) copy constructor; ** if available, the exception contains the std::type_info of the original exception object, accessible through - 1 - - 0 - - -13 - - - 2 - < - 1 - - 0 - - -24 - - - 2 - >. - - - - - 0 - - -35 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -36 - - - - 1 - 2 - (:auto !!!:) (:include synopsis:) !!!!Precondition: ep shall not be null. !!!!Throws: The exception to which ep refers. - - - - - 0 - - -37 - - - - 3 - 2 - (:auto !!!:) (:include synopsis:) !!!!Effects: Stores a copy of v in the - 1 - - 0 - - -57 - - - 2 - object. (:include throws:) - - - - - 0 - - -38 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -39 - - - - 19 - 2 - (:auto !!:) Boost Exception responds to the following configuration macros: '''BOOST_NO_RTTI'''\\ '''BOOST_NO_TYPEID''' The first macro prevents Boost Exception from using dynamic_cast and dynamic typeid. If the second macro is also defined, Boost Exception does not use static typeid either. There are no observable degrading effects on the library functionality, except for the following: ->By default, the (:link - 1 - - 0 - - -13 - - - 2 - :) function template can be called with any exception type. If BOOST_NO_RTTI is defined, (:link - 1 - - 0 - - -13 - - - 2 - :) can be used only with objects of type boost::(:link - 1 - - 0 - - -11 - - - 2 - :). !!!!Note: The library needs RTTI functionality. Disabling the language RTTI support enables an internal RTTI system, which may have more or less overhead depending on the platform. '''BOOST_EXCEPTION_DISABLE''' By default, (:link - 1 - - 0 - - -28 - - - 2 - :) and (:link - 1 - - 0 - - -48 - - - 2 - :) are integrated directly in the (:link - 1 - - 0 - - -26 - - - 2 - :) function. Defining BOOST_EXCEPTION_DISABLE disables this integration. Note that on some non-conformant compilers, for example MSVC 7.0 and older, as well as BCC, BOOST_EXCEPTION_DISABLE is implicitly defined in (:link - 1 - - 0 - - -25 - - - 2 - :). '''BOOST_NO_EXCEPTIONS''' This macro disables exception handling in Boost, forwarding all exceptions to a user-defined non-template version of boost:: - 1 - - 0 - - -26 - - - 2 - . However, unless BOOST_EXCEPTION_DISABLE is also defined, users can still examine the exception object for any data added at the point of the throw, or use boost:: - 1 - - 0 - - -72 - - - 2 - (of course under BOOST_NO_EXCEPTIONS, the user-defined boost::throw_exception is not allowed to return to the caller.) - - - - - 0 - - -40 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Definition: The expression - 1 - - 0 - - -57 - - - 2 - <Tag,T>::(:link - 1 - - 0 - - -40 - - - 2 - mod="m":) evaluates to T. - - - - - 0 - - -41 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -42 - - - - 1 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: This function must not be called outside of a catch block. !!!!Returns: A pointer of type E to the current exception object, or null if the current exception object can not be converted to E *. !!!!Throws: Nothing. - - - - - 0 - - -43 - - - - 3 - 2 - (:auto !!!:) (:include decl:) !!!!Effects: Frees all resources associated with a boost::(:link - 1 - - 0 - - -11 - - - 2 - :) object. !!!!Throws: Nothing. - - - - - 0 - - -44 - - - - 7 - 2 - (:auto !!!:) (:include synopsis:) This macro takes an exception object, records BOOST_CURRENT_FUNCTION, __FILE__ and __LINE__ in it, and forwards it to - 1 - - 0 - - -26 - - - 2 - . To recover this information at the catch site, use - 1 - - 0 - - -13 - - - 2 - ; the information is also included in the message returned by - 1 - - 0 - - -72 - - - 2 - . - - - - - 0 - - -22 - - - - 7 - 2 - (:auto !!!:) Deriving from boost::(:link - 1 - - 0 - - -11 - - - 2 - :) effectively decouples the semantics of a failure from the information that is relevant to each individual instance of reporting a failure with a given semantic. In other words: with boost::(:link - 1 - - 0 - - -11 - - - 2 - :), what data a given exception object transports depends primarily on the context in which failures are reported (not on its type.) Since exception types need no members, it becomes very natural to throw exceptions that derive from more than one type to indicate multiple appropriate semantics: [@struct exception_base: virtual std::exception, virtual boost::(:link - 1 - - 0 - - -11 - - - 2 - :) { }; struct io_error: virtual exception_base { }; struct file_error: virtual io_error { }; struct read_error: virtual io_error { }; struct file_read_error: virtual file_error, virtual read_error { };@] Using this approach, exception types become a simple tagging system for categorizing errors and selecting failures in exception handlers. - - - - - 0 - - -45 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -46 - - - - 7 - 2 - (:auto !!!:) (:include decl:) !!!!Effects: * Default constructor: initializes an empty boost::(:link - 1 - - 0 - - -11 - - - 2 - :) object. * Copy constructor: initializes a boost::(:link - 1 - - 0 - - -11 - - - 2 - :) object which shares ownership with x of all data added through (:link - 1 - - 0 - - -32 - - - 2 - mod="/":), including data that is added at a future time. !!!!Throws: Nothing. - - - - - 0 - - -47 - - - - 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 - - -28 - - - 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 - - -26 - - - 2 - :) are guaranteed to derive from boost::(:link - 1 - - 0 - - -11 - - - 2 - :) and to support cloning. (:include - 1 - - 0 - - -10 - - - 2 - :) (:include - 1 - - 0 - - -59 - - - 2 - :) - - - - - 0 - - -48 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: T must be a class with an accessible no-throw copy constructor as per (15.5.1). !!!!Returns: * If T derives from boost::(:link - 1 - - 0 - - -11 - - - 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::(:link - 1 - - 0 - - -11 - - - 2 - :). The T sub-object is initialized from x by the T copy constructor. !!!!Throws: Nothing. - - - - - 0 - - -49 - - - - 1 - 2 - (:auto !!!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -50 - - - - 7 - 2 - (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard (:link - 1 - - 0 - - -57 - - - 2 - :) instance for transporting the string passed as a second argument to fopen in exceptions indicating fopen failures and deriving from boost::(:link - 1 - - 0 - - -11 - - - 2 - :). !!!Example: (:include - 1 - - 0 - - -6 - - - 2 - :) - - - - - 0 - - -51 - - - - 3 - 2 - (:auto !!:) This header has been deprecated. Please #include < - 1 - - 0 - - -35 - - - 2 - > instead. - - - - - 0 - - -52 - - - - 25 - 2 - (:auto !!!:) (:include synopsis:) The (:link - 1 - - 0 - - -52 - - - 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 - - -52 - - - 2 - :)'s operations do not throw. The referenced object remains valid at least as long as there is an (:link - 1 - - 0 - - -52 - - - 2 - :) object that refers to it. Two instances of (:link - 1 - - 0 - - -52 - - - 2 - :) are equivalent and compare equal if and only if they refer to the same exception. The default constructor of (:link - 1 - - 0 - - -52 - - - 2 - :) produces the null value of the type. The null value is equivalent only to itself. !!!!Thread safety * It is legal for multiple threads to hold (:link - 1 - - 0 - - -52 - - - 2 - :) references to the same exception object. * It is illegal for multiple threads to modify the same (:link - 1 - - 0 - - -52 - - - 2 - :) object concurrently. * While calling (:link - 1 - - 0 - - -34 - - - 2 - :) makes a copy of the current exception object, it is still possible for the two copies to share internal state. Therefore, in general it is not safe to call (:link - 1 - - 0 - - -36 - - - 2 - :) concurrently to throw the same exception object into multiple threads. !!!!Nesting of exceptions: An (:link - 1 - - 0 - - -52 - - - 2 - :) can be added as (:link - 1 - - 0 - - -57 - - - 2 - :) to any boost::(:link - 1 - - 0 - - -11 - - - 2 - :). This is a convenient way to nest exceptions. There is no limit on the depth of the nesting, however cyclic references result in undefined behavior. - - - - - 0 - - -53 - - - - 1 - 2 - (:auto !:) This is an alphabetical list of all Boost Exception documentation pages. (:pagelist fmt="index" except_tags="index noindex" mod="w":) - - - - - 0 - - -54 - - - - 9 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: This function must not be called outside of a catch block. !!!!Returns: If the current exception object can be converted to boost::(:link - 1 - - 0 - - -11 - - - 2 - :) or std::exception, this function returns the same string value returned by (:link - 1 - - 0 - - -72 - - - 2 - :) for the current exception object. Otherwise, an unspecified non-empty string is returned. Typical use is to call - 1 - - 0 - - -54 - - - 2 - from a top-level function to output diagnostic information about unhandled exceptions: [@int main() { try { run_program(); } catch( error & e ) { //handle error } catch( ...) { std::cerr << "Unhandled exception!" << std::endl << boost:: - 1 - - 0 - - -54 - - - 2 - (); } }@] - - - - - 0 - - -55 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -56 - - - - 7 - 2 - (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard (:link - 1 - - 0 - - -57 - - - 2 - :) instance for transporting the name of a relevant API function (which does not use exceptions to report errors) in exceptions deriving from boost::(:link - 1 - - 0 - - -11 - - - 2 - :). !!!Example: (:include - 1 - - 0 - - -6 - - - 2 - :) - - - - - 0 - - -57 - - - - 41 - 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 - - -57 - - - 2 - :)<Tag,T> can be passed to (:link - 1 - - 0 - - -32 - - - 2 - mod="/":) to be stored in objects of type boost::(:link - 1 - - 0 - - -11 - - - 2 - :). !!!!Usage: The header <(:link - 1 - - 0 - - -16 - - - 2 - :)> provides a declaration of the (:link - 1 - - 0 - - -57 - - - 2 - :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, for example: [@#include <(:link - 1 - - 0 - - -16 - - - 2 - :)> struct tag_errno; typedef boost::(:link - 1 - - 0 - - -57 - - - 2 - :)<tag_errno,int> errno_info;@] Or, the shorter equivalent: [@#include <(:link - 1 - - 0 - - -16 - - - 2 - :)> typedef boost::(:link - 1 - - 0 - - -57 - - - 2 - :)<struct tag_errno,int> errno_info;@] This errno_info typedef can be passed to (:link - 1 - - 0 - - -32 - - - 2 - mod="/":) (#include <(:link - 1 - - 0 - - -58 - - - 2 - :)> first) to store an int named tag_errno in exceptions of types that derive from boost::(:link - 1 - - 0 - - -11 - - - 2 - :): [@throw file_read_error() (:link - 1 - - 0 - - -32 - - - 2 - |<<:) errno_info(errno);@] It can also be passed to (:link - 1 - - 0 - - -13 - - - 2 - :) (#include <(:link - 1 - - 0 - - -67 - - - 2 - :)> first) to retrieve the tag_errno int from a boost::(:link - 1 - - 0 - - -11 - - - 2 - :): [@catch( boost::(:link - 1 - - 0 - - -11 - - - 2 - :) & x ) { if( int const * e=boost::(:link - 1 - - 0 - - -13 - - - 2 - :)<errno_info>(x) ) .... }@] For convenience and uniformity, Boost Exception defines the following commonly used (:link - 1 - - 0 - - -57 - - - 2 - :) typedefs, ready for use with (:link - 1 - - 0 - - -32 - - - 2 - mod="/":): (:pagelist tags="error_info_instance":) - - - - - 0 - - -58 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -59 - - - - 37 - 2 - (:auto !!!:) When you catch an exception, you can call (:link - 1 - - 0 - - -34 - - - 2 - :) to get an (:link - 1 - - 0 - - -52 - - - 2 - :) object: [@#include <(:link - 1 - - 0 - - -55 - - - 2 - :)> #include <boost/thread.hpp> #include <boost/bind.hpp> void do_work(); //throws cloning-enabled boost::(:link - 1 - - 0 - - -11 - - - 2 - :)s void worker_thread( boost::(:link - 1 - - 0 - - -52 - - - 2 - :) & error ) { try { do_work(); error = boost::(:link - 1 - - 0 - - -52 - - - 2 - :)(); } catch( ... ) { error = boost::(:link - 1 - - 0 - - -34 - - - 2 - :)(); } }@] In the above example, note that (:link - 1 - - 0 - - -34 - - - 2 - :) captures the original type of the exception object. The exception can be thrown again using the (:link - 1 - - 0 - - -36 - - - 2 - :) function: [@// ...continued void work() { boost::(:link - 1 - - 0 - - -52 - - - 2 - :) error; boost::(:link http://www.boost.org/doc/html/boost/thread.html|thread:) t( boost::(:link http://www.boost.org/libs/bind/bind.html|bind:)(worker_thread,boost::(:link http://www.boost.org/doc/html/ref.html|ref:)(error)) ); t.(:link http://www.boost.org/doc/html/boost/thread.html|join:)(); if( error ) boost::(:link - 1 - - 0 - - -36 - - - 2 - :)(error); }@] Note that (:link - 1 - - 0 - - -34 - - - 2 - :) could fail to copy the original exception object in the following cases: * if there is not enough memory, in which case the returned (:link - 1 - - 0 - - -52 - - - 2 - :) points to an instance of std::bad_alloc, or * if (:link - 1 - - 0 - - -28 - - - 2 - :) was not used in the throw-expression passed to the original throw statement and the current implementation does not have the necessary compiler-specific support to copy the exception automatically, in which case the returned (:link - 1 - - 0 - - -52 - - - 2 - :) points to an instance of (:link - 1 - - 0 - - -29 - - - 2 - :). Regardless, the use of (:link - 1 - - 0 - - -34 - - - 2 - :) and (:link - 1 - - 0 - - -36 - - - 2 - :) in the above examples is well-formed. - - - - - 0 - - -60 - - - - 17 - 2 - (:auto !!!:) The following example demonstrates how errno can be stored in exception objects using Boost Exception: [@#include <(:link - 1 - - 0 - - -35 - - - 2 - :)> #include <iostream> typedef boost::(:link - 1 - - 0 - - -57 - - - 2 - :)<struct tag_my_info,int> my_info; //(1) struct my_error: virtual boost::(:link - 1 - - 0 - - -11 - - - 2 - :), virtual std::exception { }; //(2) void f() { throw my_error() << my_info(42); //(3) }@] First, we instantiate the (:link - 1 - - 0 - - -57 - - - 2 - :) template using a unique identifier -- tag_my_info, and the type of the info it identifies -- int. This provides compile-time type safety for the various values stored in exception objects. Second, we define class my_error, which derives from boost::(:link - 1 - - 0 - - -11 - - - 2 - :). Finally, (3) illustrates how the typedef from (1) can be used with (:link - 1 - - 0 - - -32 - - - 2 - |operator<<:) to store values in exception objects at the point of the throw. The stored my_info value can be recovered at a later time like this: [@// ...continued void g() { try { f(); } catch( my_error & x ) { if( int const * mi=boost::(:link - 1 - - 0 - - -13 - - - 2 - :)<my_info>(x) ) std::cerr << "My info: " << *mi; } }@] The (:link - 1 - - 0 - - -13 - - - 2 - :) 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, err will point to it; otherwise a null pointer is returned. - - - - - 0 - - -61 - - 7 2 @@ -10525,7 +8474,7 @@ 0 - -11 + -78 2 @@ -10534,7 +8483,7 @@ 0 - -6 + -80 2 @@ -10545,170 +8494,7 @@ 0 - -62 - - - - 1 - 2 - (:auto !!!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -63 - - - - 7 - 2 - (:auto !!!:) (:include synopsis:) The - 1 - - 0 - - -63 - - - 2 - function is intended to be called from a user-defined std::exception::what() override. This allows diagnostic information to be returned as the what() string. !!!!Returns: A pointer to a zero-terminated buffer that contains a string similar to the std::string returned by the - 1 - - 0 - - -72 - - - 2 - function, or null to indicate a failure. !!!!Throws: Nothing. !!!!Note: The returned pointer becomes invalid if any - 1 - - 0 - - -57 - - - 2 - is modified or added to the exception object, or if another diagnostic information function is called. - - - - - 0 - - -64 - - - - 1 - 2 - (:auto !!:) (:pagelist tags="macro":) - - - - - 0 - - -65 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -66 - - - - 1 - 2 - (:auto !!:) (:pagelist fmt="index" tags="type":) - - - - - 0 - - -67 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -68 - - - - 11 - 2 - !!!!Example: this is a possible output from the (:link - 1 - - 0 - - -72 - - - 2 - :) function, as used in ''libs/exception/example/example_io.cpp:'' [@example_io.cpp(70): Throw in function class boost::shared_ptr<struct _iobuf> __cdecl my_fopen(const char *,const char *) Dynamic exception type: class boost::exception_detail::clone_impl<struct fopen_error> std::exception::what: example_io error [struct boost::(:link - 1 - - 0 - - -56 - - - 2 - :)_ *] = fopen [struct boost::(:link - 1 - - 0 - - -7 - - - 2 - :)_ *] = 2, "No such file or directory" [struct boost::(:link - 1 - - 0 - - -61 - - - 2 - :)_ *] = tmp1.txt [struct boost::(:link - 1 - - 0 - - -50 - - - 2 - :)_ *] = rb@] - - - - - 0 - - -69 + -27 @@ -10719,7 +8505,7 @@ 0 - -41 + -31 2 @@ -10728,7 +8514,7 @@ 0 - -77 + -25 2 @@ -10737,7 +8523,7 @@ 0 - -71 + -52 2 @@ -10746,7 +8532,7 @@ 0 - -9 + -18 2 @@ -10755,7 +8541,7 @@ 0 - -56 + -71 2 @@ -10764,7 +8550,7 @@ 0 - -7 + -76 2 @@ -10773,7 +8559,7 @@ 0 - -11 + -78 2 @@ -10782,7 +8568,7 @@ 0 - -61 + -26 2 @@ -10791,7 +8577,7 @@ 0 - -13 + -14 2 @@ -10802,20 +8588,38 @@ 0 - -70 + -28 - 1 + 5 2 - (:auto !!:) (:pagelist tags="hpp" except_tags="noindex":) + (:auto !!!:) (:include synopsis:) !!!!Definition: The expression + 1 + + 0 + + -57 + + + 2 + <Tag,T>::(:link + 1 + + 0 + + -28 + + + 2 + mod="m":) evaluates to T. 0 - -71 + -29 @@ -10828,7 +8632,7 @@ 0 - -72 + -30 @@ -10839,7 +8643,7 @@ 0 - -11 + -78 2 @@ -10857,7 +8661,7 @@ 0 - -11 + -78 2 @@ -10866,7 +8670,7 @@ 0 - -32 + -48 2 @@ -10875,7 +8679,7 @@ 0 - -11 + -78 2 @@ -10884,7 +8688,7 @@ 0 - -72 + -30 2 @@ -10920,7 +8724,7 @@ 0 - -27 + -67 2 @@ -10929,7 +8733,7 @@ 0 - -27 + -67 2 @@ -10938,7 +8742,7 @@ 0 - -72 + -30 2 @@ -10956,7 +8760,7 @@ 0 - -52 + -42 2 @@ -10965,7 +8769,7 @@ 0 - -72 + -30 2 @@ -10974,7 +8778,7 @@ 0 - -36 + -69 2 @@ -10983,7 +8787,7 @@ 0 - -54 + -65 2 @@ -10992,7 +8796,7 @@ 0 - -68 + -43 2 @@ -11003,7 +8807,2288 @@ 0 - -73 + -31 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -32 + + + + 17 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must derive publicly from std::exception. !!!!Effects: * If BOOST_NO_EXCEPTIONS is not defined, boost::(:link + 1 + + 0 + + -32 + + + 2 + :)(e) is equivalent to throw boost::(:link + 1 + + 0 + + -45 + + + 2 + :)(boost::(:link + 1 + + 0 + + -60 + + + 2 + :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link + 1 + + 0 + + -32 + + + 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 (:link + 1 + + 0 + + -32 + + + 2 + :) are allowed to assume that the function never returns; therefore, if the user-defined (:link + 1 + + 0 + + -32 + + + 2 + :) returns, the behavior is undefined. !!!!Note: Under BOOST_NO_EXCEPTIONS, unless BOOST_EXCEPTION_DISABLE is also defined, users can examine the passed exception object using boost:: + 1 + + 0 + + -14 + + + 2 + , or format an automatic diagnostic message using boost:: + 1 + + 0 + + -30 + + + 2 + . + + + + + 0 + + -33 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -34 + + + + 17 + 2 + (:auto !!!:) The following example demonstrates how errno can be stored in exception objects using Boost Exception: [@#include <(:link + 1 + + 0 + + -33 + + + 2 + :)> #include <iostream> typedef boost::(:link + 1 + + 0 + + -57 + + + 2 + :)<struct tag_my_info,int> my_info; //(1) struct my_error: virtual boost::(:link + 1 + + 0 + + -78 + + + 2 + :), virtual std::exception { }; //(2) void f() { throw my_error() << my_info(42); //(3) }@] First, we instantiate the (:link + 1 + + 0 + + -57 + + + 2 + :) template using a unique identifier -- tag_my_info, and the type of the info it identifies -- int. This provides compile-time type safety for the various values stored in exception objects. Second, we define class my_error, which derives from boost::(:link + 1 + + 0 + + -78 + + + 2 + :). Finally, (3) illustrates how the typedef from (1) can be used with (:link + 1 + + 0 + + -48 + + + 2 + |operator<<:) to store values in exception objects at the point of the throw. The stored my_info value can be recovered at a later time like this: [@// ...continued void g() { try { f(); } catch( my_error & x ) { if( int const * mi=boost::(:link + 1 + + 0 + + -14 + + + 2 + :)<my_info>(x) ) std::cerr << "My info: " << *mi; } }@] The (:link + 1 + + 0 + + -14 + + + 2 + :) 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, err will point to it; otherwise a null pointer is returned. + + + + + 0 + + -35 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -36 + + + + 15 + 2 + (:auto !!!:) Here is how cloning can be enabled in a throw-expression (15.1): [@#include <(:link + 1 + + 0 + + -35 + + + 2 + :)> #include <(:link + 1 + + 0 + + -18 + + + 2 + :)> #include <stdio.h> #include <errno.h> struct file_read_error: virtual boost::(:link + 1 + + 0 + + -78 + + + 2 + :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw boost::(:link + 1 + + 0 + + -45 + + + 2 + :)(file_read_error()) << boost::(:link + 1 + + 0 + + -76 + + + 2 + :)(errno); }@] Of course, (:link + 1 + + 0 + + -45 + + + 2 + :) may be used with any exception type; there is no requirement that it should derive from boost::(:link + 1 + + 0 + + -78 + + + 2 + :). + + + + + 0 + + -37 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -38 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -39 + + + + 1 + 2 + (:auto !:) This is an alphabetical list of all Boost Exception documentation pages. (:pagelist fmt="index" except_tags="index noindex" mod="w":) + + + + + 0 + + -40 + + + + 7 + 2 + (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard (:link + 1 + + 0 + + -57 + + + 2 + :) instance for transporting (in exceptions deriving from boost::(:link + 1 + + 0 + + -78 + + + 2 + :)) an + 1 + + 0 + + -42 + + + 2 + to an exception nested into another exception. + + + + + 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 + + -45 + + + 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 + + -32 + + + 2 + :) are guaranteed to derive from boost::(:link + 1 + + 0 + + -78 + + + 2 + :) and to support cloning. (:include + 1 + + 0 + + -36 + + + 2 + :) (:include + 1 + + 0 + + -55 + + + 2 + :) + + + + + 0 + + -42 + + + + 25 + 2 + (:auto !!!:) (:include synopsis:) The (:link + 1 + + 0 + + -42 + + + 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 + + -42 + + + 2 + :)'s operations do not throw. The referenced object remains valid at least as long as there is an (:link + 1 + + 0 + + -42 + + + 2 + :) object that refers to it. Two instances of (:link + 1 + + 0 + + -42 + + + 2 + :) are equivalent and compare equal if and only if they refer to the same exception. The default constructor of (:link + 1 + + 0 + + -42 + + + 2 + :) produces the null value of the type. The null value is equivalent only to itself. !!!!Thread safety * It is legal for multiple threads to hold (:link + 1 + + 0 + + -42 + + + 2 + :) references to the same exception object. * It is illegal for multiple threads to modify the same (:link + 1 + + 0 + + -42 + + + 2 + :) object concurrently. * While calling (:link + 1 + + 0 + + -77 + + + 2 + :) makes a copy of the current exception object, it is still possible for the two copies to share internal state. Therefore, in general it is not safe to call (:link + 1 + + 0 + + -69 + + + 2 + :) concurrently to throw the same exception object into multiple threads. !!!!Nesting of exceptions: An (:link + 1 + + 0 + + -42 + + + 2 + :) can be added as (:link + 1 + + 0 + + -57 + + + 2 + :) to any boost::(:link + 1 + + 0 + + -78 + + + 2 + :). This is a convenient way to nest exceptions. There is no limit on the depth of the nesting, however cyclic references result in undefined behavior. + + + + + 0 + + -43 + + + + 11 + 2 + !!!!Example: this is a possible output from the (:link + 1 + + 0 + + -30 + + + 2 + :) function, as used in ''libs/exception/example/example_io.cpp:'' [@example_io.cpp(70): Throw in function class boost::shared_ptr<struct _iobuf> __cdecl my_fopen(const char *,const char *) Dynamic exception type: class boost::exception_detail::clone_impl<struct fopen_error> std::exception::what: example_io error [struct boost::(:link + 1 + + 0 + + -71 + + + 2 + :)_ *] = fopen [struct boost::(:link + 1 + + 0 + + -76 + + + 2 + :)_ *] = 2, "No such file or directory" [struct boost::(:link + 1 + + 0 + + -26 + + + 2 + :)_ *] = tmp1.txt [struct boost::(:link + 1 + + 0 + + -7 + + + 2 + :)_ *] = rb@] + + + + + 0 + + -44 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -45 + + + + 21 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: * T must be a class with an accessible no-throw copy constructor. * If T has any virtual base types, those types must have an accessible default 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 (:link + 1 + + 0 + + -42 + + + 2 + :) support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link + 1 + + 0 + + -45 + + + 2 + :)(my_exception());@] Unless (:link + 1 + + 0 + + -45 + + + 2 + :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link + 1 + + 0 + + -77 + + + 2 + :) may return an (:link + 1 + + 0 + + -42 + + + 2 + :) which refers to an instance of (:link + 1 + + 0 + + -53 + + + 2 + :). See (:link + 1 + + 0 + + -77 + + + 2 + :) for details. !!!!Note: Instead of using the throw keyword directly, it is preferable to call boost::(:link + 1 + + 0 + + -32 + + + 2 + :). This is guaranteed to throw an exception that derives from boost::(:link + 1 + + 0 + + -78 + + + 2 + :) and supports the (:link + 1 + + 0 + + -42 + + + 2 + :) functionality. + + + + + 0 + + -46 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -47 + + + + 1 + 2 + (:auto !!:) (:pagelist tags="hpp" except_tags="noindex":) + + + + + 0 + + -48 + + + + 7 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link + 1 + + 0 + + -78 + + + 2 + :), or a type that derives (indirectly) from boost::(:link + 1 + + 0 + + -78 + + + 2 + :). !!!!Postcondition: A copy of v is stored into x. If x already contains data of type (:link + 1 + + 0 + + -57 + + + 2 + :)<Tag,T>, that data is overwritten. Basic exception safety guarantee. !!!!Returns: x. (:include throws:) + + + + + 0 + + -49 + + + + 9 + 2 + (:auto !!!:) (:include synopsis:) This + 1 + + 0 + + -57 + + + 2 + typedef is used by + 1 + + 0 + + -77 + + + 2 + if it defaults to returning an + 1 + + 0 + + -42 + + + 2 + that refers to an object of type + 1 + + 0 + + -53 + + + 2 + , to record in it the std::type_info of the original exception object. + + + + + 0 + + -50 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -51 + + + + 5 + 2 + (:auto !!!:) (:include synopsis:) !!!!Effects: As if [@try { throw + 1 + + 0 + + -45 + + + 2 + (e); } catch(...) { return (:link + 1 + + 0 + + -77 + + + 2 + :)(); }@] + + + + + 0 + + -52 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -53 + + + + 5 + 2 + (:auto !!!:) (:include synopsis:) This type is used by the (:link + 1 + + 0 + + -42 + + + 2 + :) support in Boost Exception. Please see (:link + 1 + + 0 + + -77 + + + 2 + :). + + + + + 0 + + -54 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -55 + + + + 37 + 2 + (:auto !!!:) When you catch an exception, you can call (:link + 1 + + 0 + + -77 + + + 2 + :) to get an (:link + 1 + + 0 + + -42 + + + 2 + :) object: [@#include <(:link + 1 + + 0 + + -38 + + + 2 + :)> #include <boost/thread.hpp> #include <boost/bind.hpp> void do_work(); //throws cloning-enabled boost::(:link + 1 + + 0 + + -78 + + + 2 + :)s void worker_thread( boost::(:link + 1 + + 0 + + -42 + + + 2 + :) & error ) { try { do_work(); error = boost::(:link + 1 + + 0 + + -42 + + + 2 + :)(); } catch( ... ) { error = boost::(:link + 1 + + 0 + + -77 + + + 2 + :)(); } }@] In the above example, note that (:link + 1 + + 0 + + -77 + + + 2 + :) captures the original type of the exception object. The exception can be thrown again using the (:link + 1 + + 0 + + -69 + + + 2 + :) function: [@// ...continued void work() { boost::(:link + 1 + + 0 + + -42 + + + 2 + :) error; boost::(:link http://www.boost.org/doc/html/boost/thread.html|thread:) t( boost::(:link http://www.boost.org/libs/bind/bind.html|bind:)(worker_thread,boost::(:link http://www.boost.org/doc/html/ref.html|ref:)(error)) ); t.(:link http://www.boost.org/doc/html/boost/thread.html|join:)(); if( error ) boost::(:link + 1 + + 0 + + -69 + + + 2 + :)(error); }@] Note that (:link + 1 + + 0 + + -77 + + + 2 + :) could fail to copy the original exception object in the following cases: * if there is not enough memory, in which case the returned (:link + 1 + + 0 + + -42 + + + 2 + :) points to an instance of std::bad_alloc, or * if (:link + 1 + + 0 + + -45 + + + 2 + :) was not used in the throw-expression passed to the original throw statement and the current implementation does not have the necessary compiler-specific support to copy the exception automatically, in which case the returned (:link + 1 + + 0 + + -42 + + + 2 + :) points to an instance of (:link + 1 + + 0 + + -53 + + + 2 + :). Regardless, the use of (:link + 1 + + 0 + + -77 + + + 2 + :) and (:link + 1 + + 0 + + -69 + + + 2 + :) in the above examples is well-formed. + + + + + 0 + + -56 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -57 + + + + 41 + 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 + + -57 + + + 2 + :)<Tag,T> can be passed to (:link + 1 + + 0 + + -48 + + + 2 + mod="/":) to be stored in objects of type boost::(:link + 1 + + 0 + + -78 + + + 2 + :). !!!!Usage: The header <(:link + 1 + + 0 + + -54 + + + 2 + :)> provides a declaration of the (:link + 1 + + 0 + + -57 + + + 2 + :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, for example: [@#include <(:link + 1 + + 0 + + -54 + + + 2 + :)> struct tag_errno; typedef boost::(:link + 1 + + 0 + + -57 + + + 2 + :)<tag_errno,int> errno_info;@] Or, the shorter equivalent: [@#include <(:link + 1 + + 0 + + -54 + + + 2 + :)> typedef boost::(:link + 1 + + 0 + + -57 + + + 2 + :)<struct tag_errno,int> errno_info;@] This errno_info typedef can be passed to (:link + 1 + + 0 + + -48 + + + 2 + mod="/":) (#include <(:link + 1 + + 0 + + -35 + + + 2 + :)> first) to store an int named tag_errno in exceptions of types that derive from boost::(:link + 1 + + 0 + + -78 + + + 2 + :): [@throw file_read_error() (:link + 1 + + 0 + + -48 + + + 2 + |<<:) errno_info(errno);@] It can also be passed to (:link + 1 + + 0 + + -14 + + + 2 + :) (#include <(:link + 1 + + 0 + + -37 + + + 2 + :)> first) to retrieve the tag_errno int from a boost::(:link + 1 + + 0 + + -78 + + + 2 + :): [@catch( boost::(:link + 1 + + 0 + + -78 + + + 2 + :) & x ) { if( int const * e=boost::(:link + 1 + + 0 + + -14 + + + 2 + :)<errno_info>(x) ) .... }@] For convenience and uniformity, Boost Exception defines the following commonly used (:link + 1 + + 0 + + -57 + + + 2 + :) typedefs, ready for use with (:link + 1 + + 0 + + -48 + + + 2 + mod="/":): (:pagelist tags="error_info_instance":) + + + + + 0 + + -58 + + + + 19 + 2 + (:auto !!:) Boost Exception responds to the following configuration macros: '''BOOST_NO_RTTI'''\\ '''BOOST_NO_TYPEID''' The first macro prevents Boost Exception from using dynamic_cast and dynamic typeid. If the second macro is also defined, Boost Exception does not use static typeid either. There are no observable degrading effects on the library functionality, except for the following: ->By default, the (:link + 1 + + 0 + + -14 + + + 2 + :) function template can be called with any exception type. If BOOST_NO_RTTI is defined, (:link + 1 + + 0 + + -14 + + + 2 + :) can be used only with objects of type boost::(:link + 1 + + 0 + + -78 + + + 2 + :). !!!!Note: The library needs RTTI functionality. Disabling the language RTTI support enables an internal RTTI system, which may have more or less overhead depending on the platform. '''BOOST_EXCEPTION_DISABLE''' By default, (:link + 1 + + 0 + + -45 + + + 2 + :) and (:link + 1 + + 0 + + -60 + + + 2 + :) are integrated directly in the (:link + 1 + + 0 + + -32 + + + 2 + :) function. Defining BOOST_EXCEPTION_DISABLE disables this integration. Note that on some non-conformant compilers, for example MSVC 7.0 and older, as well as BCC, BOOST_EXCEPTION_DISABLE is implicitly defined in (:link + 1 + + 0 + + -50 + + + 2 + :). '''BOOST_NO_EXCEPTIONS''' This macro disables exception handling in Boost, forwarding all exceptions to a user-defined non-template version of boost:: + 1 + + 0 + + -32 + + + 2 + . However, unless BOOST_EXCEPTION_DISABLE is also defined, users can still examine the exception object for any data added at the point of the throw, or use boost:: + 1 + + 0 + + -30 + + + 2 + (of course under BOOST_NO_EXCEPTIONS, the user-defined boost::throw_exception is not allowed to return to the caller.) + + + + + 0 + + -59 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -60 + + + + 5 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: T must be a class with an accessible no-throw copy constructor as per (15.5.1). !!!!Returns: * If T derives from boost::(:link + 1 + + 0 + + -78 + + + 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::(:link + 1 + + 0 + + -78 + + + 2 + :). The T sub-object is initialized from x by the T copy constructor. !!!!Throws: Nothing. + + + + + 0 + + -61 + + + + 1 + 2 + (:auto !!:) (:pagelist tags="macro":) + + + + + 0 + + -62 + + + + 5 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link + 1 + + 0 + + -78 + + + 2 + :), or a type that derives (indirectly) from boost::(:link + 1 + + 0 + + -78 + + + 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 + + -63 + + + + 5 + 2 + (:auto !!!:) Exception types should use virtual inheritance when deriving from other exception types. This insight is due to Andrew Koenig. Using virtual inheritance prevents ambiguity problems in the exception handler: [@#include <iostream> struct my_exc1 : std::exception { char const* what() const throw(); }; struct my_exc2 : std::exception { char const* what() const throw(); }; struct your_exc3 : my_exc1, my_exc2 {}; int main() { try { throw your_exc3(); } catch(std::exception const& e) {} catch(...) { std::cout << "whoops!" << std::endl; } }@] The program above outputs "whoops!" because the conversion to std::exception is ambiguous. The overhead introduced by virtual inheritance is always negligible in the context of exception handling. Note that virtual bases are initialized directly by the constructor of the most-derived-type (the type passed to the throw statement, in case of exceptions.) However, typically this detail is of no concern when boost::(:link + 1 + + 0 + + -78 + + + 2 + :) is used, because it enables exception types to be trivial structs with no members (there's nothing to initialize.) See (:link + 1 + + 0 + + -23 + + + 2 + mod="w":). + + + + + 0 + + -64 + + + + 77 + 2 + !!Synopsis List of documented definitions, declarations and includes by header file: `#include <(:link + 1 + + 0 + + -56 + + + 2 + :)> [@(:include + 1 + + 0 + + -56 + + + 2 + synopsis:)@] `#include <(:link + 1 + + 0 + + -54 + + + 2 + :)> [@(:include + 1 + + 0 + + -54 + + + 2 + synopsis:)@] `#include <(:link + 1 + + 0 + + -35 + + + 2 + :)> [@(:include + 1 + + 0 + + -35 + + + 2 + synopsis:)@] `#include <(:link + 1 + + 0 + + -31 + + + 2 + :)> [@(:include + 1 + + 0 + + -31 + + + 2 + synopsis:)@] `#include <(:link + 1 + + 0 + + -75 + + + 2 + :)> [@(:include + 1 + + 0 + + -75 + + + 2 + synopsis:)@] `#include <(:link + 1 + + 0 + + -6 + + + 2 + :)> [@(:include + 1 + + 0 + + -6 + + + 2 + synopsis:)@] `#include <(:link + 1 + + 0 + + -44 + + + 2 + :)> [@(:include + 1 + + 0 + + -44 + + + 2 + synopsis:)@] `#include <(:link + 1 + + 0 + + -38 + + + 2 + :)> [@(:include + 1 + + 0 + + -38 + + + 2 + synopsis:)@] `#include <(:link + 1 + + 0 + + -9 + + + 2 + :)> [@(:include + 1 + + 0 + + -9 + + + 2 + synopsis:)@] `#include <(:link + 1 + + 0 + + -50 + + + 2 + :)> [@(:include + 1 + + 0 + + -50 + + + 2 + synopsis:)@] `#include <(:link + 1 + + 0 + + -52 + + + 2 + :)> (:include + 1 + + 0 + + -52 + + + 2 + synopsis:) `#include <(:link + 1 + + 0 + + -59 + + + 2 + :)> (:include + 1 + + 0 + + -59 + + + 2 + synopsis:) `#include <(:link + 1 + + 0 + + -18 + + + 2 + :)> (:include + 1 + + 0 + + -18 + + + 2 + synopsis:) `#include <(:link + 1 + + 0 + + -8 + + + 2 + :)> (:include + 1 + + 0 + + -8 + + + 2 + synopsis:) `#include <(:link + 1 + + 0 + + -25 + + + 2 + :)> (:include + 1 + + 0 + + -25 + + + 2 + synopsis:) `#include <(:link + 1 + + 0 + + -5 + + + 2 + :)> (:include + 1 + + 0 + + -5 + + + 2 + synopsis:) `#include < + 1 + + 0 + + -29 + + + 2 + > (:include + 1 + + 0 + + -29 + + + 2 + synopsis:) `#include <(:link + 1 + + 0 + + -46 + + + 2 + :)> (:include + 1 + + 0 + + -46 + + + 2 + synopsis:) `#include <(:link + 1 + + 0 + + -33 + + + 2 + :)> (:include + 1 + + 0 + + -33 + + + 2 + synopsis:) + + + + + 0 + + -65 + + + + 9 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: This function must not be called outside of a catch block. !!!!Returns: If the current exception object can be converted to boost::(:link + 1 + + 0 + + -78 + + + 2 + :) or std::exception, this function returns the same string value returned by (:link + 1 + + 0 + + -30 + + + 2 + :) for the current exception object. Otherwise, an unspecified non-empty string is returned. Typical use is to call + 1 + + 0 + + -65 + + + 2 + from a top-level function to output diagnostic information about unhandled exceptions: [@int main() { try { run_program(); } catch( error & e ) { //handle error } catch( ...) { std::cerr << "Unhandled exception!" << std::endl << boost:: + 1 + + 0 + + -65 + + + 2 + (); } }@] + + + + + 0 + + -66 + + + + 69 + 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 + + -32 + + + 2 + :) function. !!Contents #(:link + 1 + + 0 + + -22 + + + 2 + :) #Tutorial ##(:link + 1 + + 0 + + -20 + + + 2 + mod="w":) ##(:link + 1 + + 0 + + -19 + + + 2 + mod="w":) ##(:link + 1 + + 0 + + -41 + + + 2 + mod="w":) ##(:link + 1 + + 0 + + -23 + + + 2 + mod="w":) ##(:link + 1 + + 0 + + -63 + + + 2 + mod="w":) ##(:link + 1 + + 0 + + -70 + + + 2 + mod="w":) #Documentation ##Class (:link + 1 + + 0 + + -78 + + + 2 + :) ##Throwing Exceptions ###(:link + 1 + + 0 + + -13 + + + 2 + :) ###(:link + 1 + + 0 + + -32 + + + 2 + :) ##Transporting of Arbitrary Data to the Catch Site ###(:link + 1 + + 0 + + -57 + + + 2 + :) ###(:link + 1 + + 0 + + -48 + + + 2 + :) ###(:link + 1 + + 0 + + -62 + + + 2 + :) ###(:link + 1 + + 0 + + -14 + + + 2 + :) ###(:link + 1 + + 0 + + -60 + + + 2 + :) ##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads ###(:link + 1 + + 0 + + -42 + + + 2 + :) ###(:link + 1 + + 0 + + -45 + + + 2 + :) ###(:link + 1 + + 0 + + -77 + + + 2 + :) ###(:link + 1 + + 0 + + -51 + + + 2 + :) ###(:link + 1 + + 0 + + -69 + + + 2 + :) ###(:link + 1 + + 0 + + -53 + + + 2 + :) ##Diagnostic Information ###(:link + 1 + + 0 + + -30 + + + 2 + :) ###(:link + 1 + + 0 + + -65 + + + 2 + :) ##(:link + 1 + + 0 + + -15 + + + 2 + :) #API ##(:link + 1 + + 0 + + -64 + + + 2 + :) ##(:link + 1 + + 0 + + -47 + + + 2 + :) ##(:link + 1 + + 0 + + -17 + + + 2 + :) ##(:link + 1 + + 0 + + -73 + + + 2 + :) ##(:link + 1 + + 0 + + -61 + + + 2 + :) ##(:link + 1 + + 0 + + -58 + + + 2 + mod="w":) #(:link + 1 + + 0 + + -24 + + + 2 + mod="w":) #(:link + 1 + + 0 + + -39 + + + 2 + mod="w":) !!!Acknowledgements Thanks to Peter Dimov for his continuing help. Also thanks to Tobias Schwinger, Tom Brinkman, Pavel Vozenilek and everyone who participated in the review process. + + + + + 0 + + -67 + + + + 5 + 2 + (:auto !!!:) (:include synopsis:) !!!!Description: Returns a (const) reference to the copy of the value passed to (:link + 1 + + 0 + + -57 + + + 2 + :)'s constructor stored in the (:link + 1 + + 0 + + -57 + + + 2 + :) object. !!!!Throws: Nothing. + + + + + 0 + + -68 @@ -11023,7 +11108,7 @@ 0 - -11 + -78 2 @@ -11032,7 +11117,7 @@ 0 - -6 + -80 2 @@ -11043,20 +11128,154 @@ 0 - -74 + -69 1 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (:auto !!!:) (:include synopsis:) !!!!Precondition: ep shall not be null. !!!!Throws: The exception to which ep refers. 0 - -75 + -70 + + + + 19 + 2 + (:auto !!:) Boost Exception provides a namespace-scope function (:link + 1 + + 0 + + -30 + + + 2 + :) which takes a boost::(:link + 1 + + 0 + + -78 + + + 2 + :). The returned string contains: *the string representation of all data objects added to the boost::(:link + 1 + + 0 + + -78 + + + 2 + :) through (:link + 1 + + 0 + + -48 + + + 2 + mod="/":); *the output from std::exception::what; *additional platform-specific diagnostic information. The returned string 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 + + -33 + + + 2 + :)> #include <iostream> void f(); //throws unknown types that derive from boost::(:link + 1 + + 0 + + -78 + + + 2 + :). void g() { try { f(); } catch( boost::(:link + 1 + + 0 + + -78 + + + 2 + :) & e ) { std::cerr << (:link + 1 + + 0 + + -30 + + + 2 + :)(e); } }@] (:include + 1 + + 0 + + -43 + + + 2 + :) + + + + + 0 + + -71 + + + + 7 + 2 + (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard (:link + 1 + + 0 + + -57 + + + 2 + :) instance for transporting the name of a relevant API function (which does not use exceptions to report errors) in exceptions deriving from boost::(:link + 1 + + 0 + + -78 + + + 2 + :). !!!Example: (:include + 1 + + 0 + + -80 + + + 2 + :) + + + + + 0 + + -72 @@ -11067,7 +11286,7 @@ 0 - -11 + -78 2 @@ -11076,7 +11295,7 @@ 0 - -35 + -33 2 @@ -11085,7 +11304,7 @@ 0 - -11 + -78 2 @@ -11094,7 +11313,7 @@ 0 - -7 + -76 2 @@ -11103,7 +11322,7 @@ 0 - -35 + -33 2 @@ -11112,7 +11331,7 @@ 0 - -11 + -78 2 @@ -11121,7 +11340,7 @@ 0 - -61 + -26 2 @@ -11130,7 +11349,7 @@ 0 - -11 + -78 2 @@ -11139,7 +11358,7 @@ 0 - -11 + -78 2 @@ -11150,49 +11369,26 @@ 0 - -23 + -73 - 79 + 1 2 - (:auto !!:) !!!Why doesn't boost::exception derive from std::exception? Despite that (:link - 1 - - 0 - - -78 - - + (:auto !!:) (:pagelist fmt="index" tags="function":) + + + + + 0 + + -74 + + + + 3 2 - |virtual inheritance should be used in deriving from base exception types:), many programmers fail to follow this principle when deriving from std::exception. If boost::(:link - 1 - - 0 - - -11 - - - 2 - :) derives from std::exception, using the (:link - 1 - - 0 - - -48 - - - 2 - :) function with such user-defined types would introduce dangerous ambiguity which would break all catch(std::exception &) statements. Of course, boost::(:link - 1 - - 0 - - -11 - - - 2 - :) should not be used to replace std::exception as a base type in exception type hierarchies. Instead, it should be included as a virtual base, in addition to std::exception (which should also be derived virtually.) !!!Why is boost::exception abstract? To prevent exception-neutral contexts from erroneously erasing the type of the original exception when adding (:link + (:auto !!!:) (:include synopsis:) !!!!Effects: Stores a copy of v in the 1 0 @@ -11201,313 +11397,20 @@ 2 - :) to an active exception object: [@catch( boost::(:link - 1 - - 0 - - -11 - - + object. (:include throws:) + + + + + 0 + + -75 + + + + 1 2 - :) & e ) { e (:link - 1 - - 0 - - -32 - - - 2 - |<<:) foo_info(foo); throw e; //Compile error: boost::(:link - 1 - - 0 - - -11 - - - 2 - :) is abstract }@] The correct code is: [@catch( boost::(:link - 1 - - 0 - - -11 - - - 2 - :) & e ) { e (:link - 1 - - 0 - - -32 - - - 2 - |<<:) foo_info(foo); throw; //Okay, re-throwing the original exception object. }@] !!!What is the space overhead of the boost::exception base class? The space overhead for the boost::exception data members is negligible in the context of exception handling. Throwing objects that derive from boost::(:link - 1 - - 0 - - -11 - - - 2 - :) does not by itself cause dynamic memory allocations. Deriving from boost::(:link - 1 - - 0 - - -11 - - - 2 - :) enables any data to be added to exceptions, which usually does allocate memory. However, this memory is reclaimed when the exception has been handled, and since typically user code does not allocate memory during the unrolling of the stack, adding error info to exceptions should not cause memory fragmentation. !!!Should I use boost::throw_exception or BOOST_THROW_EXCEPTION or just throw? The benefit of calling boost::(:link - 1 - - 0 - - -26 - - - 2 - :) instead of using throw directly is that it ensures that the emitted exception derives from boost::(:link - 1 - - 0 - - -11 - - - 2 - :) and that it is compatible with boost::(:link - 1 - - 0 - - -34 - - - 2 - :). The (:link - 1 - - 0 - - -44 - - - 2 - :) macro also results in a call to boost::(:link - 1 - - 0 - - -26 - - - 2 - :), but in addition it records in the exception object the __FILE__ and __LINE__ of the throw, as well as the pretty name of the function that throws. This has virtually no overhead, yet enables boost::(:link - 1 - - 0 - - -72 - - - 2 - :) to compose a more useful, if not user-friendly message. Typical use of boost::(:link - 1 - - 0 - - -72 - - - 2 - :) is: [@catch( boost::exception & e ) { std::cerr << "OMG!" << boost::diagnostic_information(e); } catch( ... ) { std::cerr << "OMG!!!"; }@] This is a possible message it may display, the first line is only possible if (:link - 1 - - 0 - - -44 - - - 2 - :) is used: [@example_io.cpp(70): Throw in function class boost::shared_ptr<struct _iobuf> __cdecl my_fopen(const char *,const char *) Dynamic exception type: class boost::exception_detail::clone_impl<class fopen_error> std::exception::what: example_io error [struct boost::(:link - 1 - - 0 - - -56 - - - 2 - :)_ *] = fopen [struct boost::(:link - 1 - - 0 - - -7 - - - 2 - :)_ *] = 2, "No such file or directory" [struct boost::(:link - 1 - - 0 - - -61 - - - 2 - :)_ *] = tmp1.txt [struct boost::(:link - 1 - - 0 - - -50 - - - 2 - :)_ *] = rb@] !!!Why is boost::exception integrated in boost::throw_exception? The boost::(:link - 1 - - 0 - - -26 - - - 2 - :) function predates the Boost Exception library and there has been some concern about its current behavior of injecting boost::(:link - 1 - - 0 - - -11 - - - 2 - :) as a base of any exception passed to boost::(:link - 1 - - 0 - - -26 - - - 2 - :). Such concerns are dictated by the typical strict interpretation of a common principle in C and C++, that users only pay for features they actually use. The problem is that users of Boost Exception can't by themselves cause a library to throw types that derive from boost::(:link - 1 - - 0 - - -11 - - - 2 - :), and without this they can't use any of the Boost Exception facilities. For example, if a user wants to use Boost Serialization in a separate thread, it is desirable to be able to transport exceptions emitted by that library into the main thread where they can be analyzed to generate a user-friendly message. This can be easily achieved using boost::(:link - 1 - - 0 - - -52 - - - 2 - :), but this requires that Boost Serialization throws exceptions using boost::(:link - 1 - - 0 - - -28 - - - 2 - :). If Boost Serialization calls boost::(:link - 1 - - 0 - - -26 - - - 2 - :) to throw, this behavior happens automatically and transparently. The cost of this integration is: * In terms of space: a pointer and 3 ints are added to the static size of exception objects. * In terms of speed: the pointer is initialized to null at the point of the throw. * In terms of coupling: about 400 self-contained lines of C++ with no external includes. !!!Why use operator<< overload for adding info to exceptions? Before throwing an object of type that derives from boost::(:link - 1 - - 0 - - -11 - - - 2 - :), it is often desirable to add one or more (:link - 1 - - 0 - - -57 - - - 2 - :) objects in it. The syntactic sugar provided by (:link - 1 - - 0 - - -32 - - - 2 - :) allows this to be done directly in a throw expression: [@throw error() (:link - 1 - - 0 - - -32 - - - 2 - |<<:) foo_info(foo) (:link - 1 - - 0 - - -32 - - - 2 - |<<:) bar_info(bar);@] which saves typing compared to this possible alternative: [@error e; e.add(foo_info(foo)); e.add(bar_info(bar)); throw e;@] and looks better than something like: [@throw error().add(foo_info(foo)).add(bar_info(bar));@] !!!Why is operator<< allowed to throw? This question is referring to the following issue. Consider this throw statement example: [@throw file_open_error() (:link - 1 - - 0 - - -32 - - - 2 - |<<:) file_name(fn);@] The intention here is to throw a file_open_error, however if (:link - 1 - - 0 - - -32 - - - 2 - mod="/":) fails to copy the std::string contained in the file_name (:link - 1 - - 0 - - -57 - - - 2 - :) wrapper, a std::bad_alloc could propagate instead. This behavior seems undesirable to some programmers. Bjarne Stroustrup, The C++ Programming Language, 3rd Edition, page 371: ->''"Throwing an exception requires an object to throw. A C++ implementation is required to have enough spare memory to be able to throw bad_alloc in case of memory exhaustion. However, it is possible that throwing some other exception will cause memory exhaustion."'' So, an attempt to throw any exception may already result in propagating std::bad_alloc instead. + (:auto !!!:) !!!Synopsis (:include synopsis:) @@ -11518,27 +11421,36 @@ - 5 + 7 2 - (:auto !!!:) (:include synopsis:) !!!!Effects: As if [@try { throw + (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard (:link 1 0 - -28 + -57 2 - (e); } catch(...) { return (:link + :) instance for transporting a relevant errno value in exceptions deriving from boost::(:link 1 0 - -34 + -78 2 - :)(); }@] + :). !!!Example: (:include + 1 + + 0 + + -80 + + + 2 + :) @@ -11549,9 +11461,153 @@ - 1 + 33 2 - (:auto !!:) !!!Synopsis (:include synopsis:) + (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link + 1 + + 0 + + -77 + + + 2 + :) function must not be called outside of a catch block. !!!!Returns: * An (:link + 1 + + 0 + + -42 + + + 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 + + -42 + + + 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 + + -77 + + + 2 + :) refer to the same exception object. * Correct implementation of (:link + 1 + + 0 + + -77 + + + 2 + :) may require compiler support, unless (:link + 1 + + 0 + + -45 + + + 2 + :) was used at the time the currently handled exception object was passed to throw. Whenever + 1 + + 0 + + -77 + + + 2 + fails to properly copy the current exception object, it returns an + 1 + + 0 + + -42 + + + 2 + to an object of type that is as close as possible to the original exception type, using + 1 + + 0 + + -53 + + + 2 + as a final fallback. All such types derive from boost:: + 1 + + 0 + + -78 + + + 2 + , and: ** if the original exception object derives from boost::(:link + 1 + + 0 + + -78 + + + 2 + :), then the boost::(:link + 1 + + 0 + + -78 + + + 2 + :) sub-object of the object referred to by the returned + 1 + + 0 + + -42 + + + 2 + is initialized by the boost::(:link + 1 + + 0 + + -78 + + + 2 + :) copy constructor; ** if available, the exception contains the std::type_info of the original exception object, accessible through + 1 + + 0 + + -14 + + + 2 + < + 1 + + 0 + + -49 + + + 2 + >. @@ -11562,27 +11618,260 @@ - 5 + 13 2 - (:auto !!!:) Exception types should use virtual inheritance when deriving from other exception types. This insight is due to Andrew Koenig. Using virtual inheritance prevents ambiguity problems in the exception handler: [@#include <iostream> struct my_exc1 : std::exception { char const* what() const throw(); }; struct my_exc2 : std::exception { char const* what() const throw(); }; struct your_exc3 : my_exc1, my_exc2 {}; int main() { try { throw your_exc3(); } catch(std::exception const& e) {} catch(...) { std::cout << "whoops!" << std::endl; } }@] The program above outputs "whoops!" because the conversion to std::exception is ambiguous. The overhead introduced by virtual inheritance is always negligible in the context of exception handling. Note that virtual bases are initialized directly by the constructor of the most-derived-type (the type passed to the throw statement, in case of exceptions.) However, typically this detail is of no concern when boost::(:link + (:auto !!!:) (:include synopsis:) Class boost::(:link 1 0 - -11 + -78 2 - :) is used, because it enables exception types to be trivial structs with no members (there's nothing to initialize.) See (:link + :) is designed to be used as a universal base for user-defined exception types. An object of any type deriving from boost::(:link 1 0 - -22 + -78 2 - mod="w":). + :) can store data of arbitrary types, using the (:link + 1 + + 0 + + -57 + + + 2 + :) wrapper and (:link + 1 + + 0 + + -48 + + + 2 + mod="/":). To retrieve data from a boost::(:link + 1 + + 0 + + -78 + + + 2 + :) object, use the (:link + 1 + + 0 + + -14 + + + 2 + :) function template. + + + + + 0 + + -79 + + + + 3 + 2 + (:auto !!!:) (:include decl:) !!!!Effects: Frees all resources associated with a boost::(:link + 1 + + 0 + + -78 + + + 2 + :) object. !!!!Throws: Nothing. + + + + + 0 + + -80 + + + + 37 + 2 + [@#include <(:link + 1 + + 0 + + -52 + + + 2 + :)> #include <(:link + 1 + + 0 + + -59 + + + 2 + :)> #include <(:link + 1 + + 0 + + -18 + + + 2 + :)> #include <(:link + 1 + + 0 + + -8 + + + 2 + :)> #include <(:link + 1 + + 0 + + -25 + + + 2 + :)> #include <(:link + 1 + + 0 + + -5 + + + 2 + :)> #include <(:link + 1 + + 0 + + -35 + + + 2 + :)> #include <(:link + 1 + + 0 + + -50 + + + 2 + :)> #include <boost/shared_ptr.hpp> #include <boost/weak_ptr.hpp> #include <stdio.h> #include <errno.h> #include <exception> struct error : virtual std::exception, virtual boost::(:link + 1 + + 0 + + -78 + + + 2 + :) { }; struct file_error : virtual error { }; struct file_open_error: virtual file_error { }; struct file_read_error: virtual file_error { }; boost::shared_ptr<FILE> open_file( char const * file, char const * mode ) { if( FILE * f=fopen(file,mode) ) return boost::shared_ptr<FILE>(f,fclose); else (:link + 1 + + 0 + + -13 + + + 2 + :)( file_open_error() << boost::(:link + 1 + + 0 + + -71 + + + 2 + :)("fopen") << boost::(:link + 1 + + 0 + + -76 + + + 2 + :)(errno) << boost::(:link + 1 + + 0 + + -26 + + + 2 + :)(file) << boost::(:link + 1 + + 0 + + -7 + + + 2 + :)(mode) ); } size_t read_file( boost::shared_ptr<FILE> const & f, void * buf, size_t size ) { size_t nr=fread(buf,1,size,f.get()); if( ferror(f.get()) ) (:link + 1 + + 0 + + -13 + + + 2 + :)( file_read_error() << boost::(:link + 1 + + 0 + + -71 + + + 2 + :)("fread") << boost::(:link + 1 + + 0 + + -76 + + + 2 + :)(errno) << boost::(:link + 1 + + 0 + + -68 + + + 2 + :)(f) ); return nr; }@] @@ -11592,13 +11881,13 @@ throws - 83 + 85 reno_layer - 74 + 76 0 @@ -11790,7 +12079,18 @@ 0 - -24 + -22 + + + + 0 + + + + + 0 + + -23 @@ -11808,6 +12108,17 @@ 0 + + + 0 + + -24 + + + + 0 + + 0 @@ -11882,9 +12193,7 @@ - 1 - 2 - !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. + 0 @@ -11895,9 +12204,7 @@ - 1 - 2 - !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. + 0 @@ -11941,9 +12248,7 @@ - 1 - 2 - !!!!Throws: Any exception emitted by v's copy constructor. + 0 @@ -12023,17 +12328,6 @@ 0 - - - 0 - - -22 - - - - 0 - - 0 @@ -12075,7 +12369,9 @@ - 0 + 1 + 2 + !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. @@ -12229,7 +12525,9 @@ - 0 + 1 + 2 + !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. @@ -12361,7 +12659,9 @@ - 0 + 1 + 2 + !!!!Throws: Any exception emitted by v's copy constructor. @@ -12375,17 +12675,6 @@ 0 - - - 0 - - -23 - - - - 0 - - 0 @@ -12419,25 +12708,11 @@ 0 - - - - - - synopsis - - 84 - - reno_layer - - - - 74 0 - -5 + -79 @@ -12448,13 +12723,71 @@ 0 - -6 + -80 0 + + + + + + synopsis + + 86 + + reno_layer + + + + 76 + + + 0 + + -5 + + + + 3 + 2 + [@#include < + 1 + + 0 + + -54 + + + 2 + > #include <string> namespace boost { (:include api pre_indent="4":) }@] + + + + + 0 + + -6 + + + + 3 + 2 + [@#include <string> namespace boost { (:include + 1 + + 0 + + -78 + + + 2 + decl pre_indent="4":) (:include api pre_indent="4":) }@] + + 0 @@ -12470,7 +12803,7 @@ 0 - -9 + -5 2 @@ -12479,7 +12812,7 @@ 0 - -9 + -5 2 @@ -12494,9 +12827,18 @@ - 1 + 3 2 - [@namespace boost { (:include api pre_indent="4":) }@] + [@#include <(:link + 1 + + 0 + + -54 + + + 2 + :)> namespace boost { template <class> class weak_ptr; (:include api pre_indent="4":) }@] @@ -12514,11 +12856,11 @@ 0 - -16 + -56 2 - > #include <errno.h> namespace boost { (:include api pre_indent="4":) }@] + > namespace boost { (:include api pre_indent="4":) }@] @@ -12529,7 +12871,27 @@ - 0 + 5 + 2 + `#include < + 1 + + 0 + + -46 + + + 2 + > (:include + 1 + + 0 + + -46 + + + 2 + synopsis:) @@ -12547,11 +12909,11 @@ 0 - -8 + -6 2 - :)> [@namespace boost { (:include def pre_indent="4":) }@] + :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] @@ -12564,21 +12926,21 @@ 5 2 - `#include < + `#include <(:link 1 0 - -65 + -59 2 - > (:include + :)> (:include 1 0 - -65 + -59 2 @@ -12593,9 +12955,18 @@ - 1 + 3 2 - [@namespace boost { (:include decl pre_indent="4":) }@] + `#include < + 1 + + 0 + + -50 + + + 2 + > (:include decl:) @@ -12606,7 +12977,9 @@ - 0 + 1 + 2 + [@namespace boost { (:include decl pre_indent="4":) }@] @@ -12619,16 +12992,16 @@ 3 2 - [@#include <string> namespace boost { (:include + `#include < 1 0 - -11 + -44 2 - decl pre_indent="4":) (:include api pre_indent="4":) }@] + > [@namespace boost { (:include decl pre_indent="4":) }@] @@ -12639,9 +13012,7 @@ - 1 - 2 - [@namespace boost { (:include api pre_indent="4":) }@] + 0 @@ -12652,18 +13023,7 @@ - 3 - 2 - [@#include < - 1 - - 0 - - -16 - - - 2 - > namespace boost { template <class> class weak_ptr; (:include api pre_indent="4":) }@] + 0 @@ -12674,27 +13034,18 @@ - 5 + 3 2 - `#include < + [@#include < 1 0 - -74 + -54 2 - > (:include - 1 - - 0 - - -74 - - - 2 - synopsis:) + > #include <errno.h> namespace boost { (:include api pre_indent="4":) }@] @@ -12734,22 +13085,22 @@ 0 - -24 + -22 - 3 - 2 - `#include < - 1 - - 0 - - -55 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] + 0 + + + + + 0 + + -23 + + + + 0 @@ -12760,9 +13111,29 @@ - 1 + 3 2 - (:include api:) + [@#include <(:link + 1 + + 0 + + -54 + + + 2 + :)> #include <string> namespace boost { (:include api pre_indent="4":) }@] + + + + + 0 + + -24 + + + + 0 @@ -12773,7 +13144,7 @@ - 3 + 5 2 `#include <(:link 1 @@ -12784,7 +13155,16 @@ 2 - :)> [@namespace boost { (:include decl:) }@] + :)> (:include + 1 + + 0 + + -25 + + + 2 + synopsis:) @@ -12795,18 +13175,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -58 - - - 2 - :)> [@(:include decl:)@] + 0 @@ -12819,16 +13188,16 @@ 3 2 - `#include < + `#include <(:link 1 0 - -49 + -35 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] + :)> [@(:include decl:)@] @@ -12839,18 +13208,27 @@ - 3 + 5 2 - `#include <(:link + [@#include <(:link 1 0 - -55 + -54 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + :)> namespace boost { (:include + 1 + + 0 + + -42 + + + 2 + decl pre_indent="4":) (:include api pre_indent="4":) }@] @@ -12861,7 +13239,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -6 + + + 2 + :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] @@ -12872,7 +13261,18 @@ - 0 + 3 + 2 + [@#include < + 1 + + 0 + + -35 + + + 2 + > #include <boost/tuple/tuple.hpp> namespace boost { (:include api pre_indent="4":) }@] @@ -12890,11 +13290,11 @@ 0 - -58 + -50 2 - :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] + :)> [@namespace boost { (:include decl:) }@] @@ -12904,59 +13304,6 @@ -33 - - 5 - 2 - `#include <(:link - 1 - - 0 - - -41 - - - 2 - :)> [@namespace boost { (:include - 1 - - 0 - - -33 - - - 2 - decl pre_indent="4":) }@] - - - - - 0 - - -34 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -55 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -35 - - 1 2 @@ -12967,22 +13314,44 @@ 0 - -36 + -34 + + + + 0 + + + + + 0 + + -35 3 2 - `#include <(:link + [@#include <(:link 1 0 - -55 + -56 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + :)> namespace boost { (:include api pre_indent="4":) }@] + + + + + 0 + + -36 + + + + 0 @@ -12993,18 +13362,9 @@ - 3 + 1 2 - `#include <(:link - 1 - - 0 - - -58 - - - 2 - :)> [@(:include decl:)@] + [@#include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] @@ -13015,9 +13375,18 @@ - 1 + 3 2 - [@namespace boost { (:include api pre_indent="4":) }@] + [@#include <(:link + 1 + + 0 + + -56 + + + 2 + :)> namespace boost { (:include api pre_indent="4":) }@] @@ -13039,18 +13408,27 @@ - 3 + 5 2 - `#include <(:link + `#include < 1 0 - -58 + -29 2 - :)> [@(:include decl:)@] + > (:include + 1 + + 0 + + -29 + + + 2 + synopsis:) @@ -13061,18 +13439,7 @@ - 3 - 2 - [@#include < - 1 - - 0 - - -58 - - - 2 - > #include <boost/tuple/tuple.hpp> namespace boost { (:include api pre_indent="4":) }@] + 0 @@ -13082,6 +13449,129 @@ -42 + + 3 + 2 + `#include <(:link + 1 + + 0 + + -38 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -43 + + + + 0 + + + + + 0 + + -44 + + + + 1 + 2 + [@namespace boost { (:include api pre_indent="4":) }@] + + + + + 0 + + -45 + + + + 3 + 2 + `#include < + 1 + + 0 + + -9 + + + 2 + > [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -46 + + + + 3 + 2 + [@#include < + 1 + + 0 + + -54 + + + 2 + > #include <string> namespace boost { (:include api pre_indent="4":) }@] + + + + + 0 + + -47 + + + + 0 + + + + + 0 + + -48 + + + + 3 + 2 + `#include <(:link + 1 + + 0 + + -35 + + + 2 + :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -49 + + 3 2 @@ -13097,138 +13587,6 @@ > [@namespace boost { (:include decl pre_indent="4":) }@] - - - 0 - - -43 - - - - 0 - - - - - 0 - - -44 - - - - 3 - 2 - `#include < - 1 - - 0 - - -25 - - - 2 - > (:include decl:) - - - - - 0 - - -22 - - - - 0 - - - - - 0 - - -45 - - - - 3 - 2 - [@#include < - 1 - - 0 - - -16 - - - 2 - > #include <string> namespace boost { (:include api pre_indent="4":) }@] - - - - - 0 - - -46 - - - - 0 - - - - - 0 - - -47 - - - - 0 - - - - - 0 - - -48 - - - - 3 - 2 - `#include < - 1 - - 0 - - -62 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -49 - - - - 3 - 2 - [@#include < - 1 - - 0 - - -8 - - - 2 - > namespace boost { (:include api pre_indent="4":) }@] - - 0 @@ -13237,27 +13595,9 @@ - 5 + 1 2 - `#include < - 1 - - 0 - - -45 - - - 2 - > (:include - 1 - - 0 - - -45 - - - 2 - synopsis:) + (:include api:) @@ -13268,7 +13608,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -38 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -13278,61 +13629,6 @@ -52 - - 3 - 2 - `#include <(:link - 1 - - 0 - - -55 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -53 - - - - 0 - - - - - 0 - - -54 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -15 - - - 2 - :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -55 - - 3 2 @@ -13341,13 +13637,59 @@ 0 - -8 + -54 2 :)> namespace boost { (:include api pre_indent="4":) }@] + + + 0 + + -53 + + + + 3 + 2 + `#include <(:link + 1 + + 0 + + -38 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -54 + + + + 1 + 2 + [@namespace boost { (:include api pre_indent="4":) }@] + + + + + 0 + + -55 + + + + 0 + + 0 @@ -13356,27 +13698,9 @@ - 5 + 1 2 - `#include < - 1 - - 0 - - -71 - - - 2 - > (:include - 1 - - 0 - - -71 - - - 2 - synopsis:) + [@namespace boost { (:include api pre_indent="4":) }@] @@ -13394,7 +13718,7 @@ 0 - -58 + -35 2 @@ -13409,18 +13733,7 @@ - 3 - 2 - [@#include <(:link - 1 - - 0 - - -8 - - - 2 - :)> namespace boost { (:include api pre_indent="4":) }@] + 0 @@ -13431,7 +13744,18 @@ - 0 + 3 + 2 + [@#include <(:link + 1 + + 0 + + -54 + + + 2 + :)> namespace boost { (:include api pre_indent="4":) }@] @@ -13442,7 +13766,18 @@ - 0 + 3 + 2 + `#include < + 1 + + 0 + + -75 + + + 2 + > [@namespace boost { (:include decl pre_indent="4":) }@] @@ -13453,27 +13788,7 @@ - 5 - 2 - `#include <(:link - 1 - - 0 - - -77 - - - 2 - :)> (:include - 1 - - 0 - - -77 - - - 2 - synopsis:) + 0 @@ -13484,18 +13799,27 @@ - 3 + 5 2 - [@#include < + `#include <(:link 1 0 - -8 + -31 2 - > namespace boost { (:include api pre_indent="4":) }@] + :)> [@namespace boost { (:include + 1 + + 0 + + -62 + + + 2 + decl pre_indent="4":) }@] @@ -13506,18 +13830,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -15 - - - 2 - :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -13541,16 +13854,16 @@ 3 2 - [@#include < + `#include <(:link 1 0 - -16 + -6 2 - > namespace boost { (:include api pre_indent="4":) }@] + :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] @@ -13572,9 +13885,18 @@ - 1 + 3 2 - [@#include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] + `#include <(:link + 1 + + 0 + + -35 + + + 2 + :)> [@(:include decl:)@] @@ -13585,7 +13907,27 @@ - 0 + 5 + 2 + `#include <(:link + 1 + + 0 + + -8 + + + 2 + :)> (:include + 1 + + 0 + + -8 + + + 2 + synopsis:) @@ -13596,7 +13938,18 @@ - 0 + 3 + 2 + `#include <(:link + 1 + + 0 + + -38 + + + 2 + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -13618,18 +13971,27 @@ - 3 + 5 2 - [@#include <(:link + `#include < 1 0 - -16 + -52 2 - :)> namespace boost { (:include api pre_indent="4":) }@] + > (:include + 1 + + 0 + + -52 + + + 2 + synopsis:) @@ -13640,18 +14002,7 @@ - 3 - 2 - `#include <(:link - 1 - - 0 - - -15 - - - 2 - :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] + 0 @@ -13662,27 +14013,7 @@ - 5 - 2 - `#include < - 1 - - 0 - - -17 - - - 2 - > (:include - 1 - - 0 - - -17 - - - 2 - synopsis:) + 0 @@ -13695,16 +14026,16 @@ 3 2 - [@#include < + `#include <(:link 1 0 - -16 + -35 2 - > #include <string> namespace boost { (:include api pre_indent="4":) }@] + :)> [@(:include decl:)@] @@ -13715,18 +14046,18 @@ - 0 - - - - - 0 - - -23 - - - - 0 + 3 + 2 + [@#include < + 1 + + 0 + + -56 + + + 2 + > namespace boost { (:include api pre_indent="4":) }@] @@ -13737,18 +14068,27 @@ - 3 + 5 2 - `#include <(:link + `#include < 1 0 - -55 + -18 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] + > (:include + 1 + + 0 + + -18 + + + 2 + synopsis:) @@ -13761,16 +14101,16 @@ 3 2 - [@#include <(:link + `#include <(:link 1 0 - -16 + -38 2 - :)> #include <string> namespace boost { (:include api pre_indent="4":) }@] + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -13780,6 +14120,39 @@ -78 + + 3 + 2 + `#include <(:link + 1 + + 0 + + -56 + + + 2 + :)> [@namespace boost { (:include def pre_indent="4":) }@] + + + + + 0 + + -79 + + + + 0 + + + + + 0 + + -80 + + 0 @@ -13794,14 +14167,14 @@ - 85 + 87 reno_context_map - 74 + 76 -5 @@ -13854,11 +14227,17 @@ -21 - -24 + -22 + + + -23 -25 + + -24 + -26 @@ -13916,9 +14295,6 @@ -44 - - -22 - -45 @@ -14012,9 +14388,6 @@ -75 - - -23 - -76 @@ -14024,11 +14397,51 @@ -78 + + -79 + + + -80 + - 74 + 76 + + + + + 0 + + + + + + 1 + + + + -66 + + + + + + + 0 + + + + + + 1 + + + + -41 + + @@ -14060,7 +14473,7 @@ - -47 + -39 @@ -14077,7 +14490,7 @@ - -5 + -75 @@ -14094,75 +14507,7 @@ - -53 - - - - - - - 0 - - - - - - 1 - - - - -62 - - - - - - - 0 - - - - - - 1 - - - - -49 - - - - - - - 0 - - - - - - 1 - - - - -21 - - - - - - - 0 - - - - - - 1 - - - - -78 + -9 @@ -14182,6 +14527,23 @@ -22 + + + + + 0 + + + + + + 1 + + + + -63 + + @@ -14213,7 +14575,7 @@ - -31 + -24 @@ -14230,7 +14592,7 @@ - -70 + -73 @@ -14247,7 +14609,41 @@ - -66 + -47 + + + + + + + 0 + + + + + + 1 + + + + -17 + + + + + + + 0 + + + + + + 1 + + + + -61 @@ -14267,23 +14663,6 @@ -64 - - - - - 0 - - - - - - 1 - - - - -19 - - @@ -14305,7 +14684,7 @@ - -55 + -38 @@ -14329,7 +14708,7 @@ - -77 + -25 @@ -14357,7 +14736,7 @@ - -50 + -7 @@ -14381,7 +14760,7 @@ - -71 + -52 @@ -14409,7 +14788,7 @@ - -72 + -30 @@ -14437,7 +14816,7 @@ - -63 + -11 @@ -14465,7 +14844,7 @@ - -29 + -53 @@ -14493,7 +14872,7 @@ - -34 + -77 @@ -14521,7 +14900,7 @@ - -52 + -42 @@ -14549,7 +14928,7 @@ - -24 + -49 @@ -14577,7 +14956,7 @@ - -36 + -69 @@ -14605,7 +14984,7 @@ - -76 + -51 @@ -14629,7 +15008,7 @@ - -59 + -55 @@ -14657,7 +15036,7 @@ - -18 + -10 @@ -14681,7 +15060,7 @@ - -67 + -37 @@ -14705,7 +15084,7 @@ - -9 + -18 @@ -14729,7 +15108,31 @@ - -10 + -36 + + + + + + + 1 + BF7B46FEFA4E2DED7D652BFD40E94DD0B225ADA8D35E28FF4216F72812589835 + 422843600 + 756 + 323 + + + + + + 0 + ../../../../boost/exception/all.hpp + 0 + 0 + + + + -33 @@ -14757,7 +15160,7 @@ - -42 + -15 @@ -14781,7 +15184,7 @@ - -68 + -43 @@ -14805,7 +15208,7 @@ - -58 + -35 @@ -14833,7 +15236,7 @@ - -73 + -68 @@ -14857,7 +15260,7 @@ - -75 + -72 @@ -14917,7 +15320,7 @@ - -40 + -28 @@ -14949,7 +15352,7 @@ - -27 + -67 @@ -14973,7 +15376,7 @@ - -30 + -70 @@ -14997,7 +15400,7 @@ - -74 + -46 @@ -15025,31 +15428,7 @@ - -7 - - - - - - - 1 - 2CCD2A79129C832AB12435E43BB35DE67318A8940A36530EF83C5E617987D661 - 2091122505 - 699 - 323 - - - - - - 0 - ../../../../boost/exception/all.hpp - 0 - 0 - - - - -35 + -76 @@ -15077,7 +15456,7 @@ - -56 + -71 @@ -15101,7 +15480,7 @@ - -69 + -27 @@ -15125,7 +15504,7 @@ - -8 + -56 @@ -15153,7 +15532,7 @@ - -43 + -79 @@ -15181,7 +15560,7 @@ - -28 + -45 @@ -15209,7 +15588,7 @@ - -48 + -60 @@ -15237,7 +15616,7 @@ - -11 + -78 @@ -15269,7 +15648,7 @@ - -46 + -21 @@ -15293,7 +15672,7 @@ - -65 + -59 @@ -15345,7 +15724,7 @@ - -17 + -8 @@ -15369,7 +15748,7 @@ - -38 + -44 @@ -15397,7 +15776,7 @@ - -13 + -14 @@ -15421,7 +15800,7 @@ - -45 + -5 @@ -15445,7 +15824,7 @@ - -60 + -34 @@ -15469,7 +15848,7 @@ - -15 + -6 @@ -15497,7 +15876,7 @@ - -26 + -32 @@ -15529,7 +15908,7 @@ - -39 + -58 @@ -15553,7 +15932,7 @@ - -6 + -80 @@ -15577,7 +15956,7 @@ - -25 + -50 @@ -15601,7 +15980,7 @@ - -44 + -13 @@ -15625,7 +16004,7 @@ - -41 + -31 @@ -15653,7 +16032,7 @@ - -61 + -26 @@ -15681,7 +16060,7 @@ - -37 + -74 @@ -15709,7 +16088,7 @@ - -32 + -48 @@ -15737,7 +16116,7 @@ - -54 + -65 @@ -15761,7 +16140,7 @@ - -14 + -19 @@ -15789,7 +16168,7 @@ - -16 + -54 @@ -15817,7 +16196,59 @@ - -33 + -62 + + + + + + + 1 + 9DF8D57248B036B570603802AAD3E0FC25D94268FCF31A2B395973D93FFE1CF5 + 1380075423 + 208 + 323 + + + + + + 0 + ../../../../boost/exception/errinfo_nested_exception.hpp + 0 + 0 + + + + -29 + + + + + + + 2 + 9DF8D57248B036B570603802AAD3E0FC25D94268FCF31A2B395973D93FFE1CF5 + 1380075423 + 208 + 323 + 83E18B98A15DEF9418E38218D221D10DC093B915D630B51974CCD23A6E1EDC44 + 849683856 + 98 + 104 + + + + + + 0 + ../../../../boost/exception/errinfo_nested_exception.hpp + 0 + 0 + + + + -40 @@ -15841,7 +16272,7 @@ - -51 + -16 @@ -15851,14 +16282,14 @@ - 86 + 88 tag_index - 56 + 57 1 @@ -15869,10 +16300,10 @@ 0 - -5 + -6 - tutorial + @@ -15887,10 +16318,10 @@ 0 - -8 + -9 - + exception_ptr @@ -15899,7 +16330,7 @@ -10 - noindex tutorial + error_info_instance noalso type @@ -15908,7 +16339,7 @@ -11 - type + free function @@ -15926,7 +16357,7 @@ -13 - error_info free function + macro @@ -15935,7 +16366,7 @@ -14 - tutorial + error_info free function @@ -15944,7 +16375,7 @@ -15 - + function @@ -15953,16 +16384,16 @@ -16 - + noindex 0 - -18 + -19 - error_info_instance noalso type + tutorial @@ -15971,25 +16402,16 @@ -20 - noindex + tutorial 0 - -24 + -21 - type - - - - 0 - - -25 - - - + function @@ -15998,7 +16420,7 @@ -26 - free function + error_info_instance noalso type @@ -16007,7 +16429,7 @@ -27 - function member + noalso noindex tutorial @@ -16016,16 +16438,7 @@ -28 - exception_ptr free function - - - - 0 - - -29 - - - exception_ptr type + type @@ -16034,7 +16447,16 @@ -30 - diagnostic_information tutorial + diagnostic_information free function + + + + 0 + + -31 + + + @@ -16043,16 +16465,7 @@ -32 - error_info free function - - - - 0 - - -33 - - - error_info free function + free function @@ -16061,7 +16474,16 @@ -34 - exception_ptr free function + noalso noindex tutorial + + + + 0 + + -35 + + + @@ -16070,7 +16492,7 @@ -36 - exception_ptr free function + noindex tutorial @@ -16079,7 +16501,7 @@ -37 - function member + error_info @@ -16094,16 +16516,7 @@ 0 - -40 - - - type - - - - 0 - - -41 + -39 @@ -16112,19 +16525,28 @@ 0 - -42 + -40 - function + error_info_instance noalso type 0 - -43 + -41 - function + tutorial + + + + 0 + + -42 + + + type @@ -16133,25 +16555,16 @@ -44 - macro + 0 - -46 + -45 - function - - - - 0 - - -47 - - - tutorial + exception_ptr free function @@ -16169,7 +16582,7 @@ -49 - exception_ptr + type @@ -16178,7 +16591,7 @@ -50 - error_info_instance noalso type + @@ -16187,16 +16600,7 @@ -51 - noindex - - - - 0 - - -52 - - - type + exception_ptr free function @@ -16205,7 +16609,7 @@ -53 - + exception_ptr type @@ -16214,7 +16618,7 @@ -54 - function + @@ -16223,7 +16627,7 @@ -55 - + noindex tutorial @@ -16232,7 +16636,7 @@ -56 - error_info_instance noalso type + @@ -16243,24 +16647,6 @@ type - - - 0 - - -58 - - - - - - - 0 - - -59 - - - noindex tutorial - 0 @@ -16268,16 +16654,7 @@ -60 - noalso noindex tutorial - - - - 0 - - -61 - - - error_info_instance noalso type + error_info free function @@ -16286,7 +16663,7 @@ -62 - error_info + error_info free function @@ -16295,7 +16672,25 @@ -63 - free function + tutorial + + + + 0 + + -65 + + + function + + + + 0 + + -66 + + + noindex @@ -16304,31 +16699,13 @@ -67 - error_info + function member 0 - -69 - - - noalso noindex tutorial - - - - 0 - - -72 - - - diagnostic_information free function - - - - 0 - - -73 + -68 error_info_instance noalso type @@ -16337,11 +16714,56 @@ 0 - -75 + -69 + + + exception_ptr free function + + + + 0 + + -70 + + + diagnostic_information tutorial + + + + 0 + + -71 + + + error_info_instance noalso type + + + + 0 + + -72 noalso noindex tutorial + + + 0 + + -74 + + + function member + + + + 0 + + -75 + + + error_info + 0 @@ -16349,6 +16771,15 @@ -76 + error_info_instance noalso type + + + + 0 + + -77 + + exception_ptr free function @@ -16358,7 +16789,16 @@ -78 - tutorial + type + + + + 0 + + -79 + + + function diff --git a/doc/synopsis.html b/doc/synopsis.html index 52e2c30..9971e4a 100644 --- a/doc/synopsis.html +++ b/doc/synopsis.html @@ -227,6 +227,15 @@ boost { typedef error_info<struct errinfo_file_open_mode_,std::string> errinfo_file_open_mode; } +

#include <boost/exception/errinfo_nested_exception.hpp>

+
#include <boost/exception/error_info.hpp>
+
+namespace
+boost
+    {
+    typedef ---unspecified--- exception_ptr;
+    typedef error_info<struct errinfo_nested_exception_,exception_ptr> errinfo_nested_exception;
+    }

#include <boost/exception/errinfo_type_info_name.hpp>


See Also:

Boost Exception
diff --git a/doc/types.html b/doc/types.html index 630fa32..eb63e4d 100644 --- a/doc/types.html +++ b/doc/types.html @@ -28,6 +28,7 @@

errinfo_file_handle

errinfo_file_name

errinfo_file_open_mode

+

errinfo_nested_exception

errinfo_type_info_name

error_info

error_info::value_type

diff --git a/include/boost/exception/all.hpp b/include/boost/exception/all.hpp index c5c677e..c47738b 100644 --- a/include/boost/exception/all.hpp +++ b/include/boost/exception/all.hpp @@ -20,6 +20,7 @@ #include #include #ifndef BOOST_NO_EXCEPTIONS +#include #include #endif diff --git a/include/boost/exception/errinfo_nested_exception.hpp b/include/boost/exception/errinfo_nested_exception.hpp new file mode 100644 index 0000000..de055e0 --- /dev/null +++ b/include/boost/exception/errinfo_nested_exception.hpp @@ -0,0 +1,17 @@ +//Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc. + +//Distributed under the Boost Software License, Version 1.0. (See accompanying +//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + +#ifndef UUID_45CC9A82B77511DEB330FC4956D89593 +#define UUID_45CC9A82B77511DEB330FC4956D89593 + +namespace +boost + { + template class error_info; + class exception_ptr; + typedef error_info errinfo_nested_exception; + } + +#endif diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 43edeef..0b9e5e2 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -59,4 +59,5 @@ compile errinfo_errno_hpp_test.cpp ; compile errinfo_file_handle_hpp_test.cpp ; compile errinfo_file_name_hpp_test.cpp ; compile errinfo_file_open_mode_hpp_test.cpp ; +compile errinfo_nested_exception_hpp_test.cpp ; compile errinfo_type_info_name_hpp_test.cpp ; diff --git a/test/cloning_test.cpp b/test/cloning_test.cpp index a54f58f..3567e0c 100644 --- a/test/cloning_test.cpp +++ b/test/cloning_test.cpp @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -13,8 +14,6 @@ struct my_tag {}; #endif -typedef boost::error_info nested_exception; - typedef boost::error_info my_info; template @@ -557,7 +556,7 @@ main() } try { - throw boost::enable_current_exception(derives_std_boost_exception("what2") << nested_exception(p) ); + throw boost::enable_current_exception(derives_std_boost_exception("what2") << boost::errinfo_nested_exception(p) ); } catch( ... ) diff --git a/test/errinfo_nested_exception_hpp_test.cpp b/test/errinfo_nested_exception_hpp_test.cpp new file mode 100644 index 0000000..2018d6b --- /dev/null +++ b/test/errinfo_nested_exception_hpp_test.cpp @@ -0,0 +1,7 @@ +//Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc. + +//Distributed under the Boost Software License, Version 1.0. (See accompanying +//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + +#include +#include