diff --git a/doc/boost_exception_diagnostic_information_hpp.html b/doc/boost_exception_diagnostic_information_hpp.html index c2ee56d..01f7d64 100644 --- a/doc/boost_exception_diagnostic_information_hpp.html +++ b/doc/boost_exception_diagnostic_information_hpp.html @@ -34,6 +34,8 @@ boost std::string diagnostic_information( exception_ptr const & p ); + char const * diagnostic_information_what( boost::exception const & e ) throw(); + std::string current_exception_diagnostic_information(); }

diff --git a/doc/diagnostic_information_what.html b/doc/diagnostic_information_what.html index 443c239..b45ce05 100644 --- a/doc/diagnostic_information_what.html +++ b/doc/diagnostic_information_what.html @@ -34,8 +34,16 @@ boost

Nothing.

Note:

The returned pointer becomes invalid if any error_info is modified or added to the exception object, or if another diagnostic information function is called.

-
-
+

+

See Also:

+
boost/exception/diagnostic_information.hpp
+
+
+

+

See Also:

+
boost/exception/diagnostic_information.hpp
+
+
diff --git a/doc/source/boost-exception.reno b/doc/source/boost-exception.reno index b6b8c08..75295f6 100644 --- a/doc/source/boost-exception.reno +++ b/doc/source/boost-exception.reno @@ -97,6 +97,51 @@ 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 + + 7 + + reno_context + @@ -131,7 +176,7 @@ 0 - 7 + 8 reno_context @@ -180,7 +225,7 @@ 0 - 8 + 9 reno_context @@ -229,7 +274,7 @@ 0 - 9 + 10 reno_context @@ -274,7 +319,7 @@ 0 - 10 + 11 reno_context @@ -323,7 +368,7 @@ 0 - 11 + 12 reno_context @@ -368,7 +413,7 @@ 0 - 12 + 13 reno_context @@ -421,7 +466,7 @@ 0 - 13 + 14 reno_context @@ -474,7 +519,7 @@ 0 - 14 + 15 reno_context @@ -512,7 +557,7 @@ 0 - 15 + 16 reno_context @@ -565,7 +610,7 @@ 0 - 16 + 17 reno_context @@ -610,7 +655,7 @@ 0 - 17 + 18 reno_context @@ -648,7 +693,7 @@ 0 - 18 + 19 reno_context @@ -686,7 +731,7 @@ 0 - 19 + 20 reno_context @@ -735,7 +780,7 @@ 0 - 20 + 21 reno_context @@ -784,7 +829,7 @@ 0 - 21 + 22 reno_context @@ -827,7 +872,7 @@ 0 - 22 + 23 reno_context @@ -865,7 +910,7 @@ 0 - 23 + 24 reno_context @@ -910,7 +955,7 @@ 0 - 24 + 25 reno_context @@ -949,51 +994,6 @@ 0 - - - 0 - - 25 - - 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 @@ -2895,7 +2895,7 @@ 0 - -14 + -15 2 @@ -2904,7 +2904,7 @@ 0 - -16 + -17 2 @@ -2913,7 +2913,7 @@ 0 - -22 + -23 2 @@ -3608,6 +3608,17 @@ -20 + + 0 + + + + + 0 + + -21 + + 5 2 @@ -3625,24 +3636,13 @@ 0 - -20 + -21 2 ;@] - - - 0 - - -21 - - - - 0 - - 0 @@ -3927,7 +3927,7 @@ 0 - -15 + -16 2 @@ -4042,7 +4042,7 @@ 0 - -13 + -14 2 @@ -4051,7 +4051,7 @@ 0 - -10 + -11 2 @@ -4522,6 +4522,17 @@ -9 + + 0 + + + + + 0 + + -10 + + 29 2 @@ -4611,7 +4622,7 @@ 0 - -23 + -24 2 @@ -4658,7 +4669,7 @@ 0 - -10 + -11 @@ -4669,7 +4680,7 @@ 0 - -11 + -12 @@ -4687,17 +4698,6 @@ decl:)@] - - - 0 - - -12 - - - - 0 - - 0 @@ -4760,6 +4760,17 @@ -18 + + 0 + + + + + 0 + + -19 + + 3 2 @@ -4775,17 +4786,6 @@ decl:)@] - - - 0 - - -19 - - - - 0 - - 0 @@ -4827,18 +4827,7 @@ - 3 - 2 - [@(:include - 1 - - 0 - - -20 - - - 2 - def:)@] + 0 @@ -4849,7 +4838,18 @@ - 0 + 3 + 2 + [@(:include + 1 + + 0 + + -21 + + + 2 + def:)@] @@ -5297,7 +5297,7 @@ 0 - -8 + -9 2 @@ -5383,7 +5383,7 @@ 0 - -7 + -8 2 @@ -5482,7 +5482,7 @@ 0 - -19 + -20 2 @@ -5508,7 +5508,7 @@ - 5 + 7 2 [@(:include 1 @@ -5521,6 +5521,15 @@ 2 decl:) (:include 1 + + 0 + + -78 + + + 2 + decl:) (:include + 1 0 @@ -5773,6 +5782,17 @@ -7 + + 0 + + + + + 0 + + -8 + + 5 2 @@ -5781,7 +5801,7 @@ 0 - -7 + -8 2 @@ -5801,7 +5821,7 @@ 0 - -8 + -9 @@ -5812,7 +5832,7 @@ 0 - -8 + -9 2 @@ -5837,17 +5857,6 @@ :)<TagN,TN> > const & v );@] - - - 0 - - -9 - - - - 0 - - 0 @@ -5856,27 +5865,7 @@ - 5 - 2 - [@(:link - 1 - - 0 - - -10 - - - 2 - mod="m":)( (:link - 1 - - 0 - - -13 - - - 2 - mod="m":) const & v );@] + 0 @@ -5887,7 +5876,27 @@ - 0 + 5 + 2 + [@(:link + 1 + + 0 + + -11 + + + 2 + mod="m":)( (:link + 1 + + 0 + + -14 + + + 2 + mod="m":) const & v );@] @@ -5909,18 +5918,7 @@ - 3 - 2 - [@typedef T (:link - 1 - - 0 - - -13 - - - 2 - mod="m":);@] + 0 @@ -5931,7 +5929,18 @@ - 0 + 3 + 2 + [@typedef T (:link + 1 + + 0 + + -14 + + + 2 + mod="m":);@] @@ -5941,6 +5950,17 @@ -15 + + 0 + + + + + 0 + + -16 + + 7 2 @@ -5949,7 +5969,7 @@ 0 - -15 + -16 2 @@ -5958,7 +5978,7 @@ 0 - -15 + -16 2 @@ -5974,17 +5994,6 @@ :) const & x );@] - - - 0 - - -16 - - - - 0 - - 0 @@ -6015,9 +6024,7 @@ - 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 @@ -6028,7 +6035,9 @@ - 0 + 1 + 2 + [@template <class ErrorInfo,class E> typename ErrorInfo::(:link error_info::value_type mod="m":) const * (:link get_error_info:)( E const & x ); template <class ErrorInfo,class E> typename ErrorInfo::(:link error_info::value_type mod="m":) * (:link get_error_info:)( E & x );@] @@ -6231,7 +6240,7 @@ 0 - -13 + -14 2 @@ -6249,7 +6258,7 @@ 0 - -13 + -14 2 @@ -7160,6 +7169,100 @@ -6 + + 19 + 2 + (:auto !!:) Boost Exception provides a namespace-scope function (:link + 1 + + 0 + + -58 + + + 2 + :) which takes a boost::(:link + 1 + + 0 + + -42 + + + 2 + :). The returned string contains: *the string representation of all data objects added to the boost::(:link + 1 + + 0 + + -42 + + + 2 + :) through (:link + 1 + + 0 + + -8 + + + 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 + + -10 + + + 2 + :)> #include <iostream> void f(); //throws unknown types that derive from boost::(:link + 1 + + 0 + + -42 + + + 2 + :). void g() { try { f(); } catch( boost::(:link + 1 + + 0 + + -42 + + + 2 + :) & e ) { std::cerr << (:link + 1 + + 0 + + -58 + + + 2 + :)(e); } }@] (:include + 1 + + 0 + + -65 + + + 2 + :) + + + + + 0 + + -7 + + 1 2 @@ -7170,7 +7273,7 @@ 0 - -7 + -8 @@ -7210,7 +7313,7 @@ 0 - -8 + -9 @@ -7241,7 +7344,7 @@ 0 - -9 + -10 @@ -7254,7 +7357,7 @@ 0 - -10 + -11 @@ -7276,7 +7379,7 @@ 0 - -11 + -12 @@ -7289,7 +7392,7 @@ 0 - -12 + -13 @@ -7300,7 +7403,7 @@ 0 - -19 + -20 2 @@ -7309,7 +7412,7 @@ 0 - -19 + -20 2 @@ -7383,7 +7486,7 @@ 0 - -13 + -14 @@ -7403,7 +7506,7 @@ 0 - -13 + -14 2 @@ -7414,7 +7517,7 @@ 0 - -14 + -15 @@ -7454,7 +7557,7 @@ 0 - -15 + -16 @@ -7483,7 +7586,7 @@ 0 - -7 + -8 2 @@ -7494,7 +7597,7 @@ 0 - -16 + -17 @@ -7532,7 +7635,7 @@ 0 - -9 + -10 2 @@ -7595,7 +7698,7 @@ 0 - -7 + -8 2 @@ -7624,7 +7727,7 @@ 0 - -17 + -18 @@ -7662,7 +7765,7 @@ 0 - -24 + -25 2 @@ -7682,7 +7785,7 @@ 0 - -18 + -19 @@ -7695,7 +7798,7 @@ 0 - -19 + -20 @@ -7724,7 +7827,7 @@ 0 - -7 + -8 2 @@ -7733,7 +7836,7 @@ 0 - -19 + -20 2 @@ -7742,7 +7845,7 @@ 0 - -19 + -20 2 @@ -7751,7 +7854,7 @@ 0 - -12 + -13 2 @@ -7762,7 +7865,7 @@ 0 - -20 + -21 @@ -7802,7 +7905,7 @@ 0 - -21 + -22 @@ -7822,7 +7925,7 @@ 0 - -9 + -10 2 @@ -7840,7 +7943,7 @@ 0 - -20 + -21 2 @@ -7849,7 +7952,7 @@ 0 - -9 + -10 2 @@ -7896,7 +7999,7 @@ 0 - -22 + -23 @@ -7961,7 +8064,7 @@ 0 - -7 + -8 2 @@ -7988,7 +8091,7 @@ 0 - -7 + -8 2 @@ -8096,7 +8199,7 @@ 0 - -20 + -21 2 @@ -8204,7 +8307,7 @@ 0 - -7 + -8 2 @@ -8213,7 +8316,7 @@ 0 - -7 + -8 2 @@ -8222,7 +8325,7 @@ 0 - -7 + -8 2 @@ -8231,7 +8334,7 @@ 0 - -7 + -8 2 @@ -8240,7 +8343,7 @@ 0 - -7 + -8 2 @@ -8260,7 +8363,7 @@ 0 - -23 + -24 @@ -8273,7 +8376,7 @@ 0 - -24 + -25 @@ -8293,7 +8396,7 @@ 0 - -23 + -24 2 @@ -8320,7 +8423,7 @@ 0 - -20 + -21 2 @@ -8345,100 +8448,6 @@ :). - - - 0 - - -25 - - - - 19 - 2 - (:auto !!:) Boost Exception provides a namespace-scope function (:link - 1 - - 0 - - -58 - - - 2 - :) which takes a boost::(:link - 1 - - 0 - - -42 - - - 2 - :). The returned string contains: *the string representation of all data objects added to the boost::(:link - 1 - - 0 - - -42 - - - 2 - :) through (:link - 1 - - 0 - - -7 - - - 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 - - -9 - - - 2 - :)> #include <iostream> void f(); //throws unknown types that derive from boost::(:link - 1 - - 0 - - -42 - - - 2 - :). void g() { try { f(); } catch( boost::(:link - 1 - - 0 - - -42 - - - 2 - :) & e ) { std::cerr << (:link - 1 - - 0 - - -58 - - - 2 - :)(e); } }@] (:include - 1 - - 0 - - -65 - - - 2 - :) - - 0 @@ -8626,7 +8635,7 @@ 0 - -17 + -18 2 @@ -8659,15 +8668,6 @@ 2 mod="w":) ##(:link 1 - - 0 - - -16 - - - 2 - mod="w":) ##(:link - 1 0 @@ -8680,7 +8680,16 @@ 0 - -14 + -18 + + + 2 + mod="w":) ##(:link + 1 + + 0 + + -15 2 @@ -8698,7 +8707,7 @@ 0 - -25 + -6 2 @@ -8740,15 +8749,6 @@ 2 :) ###(:link 1 - - 0 - - -7 - - - 2 - :) ###(:link - 1 0 @@ -8761,7 +8761,16 @@ 0 - -19 + -9 + + + 2 + :) ###(:link + 1 + + 0 + + -20 2 @@ -8887,7 +8896,7 @@ 0 - -6 + -7 2 @@ -8905,7 +8914,7 @@ 0 - -12 + -13 2 @@ -8914,7 +8923,7 @@ 0 - -22 + -23 2 @@ -9115,7 +9124,7 @@ 0 - -19 + -20 2 @@ -9181,7 +9190,7 @@ 0 - -14 + -15 2 @@ -9243,7 +9252,7 @@ 0 - -21 + -22 2 @@ -9301,7 +9310,7 @@ 0 - -7 + -8 2 @@ -9319,7 +9328,7 @@ 0 - -19 + -20 2 @@ -9448,7 +9457,7 @@ 0 - -19 + -20 2 @@ -9550,7 +9559,7 @@ 0 - -7 + -8 2 @@ -9622,7 +9631,7 @@ 0 - -7 + -8 2 @@ -9649,7 +9658,7 @@ 0 - -7 + -8 2 @@ -9658,7 +9667,7 @@ 0 - -19 + -20 2 @@ -9694,7 +9703,7 @@ 0 - -19 + -20 2 @@ -9712,7 +9721,7 @@ 0 - -7 + -8 2 @@ -9855,7 +9864,7 @@ 0 - -11 + -12 2 @@ -9864,7 +9873,7 @@ 0 - -11 + -12 2 @@ -9891,7 +9900,7 @@ 0 - -18 + -19 2 @@ -9900,7 +9909,7 @@ 0 - -18 + -19 2 @@ -9963,7 +9972,7 @@ 0 - -23 + -24 2 @@ -9972,7 +9981,7 @@ 0 - -23 + -24 2 @@ -10053,7 +10062,7 @@ 0 - -9 + -10 2 @@ -10062,7 +10071,7 @@ 0 - -9 + -10 2 @@ -10119,7 +10128,7 @@ 0 - -19 + -20 2 @@ -10364,7 +10373,7 @@ 0 - -7 + -8 2 @@ -10543,7 +10552,7 @@ 0 - -9 + -10 2 @@ -10588,7 +10597,7 @@ 0 - -7 + -8 2 @@ -10597,7 +10606,7 @@ 0 - -19 + -20 2 @@ -10606,7 +10615,7 @@ 0 - -19 + -20 2 @@ -10698,7 +10707,7 @@ 0 - -20 + -21 2 @@ -10778,7 +10787,7 @@ 0 - -7 + -8 2 @@ -10814,7 +10823,7 @@ 0 - -7 + -8 2 @@ -10832,7 +10841,7 @@ 0 - -7 + -8 2 @@ -10850,7 +10859,7 @@ 0 - -19 + -20 2 @@ -10859,7 +10868,7 @@ 0 - -19 + -20 2 @@ -10979,7 +10988,7 @@ 0 - -9 + -10 2 @@ -11216,7 +11225,7 @@ 0 - -23 + -24 2 @@ -11234,7 +11243,7 @@ 0 - -20 + -21 2 @@ -11261,7 +11270,7 @@ 0 - -19 + -20 2 @@ -11314,7 +11323,7 @@ 0 - -23 + -24 2 @@ -11395,7 +11404,7 @@ 0 - -20 + -21 2 @@ -11440,7 +11449,7 @@ 0 - -20 + -21 2 @@ -11620,9 +11629,7 @@ - 1 - 2 - !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. + 0 @@ -11635,7 +11642,7 @@ 1 2 - !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. + !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. @@ -11646,7 +11653,9 @@ - 0 + 1 + 2 + !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. @@ -11657,9 +11666,7 @@ - 1 - 2 - !!!!Throws: Any exception emitted by v's copy constructor. + 0 @@ -11670,7 +11677,9 @@ - 0 + 1 + 2 + !!!!Throws: Any exception emitted by v's copy constructor. @@ -12439,7 +12448,7 @@ 0 - -18 + -19 2 @@ -12464,6 +12473,17 @@ -7 + + 0 + + + + + 0 + + -8 + + 3 2 @@ -12483,7 +12503,7 @@ 0 - -8 + -9 @@ -12503,7 +12523,7 @@ 0 - -8 + -9 2 @@ -12514,7 +12534,7 @@ 0 - -9 + -10 @@ -12527,7 +12547,7 @@ 0 - -10 + -11 @@ -12549,7 +12569,7 @@ 0 - -11 + -12 @@ -12562,7 +12582,7 @@ 0 - -12 + -13 @@ -12573,7 +12593,7 @@ 0 - -13 + -14 @@ -12591,17 +12611,6 @@ :)> [@(:include decl:)@] - - - 0 - - -14 - - - - 0 - - 0 @@ -12642,6 +12651,17 @@ -18 + + 0 + + + + + 0 + + -19 + + 3 2 @@ -12661,7 +12681,7 @@ 0 - -19 + -20 @@ -12674,7 +12694,7 @@ 0 - -20 + -21 @@ -12685,7 +12705,7 @@ 0 - -23 + -24 2 @@ -12694,24 +12714,13 @@ 0 - -23 + -24 2 synopsis:) - - - 0 - - -21 - - - - 0 - - 0 @@ -12730,6 +12739,17 @@ -23 + + 0 + + + + + 0 + + -24 + + 3 2 @@ -12745,17 +12765,6 @@ > #include <errno.h> namespace boost { (:include api pre_indent="4":) }@] - - - 0 - - -24 - - - - 0 - - 0 @@ -13013,7 +13022,7 @@ 0 - -11 + -12 2 @@ -14051,7 +14060,7 @@ - -17 + -18 @@ -14119,7 +14128,7 @@ - -18 + -19 @@ -14170,7 +14179,7 @@ - -14 + -15 @@ -14187,7 +14196,7 @@ - -22 + -23 @@ -14204,7 +14213,7 @@ - -6 + -7 @@ -14696,7 +14705,7 @@ - -23 + -24 @@ -14720,7 +14729,7 @@ - -24 + -25 @@ -14848,7 +14857,7 @@ - -21 + -22 @@ -14908,7 +14917,7 @@ - -13 + -14 @@ -14964,7 +14973,7 @@ - -25 + -6 @@ -15016,7 +15025,7 @@ - -20 + -21 @@ -15040,7 +15049,7 @@ - -9 + -10 @@ -15260,7 +15269,7 @@ - -15 + -16 @@ -15360,7 +15369,7 @@ - -11 + -12 @@ -15388,7 +15397,7 @@ - -19 + -20 @@ -15520,7 +15529,7 @@ - -12 + -13 @@ -15672,7 +15681,7 @@ - -10 + -11 @@ -15700,7 +15709,7 @@ - -7 + -8 @@ -15752,7 +15761,7 @@ - -16 + -17 @@ -15808,7 +15817,7 @@ - -8 + -9 @@ -15869,10 +15878,10 @@ 0 - -7 + -6 - error_info free function + diagnostic_information tutorial @@ -15887,10 +15896,10 @@ 0 - -10 + -9 - function member + error_info free function @@ -15899,26 +15908,26 @@ -11 + function member + + + + 0 + + -12 + + 0 - -13 + -14 type - - - 0 - - -15 - - - function - 0 @@ -15926,7 +15935,7 @@ -16 - tutorial + function @@ -15944,7 +15953,7 @@ -18 - exception_ptr + tutorial @@ -15953,7 +15962,7 @@ -19 - error_info free function + exception_ptr @@ -15962,7 +15971,7 @@ -20 - error_info_instance noalso type + error_info free function @@ -15971,16 +15980,16 @@ -21 - noalso noindex tutorial + error_info_instance noalso type 0 - -24 + -22 - noindex tutorial + noalso noindex tutorial @@ -15989,7 +15998,7 @@ -25 - diagnostic_information tutorial + noindex tutorial diff --git a/doc/synopsis.html b/doc/synopsis.html index 1d1ffc0..52e2c30 100644 --- a/doc/synopsis.html +++ b/doc/synopsis.html @@ -107,6 +107,8 @@ boost std::string diagnostic_information( exception_ptr const & p ); + char const * diagnostic_information_what( boost::exception const & e ) throw(); + std::string current_exception_diagnostic_information(); }

#include <boost/exception/current_exception_cast.hpp>