1 reno_project 2 reno_config ../..;../../../../boost .*\.(cpp|hpp|h)$ 3 reno_layer_map 7 default 4 reno_layer 76 0 5 reno_context 0 1 <string>Types</string> types 1 2 (:include include:) (:auto also:) 0 6 reno_context 0 1 <string>Synopsis</string> synopsis 1 2 (:include include:) (:auto also:) 0 7 reno_context 2 D2B32F34DB71CC3A381CE9ACAFA31ED2A0EF136FDC93C962E578F44D861DA263 4046881478 10278 527 C0660ECF00405B1CCEC2C8E38D7CBAB9E454481115597FC07AF45386B8A0EF35 1212114074 2056 4124 0 ../../../../boost/exception/exception.hpp 0 0 <string>exception</string> 1 2 (:include include:) ---- !!!See Also: (:pagelist link="backlink" except_tags="exception member noalso" mod="w" fmt="h":) 0 8 reno_context 3 99DDC29B8C4D366F7A5A5819117AF190E5255231DD9313E1CC0D56BCD9D89BAA 2051148095 1039 548 12EE98255E53951EE44D5D95A0506693E9F5F9D371505F490B8C0676EB383C7C 2825495330 622 411 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 9 reno_context 1 58091DC5EBEE7F90249253E3177232040F23E5D75F6530A54041D93DBFE99291 2889971768 11308 321 0 ../../../../boost/exception/detail/exception_ptr.hpp 0 0 <string>boost/exception_ptr.hpp</string> 1 2 (:include include:) (:auto also:) 0 10 reno_context 2 E283724582D1A1C7FADAEF8260CF64EA42A359DD1DE0109AB380B839DD00C5E1 2285342938 10602 927 44A436E88E9302D907AF1F343063D988F0F87C863E372EA97378835C64480093 308353940 75 26 0 ../../../../boost/exception/detail/exception_ptr.hpp 0 0 <string>exception_ptr</string> 1 2 (:include include:) (:auto also:) 0 11 reno_context 0 1 <string>frequently asked questions</string> 1 2 (:include include:) (:auto also:) 0 12 reno_context 0 1 <string>Motivation</string> motivation 7 2 (:include include:) (:auto also explicit=" 1 0 13 reno_context 0 1 <string>exception types as simple semantic tags</string> 2 1 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 2 1 0 -11 2 ":) 0 -13 1 2 (:include include:) (:auto also:) 0 -14 1 2 (:include include:) (:auto also:) 0 15 reno_context 2 E283724582D1A1C7FADAEF8260CF64EA42A359DD1DE0109AB380B839DD00C5E1 2285342938 10602 927 796BD0D716259ADB3173AFA2A7989E3F52F5D007D67D132DE95A080801510B50 1299192030 7151 2124 0 ../../../../boost/exception/detail/exception_ptr.hpp 0 0 <string>current_exception</string> 1 2 (:include include:) (:auto also:) 0 16 reno_context 0 1 <string>boost/exception/enable_error_info.hpp</string> 1 2 (:include include:) (:auto also:) 0 17 reno_context 1 D32E0E4334CE0236B6EDB0EAC484B2DD595860E9FD53701EB5646D62C6A45D4E 1054670543 866 306 0 ../../example/error_info_2.cpp 0 0 <string>adding of arbitrary data to active exception objects</string> adding_data_later 0 0 18 reno_context 2 D2B32F34DB71CC3A381CE9ACAFA31ED2A0EF136FDC93C962E578F44D861DA263 4046881478 10278 527 F3FB15CD82336271C6E875BC620385322777D16F0B7C233300783CE35710CCBF 3292878997 282 8088 0 ../../../../boost/exception/exception.hpp 0 0 <string>enable_error_info</string> 1 2 (:include include:) (:auto also:) 0 19 reno_context 2 964F6A1CDF157430B6F65ABDD6A590CFA6AE83EAED66B5B59BA829DB07DF97F2 3653363251 731 780 36688510914673386A7870D1D4970B7D74CF9A4B7226F9E225A5607DCBFB12C4 2314308857 446 279 0 ../../../../boost/exception/diagnostic_information.hpp 0 0 <string>current_exception_diagnostic_information</string> 1 2 (:include include:) (:auto also:) 0 20 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 21 reno_context 1 A7E1DE1220FF43715F94884D78D93FF18042E0BDE9BA9ACBD8C3138D437AE28C 3733653590 923 321 0 ../../../../boost/exception/errinfo_errno.hpp 0 0 <string>boost/exception/errinfo_errno.hpp</string> 1 2 (:include include:) (:auto also:) 0 22 reno_context 2 C58F3DFE2F3E99070B5C0982BD1A9101B6C9E56901A8E276EFA131B3F131F12C 1482082928 3832 1521 04DC5F51958DAE2FB24D3C430AA74E860FD42BFA204D223723B77B11656CB159 1496465214 3308 26 0 ../../../../boost/exception/diagnostic_information.hpp 0 0 <string>diagnostic_information</string> 1 2 (:include include:) (:auto also:) 0 23 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 24 reno_context 2 15CF5BD93D20D62D659C11A69330B06E408398EA488BEF1FD45437AADCDB424E 1232553666 214 345 6262783847165581298EC9500031E6B7A97B2751A9CEF67C4794121A78142C58 3676119191 90 118 0 ../../../../boost/exception/errinfo_file_handle.hpp 0 0 <string>errinfo_file_handle</string> 1 2 (:include include:) (:auto also:) 0 25 reno_context 2 E283724582D1A1C7FADAEF8260CF64EA42A359DD1DE0109AB380B839DD00C5E1 2285342938 10602 927 1516D0B7E11CBEB60CE4222565ACCAFF2E9857A8A505C1C26E2AE90087250581 3624753243 279 177 0 ../../../../boost/exception/detail/exception_ptr.hpp 0 0 <string>original_exception_type</string> 1 2 (:include include:) (:auto also:) 0 26 reno_context 2 D2B32F34DB71CC3A381CE9ACAFA31ED2A0EF136FDC93C962E578F44D861DA263 4046881478 10278 527 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E 765399792 77 6182 0 ../../../../boost/exception/exception.hpp 0 0 <string>exception::~exception</string> exception_destructor 1 2 (:include include:) (:auto also:) 0 27 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 28 reno_context 2 21027A2B73C9AA6FF083752A952D63BBA9B5FD68A3C8915965A7184EA62A5D61 1523356166 537 607 24256E1CE56594FB38D0630858B8947191827CFC57771E8727A6A56F76207454 665917505 66 26 0 ../../../../boost/exception/errinfo_errno.hpp 0 0 <string>errinfo_errno</string> 1 2 (:include include:) (:auto also:) 0 29 reno_context 0 1 <string>transporting of arbitrary data to the catch site</string> tutorial_transporting_data 1 2 (:include include:) (:auto also:) 0 30 reno_context 0 1 <string>boost exception</string> boost-exception 1 2 (:include include:) 0 31 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 32 reno_context 2 E283724582D1A1C7FADAEF8260CF64EA42A359DD1DE0109AB380B839DD00C5E1 2285342938 10602 927 F65C82C62C1EEA672C42FE46189491942DE15B2F8C998E7CAE49588C7D8CBFFA 1041900763 143 9584 0 ../../../../boost/exception/detail/exception_ptr.hpp 0 0 <string>rethrow_exception</string> 1 2 (:include include:) (:auto also:) 0 33 reno_context 1 C8D629C012959999E3C359F207A54AA6C2007060C9EF13696A60B9E8F4468D1D 2026932803 428 1090 0 ../../../../boost/throw_exception.hpp 0 0 <string>BOOST_THROW_EXCEPTION</string> 1 2 (:include include:) (:auto also:) 0 34 reno_context 3 99DDC29B8C4D366F7A5A5819117AF190E5255231DD9313E1CC0D56BCD9D89BAA 2051148095 1039 548 12EE98255E53951EE44D5D95A0506693E9F5F9D371505F490B8C0676EB383C7C 2825495330 622 411 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 35 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 36 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 37 reno_context 1 9A6D5598D65F1C1B5F913007D1CD1A814F3CDAD07D4AF8C468A0716059B2F7CC 3552995087 1405 527 0 ../../../../boost/exception/info_tuple.hpp 0 0 <string>boost/exception/info_tuple.hpp</string> 1 2 (:include include:) (:auto also:) 0 38 reno_context 2 6FB85B536F965F137409D5B5D34786DCBF0B9957A7C251D271B717A1156B823D 1090406464 362 527 D16DAEA8B1792A019AF7FCA362FDC6EFD381AF4C43C076A01C029ECE51F994A6 3172941848 330 26 0 ../../../../boost/exception/current_exception_cast.hpp 0 0 <string>current_exception_cast</string> 1 2 (:include include:) (:auto also:) 0 39 reno_context 1 D2B32F34DB71CC3A381CE9ACAFA31ED2A0EF136FDC93C962E578F44D861DA263 4046881478 10278 527 0 ../../../../boost/exception/exception.hpp 0 0 <string>boost/exception/exception.hpp</string> 1 2 (:include include:) (:auto also:) 0 40 reno_context 1 5594B7B6271DE43F8A8783A856C365F0E2DDC193C9ED293DE67EC75F16C1ABAD 3976881657 5132 321 0 ../../../../boost/exception/diagnostic_information.hpp 0 0 <string>boost/exception/diagnostic_information.hpp</string> 1 2 (:include include:) (:auto also:) 0 41 reno_context 1 A1E3F9582095C930245FF6DBA455C6C973F4F025AD6C1D0C3BC7E9494070BAA7 293414988 113 323 0 ../../../../boost/exception.hpp 0 0 <string>boost/exception.hpp</string> 1 2 (:include include:) (:auto also:) 0 42 reno_context 1 BF7B46FEFA4E2DED7D652BFD40E94DD0B225ADA8D35E28FF4216F72812589835 422843600 756 527 0 ../../../../boost/exception/all.hpp 0 0 <string>boost/exception/all.hpp</string> 1 2 (:include include:) (:auto also:) 0 43 reno_context 1 4D7009F0868C1DF4898EC6ECF9AD2CFEA98E8653B01B066106761807405D4C22 1416707852 3107 527 0 ../../../../boost/exception/get_error_info.hpp 0 0 <string>boost/exception/get_error_info.hpp</string> 1 2 (:include include:) (:auto also:) 0 44 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 45 reno_context 2 E0BE7EFCD5550582AB95C9EEDA6E68CA0F89B19838DA61876D42161E1EA4AE71 2587249979 233 323 92AB508A6B1C2A62CB2ACED423BD04BB5A471674B5A51BFC1E6FB1F5C92AF9AA 2372475309 70 157 0 ../../../../boost/exception/errinfo_at_line.hpp 0 0 <string>errinfo_at_line</string> 1 2 (:include include:) (:auto also:) 0 46 reno_context 2 3D9B2575FB35A9FAC1C2C1F1C5B41932C252CB9E5F268CA7E9345C918588E2B2 4217424172 617 1520 5DAC66FA4D2F1145A3B41489AF141627FFA839B75A2495FE16B1CA803E198114 2068234093 581 23 0 ../../../../boost/throw_exception.hpp 0 0 <string>throw_exception</string> 1 2 (:include include:) (:auto also:) 0 47 reno_context 2 D58AD357499A5A09FB5D12397CFFC2FFD412AC8A307ABB59C9BC53ACCA3B959D 2209414553 2926 708 49F40FF20D66B205C908A8F10BC61DE1BC571E4917A5BD0B4115E3F7FE3923FA 638776689 2894 26 0 ../../../../boost/exception/get_error_info.hpp 0 0 <string>get_error_info</string> 1 2 (:include include:) (:auto also:) 0 48 reno_context 0 1 <string>using virtual inheritance in exception types</string> 1 2 (:include include:) (:auto also:) 0 49 reno_context 0 1 <string>transporting of exceptions between threads</string> tutorial_exception_ptr 1 2 (:include include:) (:auto also:) 0 50 reno_context 2 D2B32F34DB71CC3A381CE9ACAFA31ED2A0EF136FDC93C962E578F44D861DA263 4046881478 10278 527 DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 1137981799 192 10080 0 ../../../../boost/exception/exception.hpp 0 0 <string>enable_current_exception</string> 1 2 (:include include:) (:auto also:) 0 51 reno_context 2 C58F3DFE2F3E99070B5C0982BD1A9101B6C9E56901A8E276EFA131B3F131F12C 1482082928 3832 1521 5738DF31DB52E5E8784199058479E798957794147A099D834110FF821C605EE3 1133216499 490 3336 0 ../../../../boost/exception/diagnostic_information.hpp 0 0 <string>diagnostic_information_what</string> 1 2 (:include include:) (:auto also:) 0 52 reno_context 1 DAC5C6D096B50EDCF8143E4922FC79D2E46FEA2FCD47EAD71D6392C1D8100DB3 4003832872 668 321 0 ../../../../boost/exception/current_exception_cast.hpp 0 0 <string>boost/exception/current_exception_cast.hpp</string> 1 2 (:include include:) (:auto also:) 0 53 reno_context 3 D2B32F34DB71CC3A381CE9ACAFA31ED2A0EF136FDC93C962E578F44D861DA263 4046881478 10278 527 C0660ECF00405B1CCEC2C8E38D7CBAB9E454481115597FC07AF45386B8A0EF35 1212114074 2056 4124 DA154372D8C23BD9EDC30005CA7959CE686D198891097A837D006B5222F04DE9 2768248809 143 60 0 ../../../../boost/exception/exception.hpp 0 0 <string>exception::exception</string> exception_constructors 1 2 (:include include:) (:auto also:) 0 54 reno_context 2 F7633FDCF6615C0199645701EE6E7ACE5CBCD7A7CF6838573791E91ABB3C09F2 1668435395 1332 600 A1F443AF571973A12005D2F7D4AE09A32AAF686FEEAE272EC21512A65EB943E8 3879093659 1300 26 0 ../../../../boost/exception/info_tuple.hpp 0 0 <string>tuple/operator<<</string> 1 2 (:include include:) (:auto also:) 0 55 reno_context 2 E283724582D1A1C7FADAEF8260CF64EA42A359DD1DE0109AB380B839DD00C5E1 2285342938 10602 927 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4 2078296250 305 9277 0 ../../../../boost/exception/detail/exception_ptr.hpp 0 0 <string>copy_exception</string> 1 2 (:include include:) (:auto also:) 0 56 reno_context 2 BCB5C3EACCA74DBD8F4FFC79CF82ACCA61EDB2FA7D1D74EA1BBC77A226C5E58A 1547205519 354 323 83E18B98A15DEF9418E38218D221D10DC093B915D630B51974CCD23A6E1EDC44 849683856 98 250 0 ../../../../boost/exception/errinfo_nested_exception.hpp 0 0 <string>errinfo_nested_exception</string> 1 2 (:include include:) (:auto also:) 0 57 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 58 reno_context 2 99DDC29B8C4D366F7A5A5819117AF190E5255231DD9313E1CC0D56BCD9D89BAA 2051148095 1039 548 12EE98255E53951EE44D5D95A0506693E9F5F9D371505F490B8C0676EB383C7C 2825495330 622 411 0 ../../../../boost/exception/detail/error_info_impl.hpp 0 0 <string>error_info</string> 1 2 (:include include:) (:auto also:) 0 59 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 60 reno_context 0 1 <string>boost/exception/enable_current_exception.hpp</string> 1 2 (:include include:) (:auto also:) 0 61 reno_context 1 8A5444CF9C854740F83F17EA2075478A983F7C0243DCE4E42551ECBF908C1392 4193409281 322 766 0 ../../../../boost/throw_exception.hpp 0 0 <string>configuration macros</string> 1 2 (:include include:) (:auto also:) 0 62 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 63 reno_context 1 ED2BABEAAFC5425B304B6A58A6986D38DC1F249A2B29BA88C89475F517FDCE74 4116923183 5011 321 0 ../../../../boost/exception/info.hpp 0 0 <string>boost/exception/info.hpp</string> 1 2 (:include include:) (:auto also:) 0 64 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 65 reno_context 1 BCB5C3EACCA74DBD8F4FFC79CF82ACCA61EDB2FA7D1D74EA1BBC77A226C5E58A 1547205519 354 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 66 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 67 reno_context 0 1 <string>page index</string> page_idx 1 2 (:include include:) (:auto also:) 0 68 reno_context 0 1 <string>Macros</string> macros 1 2 (:include include:) (:auto also:) 0 69 reno_context 1 91CF203512705C8B2CDCBCD1439821CBF93CFC1A4C2EA2CA91F38DAA3F7720B2 1769665510 1558 352 0 ../../example/errinfos.cpp 0 0 <string>errinfos example</string> 0 0 70 reno_context 1 E0BE7EFCD5550582AB95C9EEDA6E68CA0F89B19838DA61876D42161E1EA4AE71 2587249979 233 323 0 ../../../../boost/exception/errinfo_at_line.hpp 0 0 <string>boost/exception/errinfo_at_line.hpp</string> 1 2 (:include include:) (:auto also:) 0 71 reno_context 0 1 <string>Functions</string> functions 1 2 (:include include:) (:auto also:) 0 72 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 73 reno_context 1 DB156E6A8ACB9FB90C8FB110FC25A5FEB14A619F82EEC47FF913373592E5CC3E 240075319 6209 412 0 ../../example/example_io.cpp 0 0 <string>diagnostic_information example</string> 0 0 74 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 75 reno_context 2 16DD00328E4AF76F11BFD52A1E16305E0A2513B0BEB9D2380645C364AD4A3C4D 211195741 4481 751 6E325144EF4F41FA3A225EB30729101382C4E99B3D6160E307311E4B4E641010 1097215175 161 240 0 ../../../../boost/exception/info.hpp 0 0 <string>error_info::error_info</string> 1 2 (:include include:) (:auto also:) 0 76 reno_context 2 16DD00328E4AF76F11BFD52A1E16305E0A2513B0BEB9D2380645C364AD4A3C4D 211195741 4481 751 B494F545ED1BD0502F8699D7059DC882495CC0D93A23CFA306E5F39BB14E4A97 259300739 523 3952 0 ../../../../boost/exception/info.hpp 0 0 <string>exception/operator<<</string> 1 2 (:include include:) (:auto also:) 0 77 reno_context 2 E283724582D1A1C7FADAEF8260CF64EA42A359DD1DE0109AB380B839DD00C5E1 2285342938 10602 927 1760DA943E0DCAE6DDB000F3C08D6E6F5F8AEDBBEAC7CAA84A2ED60BFA4B0E1A 702729709 815 1307 0 ../../../../boost/exception/detail/exception_ptr.hpp 0 0 <string>unknown_exception</string> 1 2 (:include include:) (:auto also:) 0 78 reno_context 1 DE766B811244919E8E1EA54FC747A8487BCE57F1AB592932640FC90428B617A5 414875037 427 323 0 ../../../../boost/exception/errinfo_file_open_mode.hpp 0 0 <string>boost/exception/errinfo_file_open_mode.hpp</string> 1 2 (:include include:) (:auto also:) 0 79 reno_context 1 0FFB6F55A2CD813056F10E2516A9FBE58D5A2E9C9592914FCF25E3BFF5F856CB 2333510468 2066 91 0 ../../../../boost/throw_exception.hpp 0 0 <string>boost/throw_exception.hpp</string> 1 2 (:include include:) (:auto also:) 0 80 reno_context 0 1 <string>Headers</string> headers 1 2 (:include include:) (:auto also:) def 81 reno_layer 76 0 -5 0 0 -6 0 0 -7 7 2 [@class (:link 1 0 -7 2 :) { protected: (:include 1 0 -53 2 decl pre_indent="4":) (:include 1 0 -26 2 decl pre_indent="4":) };@] 0 -8 0 0 -9 0 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 0 0 -19 0 0 -20 0 0 -21 0 0 -22 0 0 -23 0 0 -24 5 2 [@typedef (:link 1 0 -58 2 :)<struct errinfo_file_handle_,weak_ptr<FILE> > (:link 1 0 -24 2 :);@] 0 -25 0 0 -26 0 0 -27 5 2 [@typedef 1 0 -58 2 <struct errinfo_file_open_mode_,std::string> 1 0 -27 2 ;@] 0 -28 5 2 [@typedef 1 0 -58 2 <struct errinfo_errno_,int> 1 0 -28 2 ;@] 0 -29 0 0 -30 0 0 -31 5 2 [@typedef (:link 1 0 -58 2 :)<struct errinfo_file_name_,std::string> (:link 1 0 -31 2 :);@] 0 -32 0 0 -33 0 0 -34 0 0 -35 0 0 -36 5 2 [@typedef (:link 1 0 -58 2 :)<struct errinfo_api_function_,char const *> (:link 1 0 -36 2 :);@] 0 -37 0 0 -38 0 0 -39 0 0 -40 0 0 -41 0 0 -42 0 0 -43 0 0 -44 0 0 -45 5 2 [@typedef (:link 1 0 -58 2 :)<struct errinfo_at_line_,int> (:link 1 0 -45 2 :);@] 0 -46 0 0 -47 0 0 -48 0 0 -49 0 0 -50 0 0 -51 0 0 -52 0 0 -53 0 0 -54 0 0 -55 0 0 -56 7 2 [@typedef (:link 1 0 -58 2 :)<struct errinfo_nested_exception_,(:link 1 0 -10 2 :)> (:link 1 0 -56 2 :);@] 0 -57 0 0 -58 9 2 [@template <class Tag,class T> class (:link 1 0 -58 2 :) { public: (:include 1 0 -8 2 decl pre_indent="4":) (:include 1 0 -75 2 decl pre_indent="4":) (:include 1 0 -34 2 decl pre_indent="4":) };@] 0 -59 5 2 [@typedef 1 0 -58 2 <struct errinfo_type_info_name_,std::string> 1 0 -59 2 ;@] 0 -60 0 0 -61 0 0 -62 0 0 -63 0 0 -64 0 0 -65 0 0 -66 0 0 -67 0 0 -68 0 0 -69 0 0 -70 0 0 -71 0 0 -72 0 0 -73 0 0 -74 0 0 -75 0 0 -76 0 0 -77 0 0 -78 0 0 -79 0 0 -80 0 api 82 reno_layer 76 0 -5 0 0 -6 0 0 -7 0 0 -8 0 0 -9 13 2 [@(:include 1 0 -77 2 decl:) (:include 1 0 -25 2 decl:) (:include 1 0 -10 2 decl:) (:include 1 0 -55 2 decl:) (:include 1 0 -15 2 decl:) (:include 1 0 -32 2 decl:)@] 0 -10 0 0 -11 0 0 -12 0 0 -13 0 0 -14 0 0 -15 0 0 -16 3 2 [@(:include 1 0 -18 2 decl:)@] 0 -17 0 0 -18 0 0 -19 0 0 -20 3 2 [@(:include 1 0 -31 2 def:)@] 0 -21 3 2 [@(:include 1 0 -28 2 def:)@] 0 -22 0 0 -23 0 0 -24 0 0 -25 0 0 -26 0 0 -27 0 0 -28 0 0 -29 0 0 -30 0 0 -31 0 0 -32 0 0 -33 0 0 -34 0 0 -35 0 0 -36 0 0 -37 3 2 [@(:include 1 0 -54 2 decl:)@] 0 -38 0 0 -39 11 2 [@(:include 1 0 -7 2 def:) (:include 1 0 -58 2 decl:) typedef (:link 1 0 -58 2 :)<struct throw_function_,char const *> throw_function; typedef (:link 1 0 -58 2 :)<struct throw_file_,char const *> throw_file; typedef (:link 1 0 -58 2 :)<struct throw_line_,int> throw_line;@] 0 -40 7 2 [@(:include 1 0 -22 2 decl:) (:include 1 0 -51 2 decl:) (:include 1 0 -19 2 decl:)@] 0 -41 0 0 -42 33 2 [@#include <(:link 1 0 -40 2 :)> #include <(:link 1 0 -72 2 :)> #include <(:link 1 0 -39 2 :)> #include <(:link 1 0 -43 2 :)> #include <(:link 1 0 -63 2 :)> #include <(:link 1 0 -37 2 :)> #include <(:link 1 0 -62 2 :)> #include <(:link 1 0 -70 2 :)> #include <(:link 1 0 -21 2 :)> #include <(:link 1 0 -74 2 :)> #include <(:link 1 0 -20 2 :)> #include <(:link 1 0 -78 2 :)> #include <(:link 1 0 -44 2 :)> #ifndef (:link 1 0 -61 2 |BOOST_NO_EXCEPTIONS:) #include <(:link 1 0 -65 2 :)> #include <(:link 1 0 -9 2 :)> #endif@] 0 -43 3 2 [@(:include 1 0 -47 2 decl:)@] 0 -44 3 2 [@(:include 1 0 -59 2 def:)@] 0 -45 0 0 -46 0 0 -47 0 0 -48 0 0 -49 0 0 -50 0 0 -51 0 0 -52 3 2 [@(:include 1 0 -38 2 decl:)@] 0 -53 0 0 -54 0 0 -55 0 0 -56 0 0 -57 0 0 -58 0 0 -59 0 0 -60 3 2 [@(:include 1 0 -50 2 decl:)@] 0 -61 0 0 -62 3 2 [@(:include 1 0 -36 2 def:)@] 0 -63 5 2 [@(:include 1 0 -58 2 def:) (:include 1 0 -76 2 decl:)@] 0 -64 0 0 -65 3 2 [@(:include 1 0 -56 2 def:)@] 0 -66 0 0 -67 0 0 -68 0 0 -69 0 0 -70 3 2 [@(:include 1 0 -45 2 def:)@] 0 -71 0 0 -72 3 2 [@(:include 1 0 -58 2 decl:)@] 0 -73 0 0 -74 3 2 [@(:include 1 0 -24 2 def:)@] 0 -75 0 0 -76 0 0 -77 0 0 -78 3 2 [@(:include 1 0 -27 2 def:)@] 0 -79 5 2 [@(:include 1 0 -33 2 decl:) namespace boost { (:include 1 0 -46 2 decl:) }@] 0 -80 0 decl 83 reno_layer 76 0 -5 0 0 -6 0 0 -7 3 2 [@class (:link 1 0 -7 2 :);@] 0 -8 3 2 [@typedef T (:link 1 0 -8 2 mod="m":);@] 0 -9 0 0 -10 3 2 [@typedef ---unspecified--- (:link 1 0 -10 2 :);@] 0 -11 0 0 -12 0 0 -13 0 0 -14 0 0 -15 5 2 [@(:link 1 0 -10 2 :) (:link 1 0 -15 2 :)();@] 0 -16 0 0 -17 0 0 -18 3 2 [@template <class T> ---unspecified--- (:link 1 0 -18 2 :)( T const & x );@] 0 -19 3 2 [@std::string (:link 1 0 -19 2 :)();@] 0 -20 0 0 -21 0 0 -22 7 2 [@template <class E> std::string (:link 1 0 -22 2 :)( E const & e ); std::string (:link 1 0 -22 2 :)( (:link 1 0 -10 2 :) const & p );@] 0 -23 0 0 -24 0 0 -25 5 2 [@typedef (:link 1 0 -58 2 :)<struct tag_original_exception_type,std::type_info const *> 1 0 -25 2 ;@] 0 -26 3 2 [@(:link 1 0 -26 2 mod="m":)();@] 0 -27 0 0 -28 0 0 -29 0 0 -30 0 0 -31 0 0 -32 5 2 [@void (:link 1 0 -32 2 :)( (:link 1 0 -10 2 :) const & ep ); 0 -33 19 2 [@#if !defined( BOOST_EXCEPTION_DISABLE ) #include <(:link 1 0 -39 2 :)> #include <boost/current_function.hpp> #define (:link 1 0 -33 2 :)(x)\ ::boost::(:link 1 0 -46 2 :)( ::boost::(:link 1 0 -18 2 :)(x) <<\ ::boost::(:link 1 0 -39 2 |throw_function:)(BOOST_CURRENT_FUNCTION) <<\ ::boost::(:link 1 0 -39 2 |throw_file:)(__FILE__) <<\ ::boost::(:link 1 0 -39 2 |throw_line:)((int)__LINE__) ) #else #define (:link 1 0 -33 2 :)(x) ::boost::(:link 1 0 -46 2 :)(x) #endif@] 0 -34 9 2 [@(:link 1 0 -8 2 mod="m":) const & (:link 1 0 -34 2 mod="m":)() const; (:link 1 0 -8 2 mod="m":) & (:link 1 0 -34 2 mod="m":)();@] 0 -35 0 0 -36 0 0 -37 0 0 -38 3 2 [@template <class E> E * 1 0 -38 2 ();@] 0 -39 0 0 -40 0 0 -41 0 0 -42 0 0 -43 0 0 -44 0 0 -45 0 0 -46 5 2 [@#ifdef BOOST_NO_EXCEPTIONS void (:link 1 0 -46 2 :)( std::exception const & e ); // user defined #else template <class E> void (:link 1 0 -46 2 :)( E const & e ); #endif@] 0 -47 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 );@] 0 -48 0 0 -49 0 0 -50 3 2 [@template <class T> ---unspecified--- (:link 1 0 -50 2 :)( T const & e );@] 0 -51 5 2 [@char const * 1 0 -51 2 ( boost:: 1 0 -7 2 const & e ) throw();@] 0 -52 0 0 -53 7 2 [@(:link 1 0 -53 2 mod="m":)(); (:link 1 0 -53 2 mod="m":)( (:link 1 0 -7 2 :) const & x );@] 0 -54 7 2 [@template <class E, class Tag1, class T1, ..., class TagN, class TN> E const & (:link 1 0 -54 2 mod="/":)( E const & x, (:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)< (:link 1 0 -58 2 :)<Tag1,T1>, ..., (:link 1 0 -58 2 :)<TagN,TN> > const & v );@] 0 -55 5 2 [@template <class T> (:link 1 0 -10 2 :) (:link 1 0 -55 2 :)( T const & e );@] 0 -56 0 0 -57 0 0 -58 3 2 [@template <class Tag,class T> class (:link 1 0 -58 2 :);@] 0 -59 0 0 -60 0 0 -61 0 0 -62 0 0 -63 0 0 -64 0 0 -65 0 0 -66 0 0 -67 0 0 -68 0 0 -69 0 0 -70 0 0 -71 0 0 -72 0 0 -73 0 0 -74 0 0 -75 5 2 [@(:link 1 0 -75 2 mod="m":)( (:link 1 0 -8 2 mod="m":) const & v );@] 0 -76 5 2 [@template <class E, class Tag, class T> E const & (:link 1 0 -76 2 mod="/":)( E const & x, (:link 1 0 -58 2 :)<Tag,T> const & v );@] 0 -77 5 2 [@class (:link 1 0 -77 2 :): public std::exception public boost:: 1 0 -7 2 { ---unspecified--- };@] 0 -78 0 0 -79 0 0 -80 0 include 84 reno_layer 76 0 -5 1 2 (:auto !!:) (:pagelist fmt="index" tags="type":) 0 -6 77 2 !!Synopsis List of documented definitions, declarations and includes by header file: `#include <(:link 1 0 -39 2 :)> [@(:include 1 0 -39 2 synopsis:)@] `#include <(:link 1 0 -72 2 :)> [@(:include 1 0 -72 2 synopsis:)@] `#include <(:link 1 0 -63 2 :)> [@(:include 1 0 -63 2 synopsis:)@] `#include <(:link 1 0 -37 2 :)> [@(:include 1 0 -37 2 synopsis:)@] `#include <(:link 1 0 -16 2 :)> [@(:include 1 0 -16 2 synopsis:)@] `#include <(:link 1 0 -40 2 :)> [@(:include 1 0 -40 2 synopsis:)@] `#include <(:link 1 0 -52 2 :)> [@(:include 1 0 -52 2 synopsis:)@] `#include <(:link 1 0 -9 2 :)> [@(:include 1 0 -9 2 synopsis:)@] `#include <(:link 1 0 -60 2 :)> [@(:include 1 0 -60 2 synopsis:)@] `#include <(:link 1 0 -79 2 :)> [@(:include 1 0 -79 2 synopsis:)@] `#include <(:link 1 0 -62 2 :)> (:include 1 0 -62 2 synopsis:) `#include <(:link 1 0 -70 2 :)> (:include 1 0 -70 2 synopsis:) `#include <(:link 1 0 -21 2 :)> (:include 1 0 -21 2 synopsis:) `#include <(:link 1 0 -74 2 :)> (:include 1 0 -74 2 synopsis:) `#include <(:link 1 0 -20 2 :)> (:include 1 0 -20 2 synopsis:) `#include <(:link 1 0 -78 2 :)> (:include 1 0 -78 2 synopsis:) `#include < 1 0 -65 2 > (:include 1 0 -65 2 synopsis:) `#include <(:link 1 0 -44 2 :)> (:include 1 0 -44 2 synopsis:) `#include <(:link 1 0 -42 2 :)> (:include 1 0 -42 2 synopsis:) 0 -7 13 2 (:auto !!!:) (:include synopsis:) Class boost::(:link 1 0 -7 2 :) is designed to be used as a universal base for user-defined exception types. An object of any type deriving from boost::(:link 1 0 -7 2 :) can store data of arbitrary types, using the (:link 1 0 -58 2 :) wrapper and (:link 1 0 -76 2 mod="/":). To retrieve data from a boost::(:link 1 0 -7 2 :) object, use the (:link 1 0 -47 2 :) function template. 0 -8 5 2 (:auto !!!:) (:include synopsis:) !!!!Definition: The expression 1 0 -58 2 <Tag,T>::(:link 1 0 -8 2 mod="m":) evaluates to T. 0 -9 1 2 (:auto !!:) !!!Synopsis (:include synopsis:) 0 -10 23 2 (:auto !!!:) (:include synopsis:) The (:link 1 0 -10 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 -10 2 :)'s operations do not throw. The referenced object remains valid at least as long as there is an (:link 1 0 -10 2 :) object that refers to it. Two instances of (:link 1 0 -10 2 :) are equivalent and compare equal if and only if they refer to the same exception. The default constructor of (:link 1 0 -10 2 :) produces the null value of the type. The null value is equivalent only to itself. !!!!Thread safety: The 1 0 -10 2 type is "as thread-safe as built-in types": * An 1 0 -10 2 instance can be "read" simultaneously by multiple threads * Different 1 0 -10 2 instances can be "written to" simultaneously by multiple threads, even when these instances refer to the same exception object All other simultaneous accesses result in undefined behavior. !!!!Nesting of exceptions: An (:link 1 0 -10 2 :) can be added as (:link 1 0 -58 2 :) to any boost::(:link 1 0 -7 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 -11 79 2 (:auto !!:) !!!Why doesn't boost::exception derive from std::exception? Despite that (:link 1 0 -48 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 -7 2 :) derives from std::exception, using the (:link 1 0 -18 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 -7 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 -58 2 :) to an active exception object: [@catch( boost::(:link 1 0 -7 2 :) & e ) { e (:link 1 0 -76 2 |<<:) foo_info(foo); throw e; //Compile error: boost::(:link 1 0 -7 2 :) is abstract }@] The correct code is: [@catch( boost::(:link 1 0 -7 2 :) & e ) { e (:link 1 0 -76 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 -7 2 :) does not by itself cause dynamic memory allocations. Deriving from boost::(:link 1 0 -7 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 -46 2 :) instead of using throw directly is that it ensures that the emitted exception derives from boost::(:link 1 0 -7 2 :) and that it is compatible with boost::(:link 1 0 -15 2 :). The (:link 1 0 -33 2 :) macro also results in a call to boost::(:link 1 0 -46 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 -22 2 :) to compose a more useful, if not user-friendly message. Typical use of boost::(:link 1 0 -22 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 -33 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 -36 2 :)_ *] = fopen [struct boost::(:link 1 0 -28 2 :)_ *] = 2, "No such file or directory" [struct boost::(:link 1 0 -31 2 :)_ *] = tmp1.txt [struct boost::(:link 1 0 -27 2 :)_ *] = rb@] !!!Why is boost::exception integrated in boost::throw_exception? The boost::(:link 1 0 -46 2 :) function predates the Boost Exception library and there has been some concern about its current behavior of injecting boost::(:link 1 0 -7 2 :) as a base of any exception passed to boost::(:link 1 0 -46 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 -7 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 -10 2 :), but this requires that Boost Serialization throws exceptions using boost::(:link 1 0 -50 2 :). If Boost Serialization calls boost::(:link 1 0 -46 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 -7 2 :), it is often desirable to add one or more (:link 1 0 -58 2 :) objects in it. The syntactic sugar provided by (:link 1 0 -76 2 :) allows this to be done directly in a throw expression: [@throw error() (:link 1 0 -76 2 |<<:) foo_info(foo) (:link 1 0 -76 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 -76 2 |<<:) file_name(fn);@] The intention here is to throw a file_open_error, however if (:link 1 0 -76 2 mod="/":) fails to copy the std::string contained in the file_name (:link 1 0 -58 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 -12 33 2 (:auto !!!:) Traditionally, when using exceptions to report failures, the throw site: *creates an exception object of the appropriate type, and *stuffs it with data relevant to the detected error. A higher context in the program contains a catch statement which: *selects failures based on exception types, and *inspects exception objects for data required to deal with the problem. The main issue with this "traditional" approach is that often, the data available at the point of the throw is insufficient for the catch site to handle the failure. Here is an example of a catch statement: [@catch( file_read_error & e ) { std::cerr << e.file_name(); }@] And here is a possible matching throw: [@void read_file( FILE * f ) { .... size_t nr=fread(buf,1,count,f); if( ferror(f) ) throw file_read_error(???); .... }@] Clearly, the problem is that the handler requires a file name but the read_file function does not have a file name to put in the exception object; all it has is a FILE pointer! In an attempt to deal with this problem, we could modify read_file to accept a file name: [@void read_file( FILE * f, char const * name ) { .... size_t nr=fread(buf,1,count,f); if( ferror(f) ) throw file_read_error(name); .... }@] This is not a real solution: it simply shifts the burden of supplying a file name to the immediate caller of the read_file function. ->''In general, the data required to handle a given library-emitted exception depends on the program that links to it. Many contexts between the throw and the catch may have relevant information which must be transported to the exception handler.'' !!!Exception wrapping The idea of exception wrapping is to catch an exception from a lower level function (such as the read_file function above), and throw a new exception object that contains the original exception (and also carries a file name.) This method seems to be particularly popular with C++ programmers with Java background. Exception wrapping leads to the following problems: *To wrap an exception object it must be copied, which may result in slicing. *Wrapping is practically impossible to use in generic contexts. The second point is actually special case of violating the exception neutrality principle. Most contexts in a program can not handle exceptions; such contexts should not interfere with the process of exception handling. !!!The boost::exception solution *Simply derive your exception types from boost::(:link 1 0 -7 2 :). *Confidently limit the throw site to provide only data that is available naturally. *Use exception-neutral contexts between the throw and the catch to augment exceptions with more relevant data as they bubble up. For example, in the throw statement below we only add the errno code, since this is the only failure-relevant information available in this context: [@struct exception_base: virtual std::exception, virtual boost::(:link 1 0 -7 2 :) { }; struct io_error: virtual exception_base { }; struct file_read_error: virtual io_error { }; typedef boost::(:link 1 0 -58 2 :)<struct tag_errno_code,int> errno_code; void read_file( FILE * f ) { .... size_t nr=fread(buf,1,count,f); if( ferror(f) ) throw file_read_error() (:link 1 0 -76 2 |<<:) errno_code(errno); .... }@] In a higher exception-neutral context, we add the file name to ''any'' exception that derives from boost::(:link 1 0 -7 2 :): [@typedef boost::(:link 1 0 -58 2 :)<struct tag_file_name,std::string> file_name; .... try { if( FILE * fp=fopen("foo.txt","rt") ) { shared_ptr<FILE> f(fp,fclose); .... read_file(fp); //throws types deriving from boost::(:link 1 0 -7 2 :) do_something(); .... } else throw file_open_error() (:link 1 0 -76 2 |<<:) errno_code(errno); } catch( boost::(:link 1 0 -7 2 :) & e ) { e (:link 1 0 -76 2 |<<:) file_name("foo.txt"); throw; }@] Finally here is how the handler retrieves data from exceptions that derive from boost::(:link 1 0 -7 2 :): [@catch( io_error & e ) { std::cerr << "I/O Error!\n"; if( std::string const * fn=(:link 1 0 -47 2 :)<file_name>(e) ) std::cerr << "File name: " << *fn << "\n"; if( int const * c=(:link 1 0 -47 2 :)<errno_code>(e) ) std::cerr << "OS says: " << strerror(*c) << "\n"; }@] In addition, boost::(:link 1 0 -22 2 :) can be used to compose an automatic (if not user-friendly) message that contains all of the (:link 1 0 -58 2 :) objects added to a boost::(:link 1 0 -7 2 :). This is useful for inclusion in logs and other diagnostic objects. 0 -13 7 2 (:auto !!!:) Deriving from boost::(:link 1 0 -7 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 -7 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 -7 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 -14 27 2 (:auto !!:) Some exception hierarchies can not be modified to make boost::(:link 1 0 -7 2 :) a base type. In this case, the (:link 1 0 -18 2 :) function template can be used to make exception objects derive from boost::(:link 1 0 -7 2 :) anyway. Here is an example: [@#include <(:link 1 0 -42 2 :)> #include <stdexcept> typedef boost::(:link 1 0 -58 2 :)<struct tag_std_range_min,size_t> std_range_min; typedef boost::(:link 1 0 -58 2 :)<struct tag_std_range_max,size_t> std_range_max; typedef boost::(:link 1 0 -58 2 :)<struct tag_std_range_index,size_t> std_range_index; template <class T> class my_container { public: size_t size() const; T const & operator[]( size_t i ) const { if( i > size() ) throw boost::(:link 1 0 -18 2 :)(std::range_error("Index out of range")) << std_range_min(0) << std_range_max(size()) << std_range_index(i); //.... } }; @] The call to (:link 1 0 -18 2 :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link 1 0 -7 2 :) and T. This makes it possible to use (:link 1 0 -76 2 mod="/":) to store additional information in the exception object. The exception can be intercepted as T &, so existing exception handling will not break. It can also be intercepted as boost::(:link 1 0 -7 2 :) &, so that (:link 1 0 -29 2 |more information can be added to the exception at a later time:). 0 -15 39 2 (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link 1 0 -15 2 :) function must not be called outside of a catch block. In addition, to safely copy an exception from one thread to another, if the exception object is copied by 1 0 -15 2 or 1 0 -55 2 , the two copies must not have shared state. Exceptions that have value-type semantics (as well as the boost:: 1 0 -7 2 type itself) satisfy this requirement. !!!!Returns: * An (:link 1 0 -10 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 -10 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 -15 2 :) refer to the same exception object. * Correct implementation of (:link 1 0 -15 2 :) may require compiler support, unless (:link 1 0 -50 2 :) was used at the time the currently handled exception object was passed to throw. Whenever (:link 1 0 -15 2 :) fails to properly copy the current exception object, it returns an (:link 1 0 -10 2 :) to an object of type that is as close as possible to the original exception type, using (:link 1 0 -77 2 :) as a final fallback. All such types derive from boost::(:link 1 0 -7 2 :), and: ** if the original exception object derives from boost::(:link 1 0 -7 2 :), then the boost::(:link 1 0 -7 2 :) sub-object of the object referred to by the returned (:link 1 0 -10 2 :) is initialized by the boost::(:link 1 0 -7 2 :) copy constructor; ** if available, the exception contains the std::type_info of the original exception object, accessible through (:link 1 0 -47 2 :)<(:link 1 0 -25 2 :)>. 0 -16 1 2 (:auto !!!:) !!!Synopsis (:include synopsis:) 0 -17 19 2 (:auto !!!:) Sometimes the throw site does not have all the information that is needed at the catch site to make sense of what went wrong. Let's say we have an exception type file_read_error, which takes a file name in its constructor. Consider the following function: [@void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw file_read_error(????); }@] How can the file_read function pass a file name to the exception type constructor? All it has is a FILE handle. Using boost::(:link 1 0 -7 2 :) allows us to free the file_read function from the burden of storing the file name in exceptions it throws: [@`#include <(:link 1 0 -42 2 :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <errno.h> struct file_read_error: virtual boost::(:link 1 0 -7 2 :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw file_read_error() << boost::(:link 1 0 -28 2 :)(errno); }@] If file_read detects a failure, it throws an exception which contains the information that is available at the time, namely the errno. Other relevant information, such as the file name, can be added in a context higher up the call stack, where it is known naturally: [@#include <(:link 1 0 -42 2 :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> boost::shared_ptr<FILE> file_open( char const * file_name, char const * mode ); void file_read( FILE * f, void * buffer, size_t size ); void parse_file( char const * file_name ) { boost::shared_ptr<FILE> f = file_open(file_name,"rb"); assert(f); try { char buf[1024]; file_read( f.get(), buf, sizeof(buf) ); } catch( boost::(:link 1 0 -7 2 :) & e ) { e << boost::(:link 1 0 -31 2 :)(file_name); throw; } }@] The above function is (almost) exception-neutral -- if an exception is emitted by any function call within the try block, parse_file does not need to do any real work, but it intercepts any boost::(:link 1 0 -7 2 :) object, stores the file name, and re-throws using a throw-expression with no operand (15.1.6). The rationale for catching any boost::(:link 1 0 -7 2 :) object is that the file name is relevant to any failure that occurs in parse_file, ''even if the failure is unrelated to file I/O''. 0 -18 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 -7 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 -7 2 :). The T sub-object is initialized from x by the T copy constructor. !!!!Throws: Nothing. 0 -19 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 -7 2 :) or std::exception, this function returns the same string value returned by (:link 1 0 -22 2 :) for the current exception object. Otherwise, an unspecified non-empty string is returned. Typical use is to call 1 0 -19 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 -19 2 (); } }@] 0 -20 1 2 (:auto !!:) !!!Synopsis (:include synopsis:) 0 -21 1 2 (:auto !!:) !!!Synopsis (:include synopsis:) 0 -22 37 2 (:auto !!!:) (:include synopsis:) !!!!Returns: A string value that contains varying amount of implementation-specific diagnostic information about the passed object: *If E can be statically converted to boost::(:link 1 0 -7 2 :), the returned value contains the string representations of all (:link 1 0 -58 2 :) objects stored in the boost::(:link 1 0 -7 2 :) through (:link 1 0 -76 2 mod="/":), along with other diagnostic information relevant to the exception. If e can be dynamically converted to std::exception, the returned value also contains the what() string. *Otherwise, if E can be statically converted to std::exception: **if e can be dynamically converted to boost::exception, the returned value is the same as if E could be statically converted to boost::(:link 1 0 -7 2 :); **otherwise the returned value contains the what() string. *Otherwise, the boost::(:link 1 0 -22 2 :) template is not available. The string representation of each (:link 1 0 -58 2 :) object is deduced by a function call that is bound at the time the (:link 1 0 -58 2 :)<Tag,T> template is instantiated. The following overload resolutions are attempted in order: #Unqualified call to to_string(x), where x is of type (:link 1 0 -58 2 :)<Tag,T> (the return value is expected to be of type std::string.) #Unqualified call to to_string(x.(:link 1 0 -34 2 mod="m":)()) (the return value is expected to be of type std::string.) #Unqualified call to s << x.(:link 1 0 -34 2 mod="m":)(), where s is a std::ostringstream. The first successfully bound function is used at the time (:link 1 0 -22 2 :) is called; if all 3 overload resolutions are unsuccessful, the system is unable to convert the (:link 1 0 -58 2 :) object to string, and ''an unspecified stub string value is used without issuing a compile error.'' The (:link 1 0 -10 2 :) overload of (:link 1 0 -22 2 :) is equivalent to: [@if( p ) try { (:link 1 0 -32 2 :)(p); } catch(...) { return (:link 1 0 -19 2 :)(); } else return <unspecified-string-value>;@] !!!!Notes: *The format of the returned string is unspecified. *The returned string is ''not'' user-friendly. *The returned string may include additional platform-specific diagnostic information. (:include 1 0 -73 2 :) 0 -23 19 2 (:auto !!:) Boost Exception provides a namespace-scope function (:link 1 0 -22 2 :) which takes a boost::(:link 1 0 -7 2 :). The returned string contains: *the string representation of all data objects added to the boost::(:link 1 0 -7 2 :) through (:link 1 0 -76 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 -42 2 :)> #include <iostream> void f(); //throws unknown types that derive from boost::(:link 1 0 -7 2 :). void g() { try { f(); } catch( boost::(:link 1 0 -7 2 :) & e ) { std::cerr << (:link 1 0 -22 2 :)(e); } }@] (:include 1 0 -73 2 :) 0 -24 7 2 (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard (:link 1 0 -58 2 :) instance for transporting a relevant FILE pointer managed by a boost::shared_ptr<FILE> in exceptions deriving from boost::(:link 1 0 -7 2 :). !!!Example: (:include 1 0 -69 2 :) 0 -25 9 2 (:auto !!!:) (:include synopsis:) This 1 0 -58 2 typedef is used by 1 0 -15 2 if it defaults to returning an 1 0 -10 2 that refers to an object of type 1 0 -77 2 , to record in it the std::type_info of the original exception object. 0 -26 3 2 (:auto !!!:) (:include decl:) !!!!Effects: Frees all resources associated with a boost::(:link 1 0 -7 2 :) object. !!!!Throws: Nothing. 0 -27 7 2 (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard (:link 1 0 -58 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 -7 2 :). !!!Example: (:include 1 0 -69 2 :) 0 -28 7 2 (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard (:link 1 0 -58 2 :) instance for transporting a relevant errno value in exceptions deriving from boost::(:link 1 0 -7 2 :). !!!Example: (:include 1 0 -69 2 :) 0 -29 11 2 (:auto !!:) All exception types that derive from boost::(:link 1 0 -7 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 -7 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 -35 2 :) (:include 1 0 -17 2 :) (:include 1 0 -57 2 :) 0 -30 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 -49 2 |copying:) of exception objects, implemented non-intrusively and automatically by the boost::(:link 1 0 -46 2 :) function. !!Contents #(:link 1 0 -12 2 :) #Tutorial ##(:link 1 0 -29 2 mod="w":) ##(:link 1 0 -14 2 mod="w":) ##(:link 1 0 -49 2 mod="w":) ##(:link 1 0 -13 2 mod="w":) ##(:link 1 0 -48 2 mod="w":) ##(:link 1 0 -23 2 mod="w":) #Documentation ##Class (:link 1 0 -7 2 :) ##Throwing Exceptions ###(:link 1 0 -33 2 :) ###(:link 1 0 -46 2 :) ##Transporting of Arbitrary Data to the Catch Site ###(:link 1 0 -58 2 :) ###(:link 1 0 -76 2 :) ###(:link 1 0 -54 2 :) ###(:link 1 0 -47 2 :) ###(:link 1 0 -18 2 :) ##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads ###(:link 1 0 -10 2 :) ###(:link 1 0 -50 2 :) ###(:link 1 0 -15 2 :) ###(:link 1 0 -55 2 :) ###(:link 1 0 -32 2 :) ###(:link 1 0 -77 2 :) ##Diagnostic Information ###(:link 1 0 -22 2 :) ###(:link 1 0 -19 2 :) ##(:link 1 0 -38 2 :) #API ##(:link 1 0 -6 2 :) ##(:link 1 0 -80 2 :) ##(:link 1 0 -5 2 :) ##(:link 1 0 -71 2 :) ##(:link 1 0 -68 2 :) ##(:link 1 0 -61 2 mod="w":) #(:link 1 0 -11 2 mod="w":) #(:link 1 0 -67 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 -31 7 2 (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard (:link 1 0 -58 2 :) instance for transporting a relevant file name in exceptions deriving from boost::(:link 1 0 -7 2 :). !!!Example: (:include 1 0 -69 2 :) 0 -32 1 2 (:auto !!!:) (:include synopsis:) !!!!Precondition: ep shall not be null. !!!!Throws: The exception to which ep refers. 0 -33 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 -46 2 . To recover this information at the catch site, use 1 0 -47 2 ; the information is also included in the message returned by 1 0 -22 2 . 0 -34 5 2 (:auto !!!:) (:include synopsis:) !!!!Description: Returns a (const) reference to the copy of the value passed to (:link 1 0 -58 2 :)'s constructor stored in the (:link 1 0 -58 2 :) object. !!!!Throws: Nothing. 0 -35 17 2 (:auto !!!:) The following example demonstrates how errno can be stored in exception objects using Boost Exception: [@#include <(:link 1 0 -42 2 :)> #include <iostream> typedef boost::(:link 1 0 -58 2 :)<struct tag_my_info,int> my_info; //(1) struct my_error: virtual boost::(:link 1 0 -7 2 :), virtual std::exception { }; //(2) void f() { throw my_error() << my_info(42); //(3) }@] First, we instantiate the (:link 1 0 -58 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 -7 2 :). Finally, (3) illustrates how the typedef from (1) can be used with (:link 1 0 -76 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 -47 2 :)<my_info>(x) ) std::cerr << "My info: " << *mi; } }@] The (:link 1 0 -47 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 -36 7 2 (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard (:link 1 0 -58 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 -7 2 :). !!!Example: (:include 1 0 -69 2 :) 0 -37 1 2 (:auto !!:) !!!Synopsis (:include synopsis:) 0 -38 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 -39 1 2 (:auto !!:) !!!Synopsis (:include synopsis:) 0 -40 1 2 (:auto !!:) !!!Synopsis (:include synopsis:) 0 -41 3 2 (:auto !!:) This header has been deprecated. Please #include < 1 0 -42 2 > instead. 0 -42 1 2 (:auto !!:) !!!Synopsis (:include synopsis:) 0 -43 1 2 (:auto !!:) !!!Synopsis (:include synopsis:) 0 -44 1 2 (:auto !!:) !!!Synopsis (:include synopsis:) 0 -45 7 2 (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard (:link 1 0 -58 2 :) instance for transporting a relevant text file line number, for example in parse error exceptions deriving from boost::(:link 1 0 -7 2 :). !!!Example: (:include 1 0 -69 2 :) 0 -46 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 -46 2 :)(e) is equivalent to throw boost::(:link 1 0 -50 2 :)(boost::(:link 1 0 -18 2 :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link 1 0 -46 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 -46 2 :) are allowed to assume that the function never returns; therefore, if the user-defined (:link 1 0 -46 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 -47 2 , or format an automatic diagnostic message using boost:: 1 0 -22 2 . 0 -47 13 2 (:auto !!!:) (:include synopsis:) !!!!Requirements: * ErrorInfo must be an instance of the (:link 1 0 -58 2 :) template. * E must be polymorphic. !!!!Returns: * If dynamic_cast<boost::(:link 1 0 -7 2 :) const *>(&x) is 0, or if x does not store an object of type ErrorInfo, the returned value is null. * Otherwise, the returned pointer points to the stored value (use (:link 1 0 -76 2 mod="/":) to store values in exception objects.) When x is destroyed, any pointers returned by (:link 1 0 -47 2 :) become invalid. !!!!Throws: Nothing. !!!!Note: The interface of (:link 1 0 -47 2 :) may be affected by the build (:link 1 0 -61 2 :). 0 -48 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 -7 2 :) is used, because it enables exception types to be trivial structs with no members (there's nothing to initialize.) See (:link 1 0 -13 2 mod="w":). 0 -49 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 -50 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 -46 2 :) are guaranteed to derive from boost::(:link 1 0 -7 2 :) and to support cloning. (:include 1 0 -64 2 :) (:include 1 0 -66 2 :) 0 -50 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 -10 2 :) support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link 1 0 -50 2 :)(my_exception());@] Unless (:link 1 0 -50 2 :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link 1 0 -15 2 :) may return an (:link 1 0 -10 2 :) which refers to an instance of (:link 1 0 -77 2 :). See (:link 1 0 -15 2 :) for details. !!!!Note: Instead of using the throw keyword directly, it is preferable to call boost::(:link 1 0 -46 2 :). This is guaranteed to throw an exception that derives from boost::(:link 1 0 -7 2 :) and supports the (:link 1 0 -10 2 :) functionality. 0 -51 7 2 (:auto !!!:) (:include synopsis:) The 1 0 -51 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 -22 2 function, or null to indicate a failure. !!!!Throws: Nothing. !!!!Note: The returned pointer becomes invalid if any 1 0 -58 2 is modified or added to the exception object, or if another diagnostic information function is called. 0 -52 1 2 (:auto !!:) !!!Synopsis (:include synopsis:) 0 -53 7 2 (:auto !!!:) (:include decl:) !!!!Effects: * Default constructor: initializes an empty boost::(:link 1 0 -7 2 :) object. * Copy constructor: initializes a boost::(:link 1 0 -7 2 :) object which shares ownership with x of all data added through (:link 1 0 -76 2 mod="/":), including data that is added at a future time. !!!!Throws: Nothing. 0 -54 5 2 (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link 1 0 -7 2 :), or a type that derives (indirectly) from boost::(:link 1 0 -7 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 -55 5 2 (:auto !!!:) (:include synopsis:) !!!!Effects: As if [@try { throw 1 0 -50 2 (e); } catch(...) { return (:link 1 0 -15 2 :)(); }@] 0 -56 7 2 (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard (:link 1 0 -58 2 :) instance for transporting (in exceptions deriving from boost::(:link 1 0 -7 2 :)) an 1 0 -10 2 to an exception nested into another exception. 0 -57 19 2 (:auto !!!:) The code snippet below demonstrates how boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:) can be used to bundle the name of the function that failed, together with the reported errno so that they can be added to exception objects more conveniently together: [@#include <(:link 1 0 -37 2 :)> #include <(:link 1 0 -20 2 :)> #include <(:link 1 0 -62 2 :)> #include <(:link 1 0 -21 2 :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> #include <errno.h> typedef boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)<boost::(:link 1 0 -36 2 :),boost::(:link 1 0 -28 2 :)> clib_failure; struct file_open_error: virtual boost::(:link 1 0 -7 2 :) { }; boost::shared_ptr<FILE> file_open( char const * name, char const * mode ) { if( FILE * f=fopen(name,mode) ) return boost::shared_ptr<FILE>(f,fclose); else throw file_open_error() << boost::(:link 1 0 -31 2 :)(name) << clib_failure("fopen",errno); }@] Note that the members of a boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:) are stored separately in exception objects; they can only be retrieved individually, using (:link 1 0 -47 2 :). 0 -58 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 -58 2 :)<Tag,T> can be passed to (:link 1 0 -76 2 mod="/":) to be stored in objects of type boost::(:link 1 0 -7 2 :). !!!!Usage: The header <(:link 1 0 -72 2 :)> provides a declaration of the (:link 1 0 -58 2 :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, for example: [@#include <(:link 1 0 -72 2 :)> struct tag_errno; typedef boost::(:link 1 0 -58 2 :)<tag_errno,int> errno_info;@] Or, the shorter equivalent: [@#include <(:link 1 0 -72 2 :)> typedef boost::(:link 1 0 -58 2 :)<struct tag_errno,int> errno_info;@] This errno_info typedef can be passed to (:link 1 0 -76 2 mod="/":) (#include <(:link 1 0 -63 2 :)> first) to store an int named tag_errno in exceptions of types that derive from boost::(:link 1 0 -7 2 :): [@throw file_read_error() (:link 1 0 -76 2 |<<:) errno_info(errno);@] It can also be passed to (:link 1 0 -47 2 :) (#include <(:link 1 0 -43 2 :)> first) to retrieve the tag_errno int from a boost::(:link 1 0 -7 2 :): [@catch( boost::(:link 1 0 -7 2 :) & x ) { if( int const * e=boost::(:link 1 0 -47 2 :)<errno_info>(x) ) .... }@] For convenience and uniformity, Boost Exception defines the following commonly used (:link 1 0 -58 2 :) typedefs, ready for use with (:link 1 0 -76 2 mod="/":): (:pagelist tags="error_info_instance":) 0 -59 5 2 (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard 1 0 -58 2 instance for transporting strings returned by std::type_info::name in exceptions deriving from boost:: 1 0 -7 2 objects. 0 -60 1 2 (:auto !!!:) !!!Synopsis (:include synopsis:) 0 -61 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 -47 2 :) function template can be called with any exception type. If BOOST_NO_RTTI is defined, (:link 1 0 -47 2 :) can be used only with objects of type boost::(:link 1 0 -7 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 -50 2 :) and (:link 1 0 -18 2 :) are integrated directly in the (:link 1 0 -46 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 -79 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 -46 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 -22 2 (of course under BOOST_NO_EXCEPTIONS, the user-defined boost::throw_exception is not allowed to return to the caller.) 0 -62 1 2 (:auto !!:) !!!Synopsis (:include synopsis:) 0 -63 1 2 (:auto !!:) !!!Synopsis (:include synopsis:) 0 -64 15 2 (:auto !!!:) Here is how cloning can be enabled in a throw-expression (15.1): [@#include <(:link 1 0 -63 2 :)> #include <(:link 1 0 -21 2 :)> #include <stdio.h> #include <errno.h> struct file_read_error: virtual boost::(:link 1 0 -7 2 :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw boost::(:link 1 0 -50 2 :)(file_read_error()) << boost::(:link 1 0 -28 2 :)(errno); }@] Of course, (:link 1 0 -50 2 :) may be used with any exception type; there is no requirement that it should derive from boost::(:link 1 0 -7 2 :). 0 -65 1 2 (:auto !!:) !!!Synopsis (:include synopsis:) 0 -66 37 2 (:auto !!!:) When you catch an exception, you can call (:link 1 0 -15 2 :) to get an (:link 1 0 -10 2 :) object: [@#include <(:link 1 0 -9 2 :)> #include <boost/thread.hpp> #include <boost/bind.hpp> void do_work(); //throws cloning-enabled boost::(:link 1 0 -7 2 :)s void worker_thread( boost::(:link 1 0 -10 2 :) & error ) { try { do_work(); error = boost::(:link 1 0 -10 2 :)(); } catch( ... ) { error = boost::(:link 1 0 -15 2 :)(); } }@] In the above example, note that (:link 1 0 -15 2 :) captures the original type of the exception object. The exception can be thrown again using the (:link 1 0 -32 2 :) function: [@// ...continued void work() { boost::(:link 1 0 -10 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 -32 2 :)(error); }@] Note that (:link 1 0 -15 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 -10 2 :) points to an instance of std::bad_alloc, or * if (:link 1 0 -50 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 -10 2 :) points to an instance of (:link 1 0 -77 2 :). Regardless, the use of (:link 1 0 -15 2 :) and (:link 1 0 -32 2 :) in the above examples is well-formed. 0 -67 1 2 (:auto !:) This is an alphabetical list of all Boost Exception documentation pages. (:pagelist fmt="index" except_tags="index noindex" mod="w":) 0 -68 1 2 (:auto !!:) (:pagelist tags="macro":) 0 -69 37 2 [@#include <(:link 1 0 -62 2 :)> #include <(:link 1 0 -70 2 :)> #include <(:link 1 0 -21 2 :)> #include <(:link 1 0 -74 2 :)> #include <(:link 1 0 -20 2 :)> #include <(:link 1 0 -78 2 :)> #include <(:link 1 0 -63 2 :)> #include <(:link 1 0 -79 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 -7 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 -33 2 :)( file_open_error() << boost::(:link 1 0 -36 2 :)("fopen") << boost::(:link 1 0 -28 2 :)(errno) << boost::(:link 1 0 -31 2 :)(file) << boost::(:link 1 0 -27 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 -33 2 :)( file_read_error() << boost::(:link 1 0 -36 2 :)("fread") << boost::(:link 1 0 -28 2 :)(errno) << boost::(:link 1 0 -24 2 :)(f) ); return nr; }@] 0 -70 1 2 (:auto !!:) !!!Synopsis (:include synopsis:) 0 -71 1 2 (:auto !!:) (:pagelist fmt="index" tags="function":) 0 -72 1 2 (:auto !!:) !!!Synopsis (:include synopsis:) 0 -73 11 2 !!!!Example: this is a possible output from the (:link 1 0 -22 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 -36 2 :)_ *] = fopen [struct boost::(:link 1 0 -28 2 :)_ *] = 2, "No such file or directory" [struct boost::(:link 1 0 -31 2 :)_ *] = tmp1.txt [struct boost::(:link 1 0 -27 2 :)_ *] = rb@] 0 -74 1 2 (:auto !!:) !!!Synopsis (:include synopsis:) 0 -75 3 2 (:auto !!!:) (:include synopsis:) !!!!Effects: Stores a copy of v in the 1 0 -58 2 object. (:include throws:) 0 -76 7 2 (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link 1 0 -7 2 :), or a type that derives (indirectly) from boost::(:link 1 0 -7 2 :). !!!!Postcondition: A copy of v is stored into x. If x already contains data of type (:link 1 0 -58 2 :)<Tag,T>, that data is overwritten. Basic exception safety guarantee. !!!!Returns: x. (:include throws:) 0 -77 5 2 (:auto !!!:) (:include synopsis:) This type is used by the (:link 1 0 -10 2 :) support in Boost Exception. Please see (:link 1 0 -15 2 :). 0 -78 1 2 (:auto !!:) !!!Synopsis (:include synopsis:) 0 -79 1 2 (:auto !!:) !!!Synopsis (:include synopsis:) 0 -80 1 2 (:auto !!:) (:pagelist tags="hpp" except_tags="noindex":) throws 85 reno_layer 76 0 -5 0 0 -6 0 0 -7 0 0 -8 0 0 -9 0 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 0 0 -19 0 0 -20 0 0 -21 0 0 -22 0 0 -23 0 0 -24 0 0 -25 0 0 -26 0 0 -27 0 0 -28 0 0 -29 0 0 -30 0 0 -31 0 0 -32 0 0 -33 0 0 -34 0 0 -35 0 0 -36 0 0 -37 0 0 -38 0 0 -39 0 0 -40 0 0 -41 0 0 -42 0 0 -43 0 0 -44 0 0 -45 0 0 -46 0 0 -47 0 0 -48 0 0 -49 0 0 -50 0 0 -51 0 0 -52 0 0 -53 0 0 -54 1 2 !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. 0 -55 0 0 -56 0 0 -57 0 0 -58 0 0 -59 0 0 -60 0 0 -61 0 0 -62 0 0 -63 0 0 -64 0 0 -65 0 0 -66 0 0 -67 0 0 -68 0 0 -69 0 0 -70 0 0 -71 0 0 -72 0 0 -73 0 0 -74 0 0 -75 1 2 !!!!Throws: Any exception emitted by v's copy constructor. 0 -76 1 2 !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. 0 -77 0 0 -78 0 0 -79 0 0 -80 0 synopsis 86 reno_layer 76 0 -5 0 0 -6 0 0 -7 3 2 `#include <(:link 1 0 -39 2 :)> [@namespace boost { (:include def pre_indent="4":) }@] 0 -8 3 2 `#include <(:link 1 0 -63 2 :)> [@(:include decl:)@] 0 -9 3 2 [@#include <(:link 1 0 -39 2 :)> namespace boost { (:include api pre_indent="4":) }@] 0 -10 3 2 `#include <(:link 1 0 -9 2 :)> [@namespace boost { (:include decl pre_indent="4":) }@] 0 -11 0 0 -12 0 0 -13 0 0 -14 0 0 -15 3 2 `#include <(:link 1 0 -9 2 :)> [@namespace boost { (:include decl pre_indent="4":) }@] 0 -16 3 2 [@#include < 1 0 -39 2 > namespace boost { (:include api pre_indent="4":) }@] 0 -17 0 0 -18 3 2 `#include < 1 0 -16 2 > [@namespace boost { (:include decl pre_indent="4":) }@] 0 -19 3 2 `#include <(:link 1 0 -40 2 :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] 0 -20 3 2 [@#include <(:link 1 0 -72 2 :)> #include <string> namespace boost { (:include api pre_indent="4":) }@] 0 -21 3 2 [@#include < 1 0 -72 2 > #include <errno.h> namespace boost { (:include api pre_indent="4":) }@] 0 -22 5 2 `#include <(:link 1 0 -40 2 :)>\\ `#include < 1 0 -9 2 >\\ [@namespace boost { (:include decl pre_indent="4":) }@] 0 -23 0 0 -24 5 2 `#include <(:link 1 0 -74 2 :)> (:include 1 0 -74 2 synopsis:) 0 -25 3 2 `#include < 1 0 -9 2 > [@namespace boost { (:include decl pre_indent="4":) }@] 0 -26 0 0 -27 5 2 `#include < 1 0 -78 2 > (:include 1 0 -78 2 synopsis:) 0 -28 5 2 `#include < 1 0 -21 2 > (:include 1 0 -21 2 synopsis:) 0 -29 0 0 -30 0 0 -31 5 2 `#include <(:link 1 0 -20 2 :)> (:include 1 0 -20 2 synopsis:) 0 -32 3 2 `#include <(:link 1 0 -9 2 :)> [@namespace boost { (:include decl pre_indent="4":) }@] 0 -33 3 2 `#include < 1 0 -79 2 > (:include decl:) 0 -34 3 2 `#include <(:link 1 0 -63 2 :)> [@(:include decl:)@] 0 -35 0 0 -36 5 2 `#include < 1 0 -62 2 > (:include 1 0 -62 2 synopsis:) 0 -37 3 2 [@#include < 1 0 -63 2 > #include <boost/tuple/tuple.hpp> namespace boost { (:include api pre_indent="4":) }@] 0 -38 3 2 `#include < 1 0 -52 2 > [@namespace boost { (:include decl pre_indent="4":) }@] 0 -39 1 2 [@namespace boost { (:include api pre_indent="4":) }@] 0 -40 3 2 [@#include <string> namespace boost { (:include 1 0 -7 2 decl pre_indent="4":) (:include api pre_indent="4":) }@] 0 -41 0 0 -42 1 2 [@(:include api:)@] 0 -43 1 2 [@#include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] 0 -44 3 2 [@#include < 1 0 -72 2 > #include <string> namespace boost { (:include api pre_indent="4":) }@] 0 -45 5 2 `#include <(:link 1 0 -70 2 :)> (:include 1 0 -70 2 synopsis:) 0 -46 3 2 `#include <(:link 1 0 -79 2 :)> [@namespace boost { (:include decl:) }@] 0 -47 1 2 [@namespace boost { (:include decl pre_indent="4":) }@] 0 -48 0 0 -49 0 0 -50 3 2 `#include < 1 0 -60 2 > [@namespace boost { (:include decl pre_indent="4":) }@] 0 -51 3 2 `#include <(:link 1 0 -40 2 :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] 0 -52 1 2 [@namespace boost { (:include api pre_indent="4":) }@] 0 -53 0 0 -54 5 2 `#include <(:link 1 0 -37 2 :)> [@namespace boost { (:include 1 0 -54 2 decl pre_indent="4":) }@] 0 -55 3 2 `#include <(:link 1 0 -9 2 :)> [@namespace boost { (:include decl pre_indent="4":) }@] 0 -56 5 2 `#include < 1 0 -65 2 > (:include 1 0 -65 2 synopsis:) 0 -57 0 0 -58 3 2 `#include <(:link 1 0 -63 2 :)> [@namespace boost { (:include def pre_indent="4":) }@] 0 -59 5 2 `#include < 1 0 -44 2 > (:include 1 0 -44 2 synopsis:) 0 -60 3 2 [@#include < 1 0 -39 2 > namespace boost { (:include api pre_indent="4":) }@] 0 -61 0 0 -62 3 2 [@#include <(:link 1 0 -72 2 :)> namespace boost { (:include api pre_indent="4":) }@] 0 -63 3 2 [@#include <(:link 1 0 -39 2 :)> namespace boost { (:include api pre_indent="4":) }@] 0 -64 0 0 -65 5 2 [@#include <(:link 1 0 -72 2 :)> namespace boost { (:include 1 0 -10 2 decl pre_indent="4":) (:include api pre_indent="4":) }@] 0 -66 0 0 -67 0 0 -68 0 0 -69 0 0 -70 3 2 [@#include <(:link 1 0 -72 2 :)> namespace boost { (:include api pre_indent="4":) }@] 0 -71 0 0 -72 1 2 [@namespace boost { (:include api pre_indent="4":) }@] 0 -73 0 0 -74 3 2 [@#include <(:link 1 0 -72 2 :)> namespace boost { template <class> class weak_ptr; (:include api pre_indent="4":) }@] 0 -75 3 2 `#include <(:link 1 0 -63 2 :)> [@(:include decl:)@] 0 -76 3 2 `#include <(:link 1 0 -63 2 :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] 0 -77 3 2 `#include <(:link 1 0 -9 2 :)> [@namespace boost { (:include decl pre_indent="4":) }@] 0 -78 3 2 [@#include < 1 0 -72 2 > #include <string> namespace boost { (:include api pre_indent="4":) }@] 0 -79 1 2 (:include api:) 0 -80 0 87 reno_context_map 76 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 76 0 1 -30 0 1 -49 0 1 -29 0 1 -67 0 1 -16 0 1 -60 0 1 -12 0 1 -48 0 1 -13 0 1 -11 0 1 -71 0 1 -80 0 1 -5 0 1 -68 0 1 -6 1 66EFC83C830F0B00D0C9399B475099072E2674B3C694F9152645A33E3D7AC303 561674611 417 323 0 ../../../../boost/exception/errinfo_file_name.hpp 0 0 -20 2 EEA69AA1E84CB2B7C903A3F4C236D0A233D03DBA4BA1D3B97D959918F3B30E09 2728032055 406 344 EE695B95A2499B66980754857E184776F1DE7224372A5F5153B6DF94E621A89B 1009590890 92 308 0 ../../../../boost/exception/errinfo_file_open_mode.hpp 0 0 -27 1 21A43755562CB78B3FFCC49F66B457C1FCD659EE98F25BBFA8DDE453EB89DF0E 2576704708 337 323 0 ../../../../boost/exception/errinfo_api_function.hpp 0 0 -62 1 FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717 2229778754 631 319 0 ../../example/cloning_2.cpp 0 0 -66 1 C8D629C012959999E3C359F207A54AA6C2007060C9EF13696A60B9E8F4468D1D 2026932803 428 1090 0 ../../../../boost/throw_exception.hpp 0 0 -33 2 126A895281064E2195458B8A47CD73DB7E3BE3608F250925E07AF4230CBDDE1D 4231421785 307 344 16179B125E2BC6D993FBE4BA5E9A96DBAE43CA1443C7D281B659D020B6725983 1126376090 92 209 0 ../../../../boost/exception/errinfo_type_info_name.hpp 0 0 -59 1 4D7009F0868C1DF4898EC6ECF9AD2CFEA98E8653B01B066106761807405D4C22 1416707852 3107 527 0 ../../../../boost/exception/get_error_info.hpp 0 0 -43 1 27ED18F9B6131B084FEF0C9F932B7027AF449E378B5FD7973CD6642263FCAF27 2867102400 404 307 0 ../../example/cloning_1.cpp 0 0 -64 2 C58F3DFE2F3E99070B5C0982BD1A9101B6C9E56901A8E276EFA131B3F131F12C 1482082928 3832 1521 04DC5F51958DAE2FB24D3C430AA74E860FD42BFA204D223723B77B11656CB159 1496465214 3308 26 0 ../../../../boost/exception/diagnostic_information.hpp 0 0 -22 2 C58F3DFE2F3E99070B5C0982BD1A9101B6C9E56901A8E276EFA131B3F131F12C 1482082928 3832 1521 5738DF31DB52E5E8784199058479E798957794147A099D834110FF821C605EE3 1133216499 490 3336 0 ../../../../boost/exception/diagnostic_information.hpp 0 0 -51 1 BF7B46FEFA4E2DED7D652BFD40E94DD0B225ADA8D35E28FF4216F72812589835 422843600 756 527 0 ../../../../boost/exception/all.hpp 0 0 -42 2 6FB85B536F965F137409D5B5D34786DCBF0B9957A7C251D271B717A1156B823D 1090406464 362 527 D16DAEA8B1792A019AF7FCA362FDC6EFD381AF4C43C076A01C029ECE51F994A6 3172941848 330 26 0 ../../../../boost/exception/current_exception_cast.hpp 0 0 -38 1 DB156E6A8ACB9FB90C8FB110FC25A5FEB14A619F82EEC47FF913373592E5CC3E 240075319 6209 412 0 ../../example/example_io.cpp 0 0 -73 2 16DD00328E4AF76F11BFD52A1E16305E0A2513B0BEB9D2380645C364AD4A3C4D 211195741 4481 751 6E325144EF4F41FA3A225EB30729101382C4E99B3D6160E307311E4B4E641010 1097215175 161 240 0 ../../../../boost/exception/info.hpp 0 0 -75 2 16DD00328E4AF76F11BFD52A1E16305E0A2513B0BEB9D2380645C364AD4A3C4D 211195741 4481 751 B494F545ED1BD0502F8699D7059DC882495CC0D93A23CFA306E5F39BB14E4A97 259300739 523 3952 0 ../../../../boost/exception/info.hpp 0 0 -76 2 15CF5BD93D20D62D659C11A69330B06E408398EA488BEF1FD45437AADCDB424E 1232553666 214 345 6262783847165581298EC9500031E6B7A97B2751A9CEF67C4794121A78142C58 3676119191 90 118 0 ../../../../boost/exception/errinfo_file_handle.hpp 0 0 -24 1 D32E0E4334CE0236B6EDB0EAC484B2DD595860E9FD53701EB5646D62C6A45D4E 1054670543 866 306 0 ../../example/error_info_2.cpp 0 0 -17 1 66E0BD9724AB83012F5B35D887E3313960DC0E69B94E0C03CA1F3C85A0D84A5C 2883671483 311 306 0 ../../example/logging.cpp 0 0 -23 1 4EDD3DF2332B6D9D22AC9AD90B850ACC715A24DD466E675014CBED25C63C255F 4175717823 328 323 0 ../../../../boost/exception/errinfo_type_info_name.hpp 0 0 -44 2 21027A2B73C9AA6FF083752A952D63BBA9B5FD68A3C8915965A7184EA62A5D61 1523356166 537 607 24256E1CE56594FB38D0630858B8947191827CFC57771E8727A6A56F76207454 665917505 66 26 0 ../../../../boost/exception/errinfo_errno.hpp 0 0 -28 1 D2B32F34DB71CC3A381CE9ACAFA31ED2A0EF136FDC93C962E578F44D861DA263 4046881478 10278 527 0 ../../../../boost/exception/exception.hpp 0 0 -39 2 D2B32F34DB71CC3A381CE9ACAFA31ED2A0EF136FDC93C962E578F44D861DA263 4046881478 10278 527 C0660ECF00405B1CCEC2C8E38D7CBAB9E454481115597FC07AF45386B8A0EF35 1212114074 2056 4124 0 ../../../../boost/exception/exception.hpp 0 0 -7 3 D2B32F34DB71CC3A381CE9ACAFA31ED2A0EF136FDC93C962E578F44D861DA263 4046881478 10278 527 C0660ECF00405B1CCEC2C8E38D7CBAB9E454481115597FC07AF45386B8A0EF35 1212114074 2056 4124 DA154372D8C23BD9EDC30005CA7959CE686D198891097A837D006B5222F04DE9 2768248809 143 60 0 ../../../../boost/exception/exception.hpp 0 0 -53 2 D2B32F34DB71CC3A381CE9ACAFA31ED2A0EF136FDC93C962E578F44D861DA263 4046881478 10278 527 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E 765399792 77 6182 0 ../../../../boost/exception/exception.hpp 0 0 -26 2 D2B32F34DB71CC3A381CE9ACAFA31ED2A0EF136FDC93C962E578F44D861DA263 4046881478 10278 527 DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 1137981799 192 10080 0 ../../../../boost/exception/exception.hpp 0 0 -50 2 D2B32F34DB71CC3A381CE9ACAFA31ED2A0EF136FDC93C962E578F44D861DA263 4046881478 10278 527 F3FB15CD82336271C6E875BC620385322777D16F0B7C233300783CE35710CCBF 3292878997 282 8088 0 ../../../../boost/exception/exception.hpp 0 0 -18 2 AEDDD2FA4F47CEBD99444F1054D85AB8132748CF38D6634503D62E9C8AD5FE68 1378637100 292 368 892C0239798B84BA2E80DAA70BBEB7BE0B6086A1D0829D0E1937EC1D19E3FF20 3349881047 89 197 0 ../../../../boost/exception/errinfo_api_function.hpp 0 0 -36 1 756A81C65A938BEEAD9B576707145748A3DB3BF767CC77ADD5AACD549373856A 904132245 744 363 0 ../../example/info_tuple.cpp 0 0 -57 1 E0BE7EFCD5550582AB95C9EEDA6E68CA0F89B19838DA61876D42161E1EA4AE71 2587249979 233 323 0 ../../../../boost/exception/errinfo_at_line.hpp 0 0 -70 2 E0BE7EFCD5550582AB95C9EEDA6E68CA0F89B19838DA61876D42161E1EA4AE71 2587249979 233 323 92AB508A6B1C2A62CB2ACED423BD04BB5A471674B5A51BFC1E6FB1F5C92AF9AA 2372475309 70 157 0 ../../../../boost/exception/errinfo_at_line.hpp 0 0 -45 1 ED2BABEAAFC5425B304B6A58A6986D38DC1F249A2B29BA88C89475F517FDCE74 4116923183 5011 321 0 ../../../../boost/exception/info.hpp 0 0 -63 1 FFF4359EFC66EE6AA729B641F38B4020A55E83A1C099BCA59B1CA9A9875E7F79 366628170 236 323 0 ../../../../boost/exception/errinfo_file_handle.hpp 0 0 -74 1 BCB5C3EACCA74DBD8F4FFC79CF82ACCA61EDB2FA7D1D74EA1BBC77A226C5E58A 1547205519 354 323 0 ../../../../boost/exception/errinfo_nested_exception.hpp 0 0 -65 2 BCB5C3EACCA74DBD8F4FFC79CF82ACCA61EDB2FA7D1D74EA1BBC77A226C5E58A 1547205519 354 323 83E18B98A15DEF9418E38218D221D10DC093B915D630B51974CCD23A6E1EDC44 849683856 98 250 0 ../../../../boost/exception/errinfo_nested_exception.hpp 0 0 -56 1 A7E1DE1220FF43715F94884D78D93FF18042E0BDE9BA9ACBD8C3138D437AE28C 3733653590 923 321 0 ../../../../boost/exception/errinfo_errno.hpp 0 0 -21 1 58091DC5EBEE7F90249253E3177232040F23E5D75F6530A54041D93DBFE99291 2889971768 11308 321 0 ../../../../boost/exception/detail/exception_ptr.hpp 0 0 -9 1 8A5444CF9C854740F83F17EA2075478A983F7C0243DCE4E42551ECBF908C1392 4193409281 322 766 0 ../../../../boost/throw_exception.hpp 0 0 -61 2 D58AD357499A5A09FB5D12397CFFC2FFD412AC8A307ABB59C9BC53ACCA3B959D 2209414553 2926 708 49F40FF20D66B205C908A8F10BC61DE1BC571E4917A5BD0B4115E3F7FE3923FA 638776689 2894 26 0 ../../../../boost/exception/get_error_info.hpp 0 0 -47 1 DE766B811244919E8E1EA54FC747A8487BCE57F1AB592932640FC90428B617A5 414875037 427 323 0 ../../../../boost/exception/errinfo_file_open_mode.hpp 0 0 -78 1 977045132A532A0071B0B53F737D85367CE9A331402F96790E45B3B6F2FC88A6 1875939463 529 382 0 ../../example/error_info_1.cpp 0 0 -35 1 A1E3F9582095C930245FF6DBA455C6C973F4F025AD6C1D0C3BC7E9494070BAA7 293414988 113 323 0 ../../../../boost/exception.hpp 0 0 -41 2 99DDC29B8C4D366F7A5A5819117AF190E5255231DD9313E1CC0D56BCD9D89BAA 2051148095 1039 548 12EE98255E53951EE44D5D95A0506693E9F5F9D371505F490B8C0676EB383C7C 2825495330 622 411 0 ../../../../boost/exception/detail/error_info_impl.hpp 0 0 -58 3 99DDC29B8C4D366F7A5A5819117AF190E5255231DD9313E1CC0D56BCD9D89BAA 2051148095 1039 548 12EE98255E53951EE44D5D95A0506693E9F5F9D371505F490B8C0676EB383C7C 2825495330 622 411 38B566F2C6678B8724D18086A6F76E077DC2ADC1BB69A4B83BF0A2C3B7D31B50 2218658069 31 143 0 ../../../../boost/exception/detail/error_info_impl.hpp 0 0 -8 3 99DDC29B8C4D366F7A5A5819117AF190E5255231DD9313E1CC0D56BCD9D89BAA 2051148095 1039 548 12EE98255E53951EE44D5D95A0506693E9F5F9D371505F490B8C0676EB383C7C 2825495330 622 411 98B33BE76679E3A4831241335CD5DFF6F634429F36BABF96C1D4DC2296C5ECC5 1584672077 208 259 0 ../../../../boost/exception/detail/error_info_impl.hpp 0 0 -34 1 5594B7B6271DE43F8A8783A856C365F0E2DDC193C9ED293DE67EC75F16C1ABAD 3976881657 5132 321 0 ../../../../boost/exception/diagnostic_information.hpp 0 0 -40 1 91CF203512705C8B2CDCBCD1439821CBF93CFC1A4C2EA2CA91F38DAA3F7720B2 1769665510 1558 352 0 ../../example/errinfos.cpp 0 0 -69 2 3D9B2575FB35A9FAC1C2C1F1C5B41932C252CB9E5F268CA7E9345C918588E2B2 4217424172 617 1520 5DAC66FA4D2F1145A3B41489AF141627FFA839B75A2495FE16B1CA803E198114 2068234093 581 23 0 ../../../../boost/throw_exception.hpp 0 0 -46 1 DAC5C6D096B50EDCF8143E4922FC79D2E46FEA2FCD47EAD71D6392C1D8100DB3 4003832872 668 321 0 ../../../../boost/exception/current_exception_cast.hpp 0 0 -52 1 0FFB6F55A2CD813056F10E2516A9FBE58D5A2E9C9592914FCF25E3BFF5F856CB 2333510468 2066 91 0 ../../../../boost/throw_exception.hpp 0 0 -79 1 9A6D5598D65F1C1B5F913007D1CD1A814F3CDAD07D4AF8C468A0716059B2F7CC 3552995087 1405 527 0 ../../../../boost/exception/info_tuple.hpp 0 0 -37 2 307034E20863A00923777A60D9495B4076B7F917D5B97203025299060F0833E0 3948311309 396 344 F8ED2052577830AC0C515EC5932BB14445DD5DA714782281FCDB1776961FECB1 3880328768 82 308 0 ../../../../boost/exception/errinfo_file_name.hpp 0 0 -31 2 E283724582D1A1C7FADAEF8260CF64EA42A359DD1DE0109AB380B839DD00C5E1 2285342938 10602 927 1760DA943E0DCAE6DDB000F3C08D6E6F5F8AEDBBEAC7CAA84A2ED60BFA4B0E1A 702729709 815 1307 0 ../../../../boost/exception/detail/exception_ptr.hpp 0 0 -77 2 E283724582D1A1C7FADAEF8260CF64EA42A359DD1DE0109AB380B839DD00C5E1 2285342938 10602 927 796BD0D716259ADB3173AFA2A7989E3F52F5D007D67D132DE95A080801510B50 1299192030 7151 2124 0 ../../../../boost/exception/detail/exception_ptr.hpp 0 0 -15 2 E283724582D1A1C7FADAEF8260CF64EA42A359DD1DE0109AB380B839DD00C5E1 2285342938 10602 927 1516D0B7E11CBEB60CE4222565ACCAFF2E9857A8A505C1C26E2AE90087250581 3624753243 279 177 0 ../../../../boost/exception/detail/exception_ptr.hpp 0 0 -25 2 E283724582D1A1C7FADAEF8260CF64EA42A359DD1DE0109AB380B839DD00C5E1 2285342938 10602 927 44A436E88E9302D907AF1F343063D988F0F87C863E372EA97378835C64480093 308353940 75 26 0 ../../../../boost/exception/detail/exception_ptr.hpp 0 0 -10 2 E283724582D1A1C7FADAEF8260CF64EA42A359DD1DE0109AB380B839DD00C5E1 2285342938 10602 927 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4 2078296250 305 9277 0 ../../../../boost/exception/detail/exception_ptr.hpp 0 0 -55 2 E283724582D1A1C7FADAEF8260CF64EA42A359DD1DE0109AB380B839DD00C5E1 2285342938 10602 927 F65C82C62C1EEA672C42FE46189491942DE15B2F8C998E7CAE49588C7D8CBFFA 1041900763 143 9584 0 ../../../../boost/exception/detail/exception_ptr.hpp 0 0 -32 1 C95CEF2E9D0BAA1E950509471062916DB849A46A19F7692BA478030E79B338EB 1917376632 706 408 0 ../../example/enable_error_info.cpp 0 0 -14 2 9A4ECF9A49A73AED83C1565CB8C67AE1519E8AFE6818F968B4C4733CB9E86CEF 1615599655 68 227 34F0583BC8DE767CE2D79721E1F956895E43E5397473B1050F59BE7E26C773DB 805836816 66 1 0 ../../../../boost/exception/error_info.hpp 0 0 -72 2 F7633FDCF6615C0199645701EE6E7ACE5CBCD7A7CF6838573791E91ABB3C09F2 1668435395 1332 600 A1F443AF571973A12005D2F7D4AE09A32AAF686FEEAE272EC21512A65EB943E8 3879093659 1300 26 0 ../../../../boost/exception/info_tuple.hpp 0 0 -54 2 964F6A1CDF157430B6F65ABDD6A590CFA6AE83EAED66B5B59BA829DB07DF97F2 3653363251 731 780 36688510914673386A7870D1D4970B7D74CF9A4B7226F9E225A5607DCBFB12C4 2314308857 446 279 0 ../../../../boost/exception/diagnostic_information.hpp 0 0 -19 88 tag_index 57 1 0 -7 type 0 -8 type 0 -9 0 -10 type 0 -14 tutorial 0 -15 exception_ptr free function 0 -16 error_info 0 -17 noalso noindex tutorial 0 -18 error_info free function 0 -19 function 0 -22 diagnostic_information free function 0 -23 diagnostic_information tutorial 0 -24 error_info_instance noalso type 0 -25 type 0 -26 function 0 -27 error_info_instance noalso type 0 -28 error_info_instance noalso type 0 -29 tutorial 0 -30 noindex 0 -31 error_info_instance noalso type 0 -32 exception_ptr free function 0 -33 macro 0 -34 function member 0 -35 noalso noindex tutorial 0 -36 error_info_instance noalso type 0 -37 0 -38 function 0 -39 0 -40 0 -41 noindex 0 -43 error_info 0 -45 error_info_instance noalso type 0 -46 free function 0 -47 error_info free function 0 -48 tutorial 0 -49 tutorial 0 -50 exception_ptr free function 0 -51 free function 0 -52 0 -53 function 0 -54 error_info free function 0 -55 exception_ptr free function 0 -56 error_info_instance noalso type 0 -57 noalso noindex tutorial 0 -58 type 0 -59 error_info_instance noalso type 0 -60 exception_ptr 0 -63 0 -64 noindex tutorial 0 -66 noindex tutorial 0 -67 0 -72 0 -75 function member 0 -76 error_info free function 0 -77 exception_ptr type 0 -79