From c37744a22830c56913ffa0816733f2af6157e0cc Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Sat, 6 Sep 2008 19:24:13 +0000 Subject: [PATCH] documentation update [SVN r48635] --- doc/boost-exception.html | 33 +- ...uration.html => configuration_macros.html} | 9 +- doc/diagnostic_information.html | 2 +- doc/enable_current_exception.html | 2 +- doc/enable_error_info.html | 2 +- doc/error_info.html | 8 +- doc/exception.html | 8 +- doc/exception_constructors.html | 2 +- doc/exception_diagnostic_information_hpp.html | 7 +- doc/exception_error_info_group_hpp.html | 4 +- doc/exception_error_info_hpp.html | 4 +- ...ption.html => exception_operator_shl.html} | 6 +- doc/get_error_info.html | 6 +- doc/name_idx.html | 7 +- doc/source/boost-exception.reno | 12518 ++++++++-------- doc/throw_exception.html | 2 +- doc/throw_exception_hpp.html | 2 +- ...shl_tuple.html => tuple_operator_shl.html} | 6 +- doc/tutorial_diagnostic_information.html | 2 +- doc/tutorial_enable_error_info.html | 2 +- doc/tutorial_transporting_data.html | 2 +- 21 files changed, 6315 insertions(+), 6319 deletions(-) rename doc/{Configuration.html => configuration_macros.html} (84%) rename doc/{operator_shl_exception.html => exception_operator_shl.html} (93%) rename doc/{operator_shl_tuple.html => tuple_operator_shl.html} (93%) diff --git a/doc/boost-exception.html b/doc/boost-exception.html index 72355a5..cb3f045 100644 --- a/doc/boost-exception.html +++ b/doc/boost-exception.html @@ -33,8 +33,8 @@
  • Documentation
    1. Class exception
    2. Transporting of Arbitrary Data to the Catch Site @@ -49,7 +49,7 @@
    3. diagnostic_information
    4. throw_exception, BOOST_THROW_EXCEPTION
    5. -
    6. Configuration
    7. +
    8. Configuration Macros
    9. Headers
      1. boost/exception.hpp
      2. boost/exception/diagnostic_information.hpp
      3. boost/exception/enable_current_exception.hpp
      4. @@ -101,10 +101,10 @@ boost }; template <class E, class Tag, class T> - E const & operator<<( E const & x, error_info<Tag,T> const & v ); + E const & operator<<( E const & x, error_info<Tag,T> const & v ); template <class E, class Tag1, class T1, ..., class TagN, class TN> - E const & operator<<( E const & x, + E const & operator<<( E const & x, tuple< error_info<Tag1,T1>, ..., @@ -113,8 +113,7 @@ boost template <class T> ---unspecified--- enable_error_info( T const & x ); - class exception; - std::string diagnostic_information( boost::exception const & x ); + std::string diagnostic_information( boost::exception const & x ); class unknown_exception: @@ -177,7 +176,7 @@ boost }; }

      Class boost::exception is designed to be used as a universal base for user-defined exception types.

      -

      An object of any type deriving from boost::exception can store data of arbitrary types, using the error_info wrapper and operator<<.

      +

      An object of any type deriving from boost::exception can store data of arbitrary types, using the error_info wrapper and operator<<.

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

    Transporting of Arbitrary Data to the Catch Site

    error_info

    @@ -200,21 +199,21 @@ boost

    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 error_info<Tag,T> can be passed to operator<< to be stored in objects of type boost::exception.

    +

    This class template is used to associate a Tag type with a value type T. Objects of type error_info<Tag,T> can be passed to operator<< to be stored in objects of type boost::exception.

    Note:

    The header <boost/exception/error_info.hpp> provides a declaration of the error_info template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, like this:

    #include <boost/exception/error_info.hpp>
     
     typedef boost::error_info<struct tag_errno,int> errno_info;
    -

    Of course, to actually add an error_info object to exceptions using operator<<, or to retrieve it using get_error_info, you must first #include <boost/exception/info.hpp>.

    -

    operator<</exception

    +

    Of course, to actually add an error_info object to exceptions using operator<<, or to retrieve it using get_error_info, you must first #include <boost/exception/info.hpp>.

    +

    exception/operator<<

    #include <boost/exception/info.hpp> 

    namespace
     boost
         {
         template <class E, class Tag, class T>
    -    E const & operator<<( E const & x, error_info<Tag,T> const & v );
    +    E const & operator<<( E const & x, error_info<Tag,T> const & v );
         }

    Requirements:

    E must be boost::exception, or a type that derives (indirectly) from boost::exception.

    @@ -224,14 +223,14 @@ boost

    x.

    Throws:

    std::bad_alloc, or any exception emitted by the T copy constructor.

    -

    operator<</tuple

    +

    tuple/operator<<

    #include <boost/exception/info_tuple.hpp>

    namespace
     boost
         {
         template <class E, class Tag1, class T1, ..., class TagN, class TN>
    -    E const & operator<<( E const & x,
    +    E const & operator<<( E const & x,
             tuple<
                 error_info<Tag1,T1>,
                 ...,
    @@ -261,12 +260,12 @@ boost
     

    Returns:

    • If dynamic_cast<boost::exception const *>(&x) is 0, or if x does not store an object of type ErrorInfo, the returned value is an empty shared_ptr.
    • -
    • Otherwise, the returned shared_ptr points to the stored value (use operator<< to store values in exception objects.) The shared_ptr is valid even after x has been destroyed.
    • +
    • Otherwise, the returned shared_ptr points to the stored value (use operator<< to store values in exception objects.) The shared_ptr is valid even after x has been destroyed.

    Throws:

    Nothing.

    Note:

    -

    The interface of get_error_info may be affected by the build Configuration.

    +

    The interface of get_error_info may be affected by the build configuration macros.

    enable_error_info

    #include <boost/exception/enable_error_info.hpp>

    @@ -403,7 +402,7 @@ boost std::string diagnostic_information( boost::exception const & x ); }

    Returns:

    -

    This function iterates over all data objects stored in the boost::exception through operator<<. The returned string is constructed by converting each data object to string and then concatenating these strings together.

    +

    This function iterates over all data objects stored in the boost::exception through operator<<. The returned string is constructed by converting each data object to string and then concatenating these strings together.

    When the error_info<Tag,T> template is instantiated, the system attempts overload resolution for an unqualified call to to_string(x), where x is of type T. If this is successful, the to_string overload is expected to return std::string and is used to convert objects of type T to string.

    Otherwise, the system attempts overload resolution for s << x, where s is a std::ostringstream and x is of type T. If this is successful, the operator<< overload is used to convert objects of type T to string.

    Otherwise the system is unable to convert objects of type T to string, and an unspecified stub string value is used without issuing a compile error.

    diff --git a/doc/Configuration.html b/doc/configuration_macros.html similarity index 84% rename from doc/Configuration.html rename to doc/configuration_macros.html index 096904c..d6d11fd 100644 --- a/doc/Configuration.html +++ b/doc/configuration_macros.html @@ -3,7 +3,7 @@ - Configuration + configuration macros @@ -19,13 +19,12 @@ -

    Configuration

    +

    Configuration Macros

    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. Defining either macro does not have an observable degrading effect on the library functionality, except for the following:

    +

    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 get_error_info function template can be called with any exception type. If BOOST_NO_RTTI is defined, get_error_info can be used only with objects of type boost::exception.

    -

    Note: the configuration where BOOST_NO_RTTI is defined but BOOST_NO_TYPEID is not defined is specific for MSVC compilers; it reduces RTTI overhead without fully disabling std::type_info. For most (all?) other compilers, to use Boost Exception without RTTI, both BOOST_NO_RTTI and BOOST_NO_TYPEID must be defined.

    BOOST_EXCEPTION_DISABLE

    By default, enable_current_exception and enable_error_info are integrated directly in the throw_exception 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 boost/throw_exception.hpp.

    diff --git a/doc/diagnostic_information.html b/doc/diagnostic_information.html index d775718..fdd7d76 100644 --- a/doc/diagnostic_information.html +++ b/doc/diagnostic_information.html @@ -28,7 +28,7 @@ boost std::string diagnostic_information( boost::exception const & x ); }

    Returns:

    -

    This function iterates over all data objects stored in the boost::exception through operator<<. The returned string is constructed by converting each data object to string and then concatenating these strings together.

    +

    This function iterates over all data objects stored in the boost::exception through operator<<. The returned string is constructed by converting each data object to string and then concatenating these strings together.

    When the error_info<Tag,T> template is instantiated, the system attempts overload resolution for an unqualified call to to_string(x), where x is of type T. If this is successful, the to_string overload is expected to return std::string and is used to convert objects of type T to string.

    Otherwise, the system attempts overload resolution for s << x, where s is a std::ostringstream and x is of type T. If this is successful, the operator<< overload is used to convert objects of type T to string.

    Otherwise the system is unable to convert objects of type T to string, and an unspecified stub string value is used without issuing a compile error.

    diff --git a/doc/enable_current_exception.html b/doc/enable_current_exception.html index 328365c..b481f01 100644 --- a/doc/enable_current_exception.html +++ b/doc/enable_current_exception.html @@ -49,7 +49,7 @@ throw boost::enab

    See Also:

    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 error_info<Tag,T> can be passed to operator<< to be stored in objects of type boost::exception.

    +

    This class template is used to associate a Tag type with a value type T. Objects of type error_info<Tag,T> can be passed to operator<< to be stored in objects of type boost::exception.

    Note:

    The header <boost/exception/error_info.hpp> provides a declaration of the error_info template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, like this:

    #include <boost/exception/error_info.hpp>
     
     typedef boost::error_info<struct tag_errno,int> errno_info;
    -

    Of course, to actually add an error_info object to exceptions using operator<<, or to retrieve it using get_error_info, you must first #include <boost/exception/info.hpp>.

    +

    Of course, to actually add an error_info object to exceptions using operator<<, or to retrieve it using get_error_info, you must first #include <boost/exception/info.hpp>.

    diff --git a/doc/exception.html b/doc/exception.html index 642eb5a..07d91f7 100644 --- a/doc/exception.html +++ b/doc/exception.html @@ -36,28 +36,28 @@ boost }; }

    Class boost::exception is designed to be used as a universal base for user-defined exception types.

    -

    An object of any type deriving from boost::exception can store data of arbitrary types, using the error_info wrapper and operator<<.

    +

    An object of any type deriving from boost::exception can store data of arbitrary types, using the error_info wrapper and operator<<.

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


    See Also:

    diff --git a/doc/exception_constructors.html b/doc/exception_constructors.html index a2f1857..8c93149 100644 --- a/doc/exception_constructors.html +++ b/doc/exception_constructors.html @@ -25,7 +25,7 @@ exception( exception const & x );

    Effects:

    • Default constructor: initializes an empty boost::exception object.
    • -
    • Copy constructor: initializes a boost::exception object which shares ownership with x of all data added through operator<<, including data that is added at a future time.
    • +
    • Copy constructor: initializes a boost::exception object which shares ownership with x of all data added through operator<<, including data that is added at a future time.

    Throws:

    Nothing.

    diff --git a/doc/exception_diagnostic_information_hpp.html b/doc/exception_diagnostic_information_hpp.html index 2fe73ba..8214df6 100644 --- a/doc/exception_diagnostic_information_hpp.html +++ b/doc/exception_diagnostic_information_hpp.html @@ -22,14 +22,13 @@

    boost/exception/diagnostic_information.hpp

    Synopsis

    -
    #include <exception>
    -#include <string>
    +
    #include <string>
     
     namespace
     boost
         {
    -    class exception;    
    -    std::string diagnostic_information( boost::exception const & x );
    +    class exception;
    +    std::string diagnostic_information( boost::exception const & x );
         }

    See Also:

    diff --git a/doc/exception_error_info_group_hpp.html b/doc/exception_error_info_group_hpp.html index c730980..68b4380 100644 --- a/doc/exception_error_info_group_hpp.html +++ b/doc/exception_error_info_group_hpp.html @@ -28,7 +28,7 @@ namespace boost { template <class E, class Tag1, class T1, ..., class TagN, class TN> - E const & operator<<( E const & x, + E const & operator<<( E const & x, tuple< error_info<Tag1,T1>, ..., @@ -38,7 +38,7 @@ boost

    See Also:

    diff --git a/doc/exception_error_info_hpp.html b/doc/exception_error_info_hpp.html index 842afca..d4a1238 100644 --- a/doc/exception_error_info_hpp.html +++ b/doc/exception_error_info_hpp.html @@ -41,14 +41,14 @@ boost }; template <class E, class Tag, class T> - E const & operator<<( E const & x, error_info<Tag,T> const & v ); + E const & operator<<( E const & x, error_info<Tag,T> const & v ); }
    diff --git a/doc/operator_shl_exception.html b/doc/exception_operator_shl.html similarity index 93% rename from doc/operator_shl_exception.html rename to doc/exception_operator_shl.html index 307f1ad..1a97447 100644 --- a/doc/operator_shl_exception.html +++ b/doc/exception_operator_shl.html @@ -3,7 +3,7 @@ - operator<</exception + exception/operator<< @@ -19,14 +19,14 @@ -

    operator<</exception

    +

    exception/operator<<

    #include <boost/exception/info.hpp> 

    namespace
     boost
         {
         template <class E, class Tag, class T>
    -    E const & operator<<( E const & x, error_info<Tag,T> const & v );
    +    E const & operator<<( E const & x, error_info<Tag,T> const & v );
         }

    Requirements:

    E must be boost::exception, or a type that derives (indirectly) from boost::exception.

    diff --git a/doc/get_error_info.html b/doc/get_error_info.html index 34b511e..224f2d6 100644 --- a/doc/get_error_info.html +++ b/doc/get_error_info.html @@ -35,18 +35,18 @@ boost

    Returns:

    • If dynamic_cast<boost::exception const *>(&x) is 0, or if x does not store an object of type ErrorInfo, the returned value is an empty shared_ptr.
    • -
    • Otherwise, the returned shared_ptr points to the stored value (use operator<< to store values in exception objects.) The shared_ptr is valid even after x has been destroyed.
    • +
    • Otherwise, the returned shared_ptr points to the stored value (use operator<< to store values in exception objects.) The shared_ptr is valid even after x has been destroyed.

    Throws:

    Nothing.

    Note:

    -

    The interface of get_error_info may be affected by the build Configuration.

    +

    The interface of get_error_info may be affected by the build configuration macros.

    diff --git a/doc/source/boost-exception.reno b/doc/source/boost-exception.reno index e415038..5a73f75 100644 --- a/doc/source/boost-exception.reno +++ b/doc/source/boost-exception.reno @@ -53,1615 +53,43 @@ - 0 + 1 + 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E + 4076172629 + 8577 + 323 - 1 + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 - <string>boost exception</string> + <string>boost/exception/exception.hpp</string> - boost-exception + exception_exception_hpp - 117 + 1 2 - !!Introduction The purpose of Boost Exception is to ease the design of exception class hierarchies and to help write exception handling and error reporting code. It supports transporting of arbitrary data to the catch site, which is otherwise tricky due to the no-throw requirements (15.5.1) for exception 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 - - 6 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>transporting of exceptions between threads</string> - - - tutorial_exception_ptr - - - - - 2 - |copying:) of exception objects, implemented non-intrusively and automatically by the boost::(:link - 1 - - 0 - - 7 - - reno_context - - - - - - - 2 - 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A - 1770110914 - 587 - 1566 - 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D - 3929437933 - 361 - 213 - - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>throw_exception</string> - - - - - - - - 2 - :) function. !!Contents #Tutorial ##(:link - 1 - - 0 - - 8 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>transporting of arbitrary data to the catch site</string> - - - tutorial_transporting_data - - - - - 2 - mod="w":) ##(:link - 1 - - 0 - - 9 - - reno_context - - - - - - - 1 - D9B8E6AA12A4F33953B1A961FA590C5A3840234B6531CA8C04AC985AD5800835 - 2432554768 - 702 - 408 - - - - - - 0 - ../../example/enable_error_info.cpp - 0 - 0 - - - - - <string>integrating boost exception in existing exception class hierarchies</string> - - - tutorial_enable_error_info - - - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -6 - - - 2 - mod="w":) ##(:link - 1 - - 0 - - 10 - - reno_context - - - - - - - 1 - 7116AEECEA666794E31DC99390ADEC1BA6AF74B2398067A0739767B4B76FA97A - 4128134227 - 307 - 302 - - - - - - 0 - ../../example/logging.cpp - 0 - 0 - - - - - <string>diagnostic information</string> - - - tutorial_diagnostic_information - - - - - 2 - mod="w":) #Documentation ##Class (:link - 1 - - 0 - - 11 - - reno_context - - - - - - - 2 - 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E - 4076172629 - 8577 - 323 - 2D32D2DE11DB8BDD6F34C94CC165ABEF4F4CCB2D119354FA05811534E2AF356F - 1002290201 - 1604 - 3720 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>exception</string> - - - - - - - - 2 - :) ##Transporting of Arbitrary Data to the Catch Site ###(:link - 1 - - 0 - - 12 - - reno_context - - - - - - - 2 - 126BB1D8971585CBE7D78EF3C12259D72FD5E973A84626AA9FC3234220A11CAB - 3471702891 - 969 - 344 - A7FD310E1340E103081DA2A7899DA0E213C696C84D52C17ADA09F6942EE97D47 - 2978648279 - 530 - 433 - - - - - - 0 - ../../../../boost/exception/detail/error_info_impl.hpp - 0 - 0 - - - - - <string>error_info</string> - - - - - - - - 2 - :) ###(:link - 1 - - 0 - - 13 - - reno_context - - - - - - - 2 - 17F10DBB69A481226D23CBBD7A897BF484EB8C5B1DC2E346E725EF0B8CE76D14 - 469421394 - 3808 - 518 - D31BCE814DF5B8B718E7EB67A194AD08EF716A26D422E436596ABA1F145007D8 - 4055211476 - 525 - 3277 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - - <string>operator<</exception</string> - - - - - - - - 2 - :) ###(:link - 1 - - 0 - - 14 - - reno_context - - - - - - - 2 - F7633FDCF6615C0199645701EE6E7ACE5CBCD7A7CF6838573791E91ABB3C09F2 - 1668435395 - 1332 - 396 - A1F443AF571973A12005D2F7D4AE09A32AAF686FEEAE272EC21512A65EB943E8 - 3879093659 - 1300 - 26 - - - - - - 0 - ../../../../boost/exception/info_tuple.hpp - 0 - 0 - - - - - <string>operator<</tuple</string> - - - - - - - - 2 - :) ###(:link - 1 - - 0 - - 15 - - reno_context - - - - - - - 2 - 8F178D422EC1891AEDF90A4DCA7BCEC96D29D1B0A70726C222513D699679F59D - 3253069900 - 3913 - 525 - BB8AF986C96801345719855FEA083AF5684FBC349F6520E150F19A6370019265 - 3731478139 - 686 - 3221 - - - - - - 0 - ../../../../boost/exception/get_error_info.hpp - 0 - 0 - - - - - <string>get_error_info</string> - - - - - - - - 2 - :) ###(:link - 1 - - 0 - - 16 - - reno_context - - - - - - - 2 - 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E - 4076172629 - 8577 - 323 - B4D37C317A3B45825DDA1A8C8B1CE71CC2E530D15090D05995FCBEC4247F49C4 - 2742768198 - 258 - 6714 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>enable_error_info</string> - - - - - - - - 2 - :) ##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads ###(:link - 1 - - 0 - - 17 - - reno_context - - - - - - - 2 - 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB - 941210061 - 8706 - 487 - F86EB07D04CD0D0645080D1121DA899746D0C45137E17E1D9BE605E75396F047 - 1983537541 - 1346 - 148 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>exception_ptr</string> - - - - - - - - 2 - :) ###(:link - 1 - - 0 - - 18 - - reno_context - - - - - - - 2 - 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E - 4076172629 - 8577 - 323 - DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 - 1137981799 - 192 - 8379 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>enable_current_exception</string> - - - - - - - - 2 - :) ###(:link - 1 - - 0 - - 19 - - reno_context - - - - - - - 2 - 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB - 941210061 - 8706 - 487 - E23085202D084CBB50F289988A6A592F06D923B77D0AB25D7A98A7188DF5BE3B - 1414247481 - 766 - 7370 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>current_exception</string> - - - - - - - - 2 - :) ###(:link - 1 - - 0 - - 20 - - reno_context - - - - - - - 2 - 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB - 941210061 - 8706 - 487 - 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4 - 2078296250 - 305 - 8138 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>copy_exception</string> - - - - - - - - 2 - :) ###(:link - 1 - - 0 - - 21 - - reno_context - - - - - - - 2 - 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB - 941210061 - 8706 - 487 - 0E9DF8366080712A816BE91ABCEF1E2044145B63D75B0B995B537900F378189E - 1069696031 - 255 - 8445 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>rethrow_exception</string> - - - - - - - - 2 - :) ###(:link - 1 - - 0 - - 22 - - reno_context - - - - - - - 2 - 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB - 941210061 - 8706 - 487 - 448B6444D4B3E46F822F56C14FDA3F6F96B869543EBA1E291C5E3D36F73AF24B - 2443226110 - 700 - 1496 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>unknown_exception</string> - - - - - - - - 2 - :) ##(:link - 1 - - 0 - - 23 - - reno_context - - - - - - - 2 - 439278045C9E304238B86C5BD4DA9CA64630D4CC73D442089068A186A28CA55A - 3686240039 - 1522 - 433 - 6FE1F0AF570A010E8FDA1647DE61E0CC3AA979C8A8638722DAACDF8FBC4790D2 - 1246830037 - 1023 - 493 - - - - - - 0 - ../../../../boost/exception/diagnostic_information.hpp - 0 - 0 - - - - - <string>diagnostic_information</string> - - - - - - - - 2 - :) ##(:link - 1 - - 0 - - -7 - - - 2 - :), (:link - 1 - - 0 - - 24 - - reno_context - - - - - - - 1 - 17FF6C63843EE64ED66CB038DD95B4C4D6BA1B0FD36B27BEFD84A909161D2853 - 1237535165 - 231 - 1255 - - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>BOOST_THROW_EXCEPTION</string> - - - - - - - - 2 - :) ##(:link - 1 - - 0 - - 25 - - reno_context - - - - - - - 3 - 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A - 1770110914 - 587 - 1566 - 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D - 3929437933 - 361 - 213 - CD1241D84950468704F3C3F04116B8DA5162A8BEA4364F10951232F49113C5DE - 1658463867 - 121 - 238 - - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>Configuration</string> - - - - - - - - 2 - :) ##Headers ###(:link - 1 - - 0 - - 26 - - reno_context - - - - - - - 1 - 67D64FAD0AB7CA6B2173A14F363D19B27F59EEBDB5C1076F8BCCA1B54D4CCD7D - 2241687287 - 303 - 323 - - - - - - 0 - ../../../../boost/exception.hpp - 0 - 0 - - - - - <string>boost/exception.hpp</string> - - - exception_hpp - - - - - 2 - :) ###(:link - 1 - - 0 - - 27 - - reno_context - - - - - - - 1 - 265AFB67CCEF87EC9B58DB910ED23C0B1A5546C44767E2FFD6829ABADAF4828B - 1235989793 - 1632 - 323 - - - - - - 0 - ../../../../boost/exception/diagnostic_information.hpp - 0 - 0 - - - - - <string>boost/exception/diagnostic_information.hpp</string> - - - exception_diagnostic_information_hpp - - - - - 2 - :) ###(:link - 1 - - 0 - - 28 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>boost/exception/enable_current_exception.hpp</string> - - - exception_enable_current_exception_hpp - - - - - 2 - :) ###(:link - 1 - - 0 - - 29 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>boost/exception/enable_error_info.hpp</string> - - - exception_enable_error_info_hpp - - - - - 2 - :) ###(:link - 1 - - 0 - - 30 - - 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> - - - exception_error_info_value_hpp - - - - - 2 - :) ###(:link - 1 - - 0 - - 31 - - reno_context - - - - - - - 1 - 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E - 4076172629 - 8577 - 323 - - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>boost/exception/exception.hpp</string> - - - exception_exception_hpp - - - - - 2 - :) ###(:link - 1 - - 0 - - 32 - - reno_context - - - - - - - 1 - F6A7A960DE8CB8740E206D2585D4C83854DE073ABDAFFB8BD1C9A6B73428197D - 129904804 - 4115 - 323 - - - - - - 0 - ../../../../boost/exception/get_error_info.hpp - 0 - 0 - - - - - <string>boost/exception/get_error_info.hpp</string> - - - exception_get_error_info_hpp - - - - - 2 - :) ###(:link - 1 - - 0 - - 33 - - reno_context - - - - - - - 1 - A08B750D3232ABEE88525742EFF8F342E5B2E4DE52BA6F55A8CFED666A50756E - 4268561218 - 4003 - 323 - - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - - <string>boost/exception/info.hpp</string> - - - exception_error_info_hpp - - - - - 2 - :) ###(:link - 1 - - 0 - - 34 - - reno_context - - - - - - - 1 - CAD6C404CB725D336A44920D2341ECA131149AB02C368B59028F8147F16737BF - 2258638601 - 94 - 227 - - - - - - 0 - ../../../../boost/exception/info_tuple.hpp - 0 - 0 - - - - - <string>boost/exception/info_tuple.hpp</string> - - - exception_error_info_group_hpp - - - - - 2 - :) ###(:link - 1 - - 0 - - 35 - - reno_context - - - - - - - 1 - 25DF01CCA9425952104C6606C336BB091879E4A22680790BBB352670DFB0E0CD - 4271502180 - 8870 - 323 - - - - - - 0 - ../../../../boost/exception_ptr.hpp - 0 - 0 - - - - - <string>boost/exception_ptr.hpp</string> - - - exception_cloning_hpp - - - - - 2 - :) ###(:link - 1 - - 0 - - 36 - - reno_context - - - - - - - 1 - 05BBA12328429E0E88C8D44170E103FDF8DCD84E0C9AFB19D0478F9F4606FBE7 - 3486222742 - 2082 - 91 - - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>boost/throw_exception.hpp</string> - - - throw_exception_hpp - - - - - 2 - :) #(:link - 1 - - 0 - - 37 - - reno_context - - - - - - - 0 - - - - - - 1 - - - - - <string>Index</string> - - - name_idx - - - - - 2 - :) !!Synopsis `#include <(:link - 1 - - 0 - - -26 - - - 2 - :)> [@namespace boost { (:include - 1 - - 0 - - -31 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -33 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -34 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -29 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -27 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -35 - - - 2 - api pre_indent="4":) (:include - 1 - - 0 - - -28 - - - 2 - api pre_indent="4":) }@] `#include <(:link - 1 - - 0 - - -36 - - - 2 - :)> [@(:include - 1 - - 0 - - -36 - - - 2 - api:)@] !!Class exception (:include - 1 - - 0 - - -11 - - - 2 - :) !!Transporting of Arbitrary Data to the Catch Site (:include - 1 - - 0 - - -12 - - - 2 - :) (:include - 1 - - 0 - - -13 - - - 2 - :) (:include - 1 - - 0 - - -14 - - - 2 - :) (:include - 1 - - 0 - - -15 - - - 2 - :) (:include - 1 - - 0 - - -16 - - - 2 - :) !!Transporting of Exceptions between Threads (:include - 1 - - 0 - - -17 - - - 2 - :) (:include - 1 - - 0 - - -18 - - - 2 - :) (:include - 1 - - 0 - - -19 - - - 2 - :) (:include - 1 - - 0 - - -20 - - - 2 - :) (:include - 1 - - 0 - - -21 - - - 2 - :) (:include - 1 - - 0 - - -22 - - - 2 - :) !!Printing Diagnostic Information (:include - 1 - - 0 - - -23 - - - 2 - :) !!Throwing Exceptions (:include - 1 - - 0 - - -7 - - - 2 - :) !!Acknowledgements Peter Dimov has been continuously influencing the design and evolution of Boost Exception. Also thanks to Tobias Schwinger, Tom Brinkman, Pavel Vozenilek and everyone who participated in the review process. + (:include include:) (:auto also:) 0 - 38 + 6 reno_context @@ -1671,27 +99,456 @@ 1 - 4ED9709788BBAB4DE7CF336561606B8C0B41F70877A3395F4EE026F4AEB66CC6 - 743998427 - 409 - 307 + 25DF01CCA9425952104C6606C336BB091879E4A22680790BBB352670DFB0E0CD + 4271502180 + 8870 + 323 0 - ../../example/cloning_1.cpp + ../../../../boost/exception_ptr.hpp 0 0 - <string>using enable_current_exception at the time of the throw</string> + <string>boost/exception_ptr.hpp</string> - using_enable_cloning + exception_cloning_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 7 + + reno_context + + + + + + + 3 + 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A + 1770110914 + 587 + 1482 + 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D + 3929437933 + 361 + 213 + CD1241D84950468704F3C3F04116B8DA5162A8BEA4364F10951232F49113C5DE + 1658463867 + 121 + 238 + + + + + + 0 + ../../../../boost/throw_exception.hpp + 0 + 0 + + + + + <string>configuration macros</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 8 + + reno_context + + + + + + + 2 + 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB + 941210061 + 8706 + 487 + 448B6444D4B3E46F822F56C14FDA3F6F96B869543EBA1E291C5E3D36F73AF24B + 2443226110 + 700 + 1496 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>unknown_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 9 + + reno_context + + + + + + + 1 + CAD6C404CB725D336A44920D2341ECA131149AB02C368B59028F8147F16737BF + 2258638601 + 94 + 227 + + + + + + 0 + ../../../../boost/exception/info_tuple.hpp + 0 + 0 + + + + + <string>boost/exception/info_tuple.hpp</string> + + + exception_error_info_group_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 10 + + reno_context + + + + + + + 2 + 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E + 4076172629 + 8577 + 323 + DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 + 1137981799 + 192 + 8379 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>enable_current_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 11 + + reno_context + + + + + + + 2 + 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB + 941210061 + 8706 + 487 + 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4 + 2078296250 + 305 + 8138 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>copy_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 12 + + reno_context + + + + + + + 1 + 772781E5C169713B0AAF4BF73D567AB51C65D3D2DE185E43BDD75B8C3E0090AE + 2533913088 + 1998 + 91 + + + + + + 0 + ../../../../boost/throw_exception.hpp + 0 + 0 + + + + + <string>boost/throw_exception.hpp</string> + + + throw_exception_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 13 + + 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> + + + exception_error_info_value_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 14 + + reno_context + + + + + + + 1 + F6A7A960DE8CB8740E206D2585D4C83854DE073ABDAFFB8BD1C9A6B73428197D + 129904804 + 4115 + 323 + + + + + + 0 + ../../../../boost/exception/get_error_info.hpp + 0 + 0 + + + + + <string>boost/exception/get_error_info.hpp</string> + + + exception_get_error_info_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 15 + + reno_context + + + + + + + 1 + F4C951B28F7DE500973AA3DFAA99F2BADA6EDAFA2B406C30BEF3B7FBE6FD57D7 + 2263754923 + 982 + 306 + + + + + + 0 + ../../example/error_info_2.cpp + 0 + 0 + + + + + <string>adding of arbitrary data to active exception objects</string> + + + adding_data_later @@ -1704,202 +561,7 @@ 0 - -30 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -19 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -34 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -18 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -7 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -28 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -23 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -27 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -11 - - - - 1 - 2 - (:include include:) ---- !!!See Also: (:pagelist link="backlink" except_tags="exception,member" mod="w":) - - - - - 0 - - -26 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -32 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -36 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -21 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -20 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -33 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 39 + 16 reno_context @@ -1948,7 +610,7 @@ 0 - 40 + 17 reno_context @@ -1958,40 +620,78 @@ 1 - 187BFD2B78A0DD006717B5B06FFD465E2468F521C32A86FB793F7A68AB5417F3 - 4276724153 - 574 - 382 + A08B750D3232ABEE88525742EFF8F342E5B2E4DE52BA6F55A8CFED666A50756E + 4268561218 + 4003 + 323 0 - ../../example/error_info_1.cpp + ../../../../boost/exception/info.hpp 0 0 - <string>adding of arbitrary data at the point of the throw</string> + <string>boost/exception/info.hpp</string> - adding_data_at_throw + exception_error_info_hpp - 0 + 1 + 2 + (:include include:) (:auto also:) 0 - -22 + 18 + + reno_context + + + + + + + 2 + 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB + 941210061 + 8706 + 487 + 0E9DF8366080712A816BE91ABCEF1E2044145B63D75B0B995B537900F378189E + 1069696031 + 255 + 8445 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>rethrow_exception</string> + + + + + @@ -2004,7 +704,32 @@ 0 - -8 + 19 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>boost/exception/enable_error_info.hpp</string> + + + exception_enable_error_info_hpp + + @@ -2017,7 +742,43 @@ 0 - -6 + 20 + + reno_context + + + + + + + 2 + 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB + 941210061 + 8706 + 487 + E23085202D084CBB50F289988A6A592F06D923B77D0AB25D7A98A7188DF5BE3B + 1414247481 + 766 + 7370 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>current_exception</string> + + + + + @@ -2030,7 +791,7 @@ 0 - 41 + 21 reno_context @@ -2040,42 +801,31 @@ 1 - E444EE9697EEADFDE0767E1D0242FC0E70D98E61FB1F0FFA099648DE509B82F3 - 94503238 - 773 - 374 + 17FF6C63843EE64ED66CB038DD95B4C4D6BA1B0FD36B27BEFD84A909161D2853 + 1237535165 + 231 + 1171 0 - ../../example/info_tuple.cpp + ../../../../boost/throw_exception.hpp 0 0 - <string>adding grouped data to exceptions</string> + <string>BOOST_THROW_EXCEPTION</string> - grouping_data + - - 0 - - - - - 0 - - -24 - - 1 2 @@ -2086,7 +836,32 @@ 0 - -17 + 22 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>boost/exception/enable_current_exception.hpp</string> + + + exception_enable_current_exception_hpp + + @@ -2099,72 +874,7 @@ 0 - -14 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -9 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -10 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -12 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - -16 - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - 0 - - 42 + 23 reno_context @@ -2174,55 +884,31 @@ 1 - F4C951B28F7DE500973AA3DFAA99F2BADA6EDAFA2B406C30BEF3B7FBE6FD57D7 - 2263754923 - 982 - 306 + 265AFB67CCEF87EC9B58DB910ED23C0B1A5546C44767E2FFD6829ABADAF4828B + 1235989793 + 1632 + 323 0 - ../../example/error_info_2.cpp + ../../../../boost/exception/diagnostic_information.hpp 0 0 - <string>adding of arbitrary data to active exception objects</string> + <string>boost/exception/diagnostic_information.hpp</string> - adding_data_later + exception_diagnostic_information_hpp - - 0 - - - - - 0 - - -37 - - - - 1 - 2 - (:auto !:) (:pagelist fmt="index" except_tags="index,noindex" mod="w":) - - - - - 0 - - -13 - - 1 2 @@ -2233,7 +919,101 @@ 0 - 43 + 24 + + reno_context + + + + + + + 2 + 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E + 4076172629 + 8577 + 323 + B4D37C317A3B45825DDA1A8C8B1CE71CC2E530D15090D05995FCBEC4247F49C4 + 2742768198 + 258 + 6714 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>enable_error_info</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 25 + + reno_context + + + + + + + 1 + 67D64FAD0AB7CA6B2173A14F363D19B27F59EEBDB5C1076F8BCCA1B54D4CCD7D + 2241687287 + 303 + 323 + + + + + + 0 + ../../../../boost/exception.hpp + 0 + 0 + + + + + <string>boost/exception.hpp</string> + + + exception_hpp + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 26 reno_context @@ -2276,7 +1056,56 @@ 0 - 44 + 27 + + reno_context + + + + + + + 2 + F7633FDCF6615C0199645701EE6E7ACE5CBCD7A7CF6838573791E91ABB3C09F2 + 1668435395 + 1332 + 396 + A1F443AF571973A12005D2F7D4AE09A32AAF686FEEAE272EC21512A65EB943E8 + 3879093659 + 1300 + 26 + + + + + + 0 + ../../../../boost/exception/info_tuple.hpp + 0 + 0 + + + + + <string>tuple/operator<<</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 28 reno_context @@ -2329,7 +1158,43 @@ 0 - -35 + 29 + + reno_context + + + + + + + 2 + 439278045C9E304238B86C5BD4DA9CA64630D4CC73D442089068A186A28CA55A + 3686240039 + 1522 + 433 + 6FE1F0AF570A010E8FDA1647DE61E0CC3AA979C8A8638722DAACDF8FBC4790D2 + 1246830037 + 1023 + 493 + + + + + + 0 + ../../../../boost/exception/diagnostic_information.hpp + 0 + 0 + + + + + <string>diagnostic_information</string> + + + + + @@ -2342,7 +1207,32 @@ 0 - -29 + 30 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>transporting of exceptions between threads</string> + + + tutorial_exception_ptr + + @@ -2355,7 +1245,86 @@ 0 - -25 + 31 + + reno_context + + + + + + + 1 + E444EE9697EEADFDE0767E1D0242FC0E70D98E61FB1F0FFA099648DE509B82F3 + 94503238 + 773 + 374 + + + + + + 0 + ../../example/info_tuple.cpp + 0 + 0 + + + + + <string>adding grouped data to exceptions</string> + + + grouping_data + + + + + + 0 + + + + + 0 + + 32 + + reno_context + + + + + + + 2 + 17F10DBB69A481226D23CBBD7A897BF484EB8C5B1DC2E346E725EF0B8CE76D14 + 469421394 + 3808 + 518 + D31BCE814DF5B8B718E7EB67A194AD08EF716A26D422E436596ABA1F145007D8 + 4055211476 + 525 + 3277 + + + + + + 0 + ../../../../boost/exception/info.hpp + 0 + 0 + + + + + <string>exception/operator<<</string> + + + + + @@ -2368,7 +1337,43 @@ 0 - -31 + 33 + + reno_context + + + + + + + 2 + 8F178D422EC1891AEDF90A4DCA7BCEC96D29D1B0A70726C222513D699679F59D + 3253069900 + 3913 + 525 + BB8AF986C96801345719855FEA083AF5684FBC349F6520E150F19A6370019265 + 3731478139 + 686 + 3221 + + + + + + 0 + ../../../../boost/exception/get_error_info.hpp + 0 + 0 + + + + + <string>get_error_info</string> + + + + + @@ -2381,7 +1386,43 @@ 0 - -15 + 34 + + reno_context + + + + + + + 2 + 126BB1D8971585CBE7D78EF3C12259D72FD5E973A84626AA9FC3234220A11CAB + 3471702891 + 969 + 344 + A7FD310E1340E103081DA2A7899DA0E213C696C84D52C17ADA09F6942EE97D47 + 2978648279 + 530 + 433 + + + + + + 0 + ../../../../boost/exception/detail/error_info_impl.hpp + 0 + 0 + + + + + <string>error_info</string> + + + + + @@ -2390,6 +1431,965 @@ (:include include:) (:auto also:) + + + 0 + + 35 + + reno_context + + + + + + + 1 + 187BFD2B78A0DD006717B5B06FFD465E2468F521C32A86FB793F7A68AB5417F3 + 4276724153 + 574 + 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 + + + + + + + 1 + D9B8E6AA12A4F33953B1A961FA590C5A3840234B6531CA8C04AC985AD5800835 + 2432554768 + 702 + 408 + + + + + + 0 + ../../example/enable_error_info.cpp + 0 + 0 + + + + + <string>integrating boost exception in existing exception class hierarchies</string> + + + tutorial_enable_error_info + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 37 + + reno_context + + + + + + + 2 + 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A + 1770110914 + 587 + 1482 + 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D + 3929437933 + 361 + 213 + + + + + + 0 + ../../../../boost/throw_exception.hpp + 0 + 0 + + + + + <string>throw_exception</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 38 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>transporting of arbitrary data to the catch site</string> + + + tutorial_transporting_data + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 39 + + reno_context + + + + + + + 1 + 7116AEECEA666794E31DC99390ADEC1BA6AF74B2398067A0739767B4B76FA97A + 4128134227 + 307 + 302 + + + + + + 0 + ../../example/logging.cpp + 0 + 0 + + + + + <string>diagnostic information</string> + + + tutorial_diagnostic_information + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 40 + + reno_context + + + + + + + 2 + 50E48ABD58B427E16B2EFA345D5FE67159057CB90F19AA1AD52C11991FD8500E + 4076172629 + 8577 + 323 + 2D32D2DE11DB8BDD6F34C94CC165ABEF4F4CCB2D119354FA05811534E2AF356F + 1002290201 + 1604 + 3720 + + + + + + 0 + ../../../../boost/exception/exception.hpp + 0 + 0 + + + + + <string>exception</string> + + + + + + + + + 1 + 2 + (:include include:) ---- !!!See Also: (:pagelist link="backlink" except_tags="exception,member" mod="w":) + + + + + 0 + + 41 + + reno_context + + + + + + + 1 + 4ED9709788BBAB4DE7CF336561606B8C0B41F70877A3395F4EE026F4AEB66CC6 + 743998427 + 409 + 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 + + 42 + + reno_context + + + + + + + 2 + 86E1196533E771AEFD141DA43FCD980AE3D7689A45EDD54A2DF28B1943E0E7DB + 941210061 + 8706 + 487 + F86EB07D04CD0D0645080D1121DA899746D0C45137E17E1D9BE605E75396F047 + 1983537541 + 1346 + 148 + + + + + + 0 + ../../../../boost/exception_ptr.hpp + 0 + 0 + + + + + <string>exception_ptr</string> + + + + + + + + + 1 + 2 + (:include include:) (:auto also:) + + + + + 0 + + 43 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>boost exception</string> + + + boost-exception + + + + + + 117 + 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 + + -30 + + + 2 + |copying:) of exception objects, implemented non-intrusively and automatically by the boost::(:link + 1 + + 0 + + -37 + + + 2 + :) function. !!Contents #Tutorial ##(:link + 1 + + 0 + + -38 + + + 2 + mod="w":) ##(:link + 1 + + 0 + + -36 + + + 2 + mod="w":) ##(:link + 1 + + 0 + + -30 + + + 2 + mod="w":) ##(:link + 1 + + 0 + + -39 + + + 2 + mod="w":) #Documentation ##Class (:link + 1 + + 0 + + -40 + + + 2 + :) ##Transporting of Arbitrary Data to the Catch Site ###(:link + 1 + + 0 + + -34 + + + 2 + :) ###(:link + 1 + + 0 + + -32 + + + 2 + :) ###(:link + 1 + + 0 + + -27 + + + 2 + :) ###(:link + 1 + + 0 + + -33 + + + 2 + :) ###(:link + 1 + + 0 + + -24 + + + 2 + :) ##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads ###(:link + 1 + + 0 + + -42 + + + 2 + :) ###(:link + 1 + + 0 + + -10 + + + 2 + :) ###(:link + 1 + + 0 + + -20 + + + 2 + :) ###(:link + 1 + + 0 + + -11 + + + 2 + :) ###(:link + 1 + + 0 + + -18 + + + 2 + :) ###(:link + 1 + + 0 + + -8 + + + 2 + :) ##(:link + 1 + + 0 + + -29 + + + 2 + :) ##(:link + 1 + + 0 + + -37 + + + 2 + :), (:link + 1 + + 0 + + -21 + + + 2 + :) ##(:link + 1 + + 0 + + -7 + + + 2 + mod="w":) ##Headers ###(:link + 1 + + 0 + + -25 + + + 2 + :) ###(:link + 1 + + 0 + + -23 + + + 2 + :) ###(:link + 1 + + 0 + + -22 + + + 2 + :) ###(:link + 1 + + 0 + + -19 + + + 2 + :) ###(:link + 1 + + 0 + + -13 + + + 2 + :) ###(:link + 1 + + 0 + + -5 + + + 2 + :) ###(:link + 1 + + 0 + + -14 + + + 2 + :) ###(:link + 1 + + 0 + + -17 + + + 2 + :) ###(:link + 1 + + 0 + + -9 + + + 2 + :) ###(:link + 1 + + 0 + + -6 + + + 2 + :) ###(:link + 1 + + 0 + + -12 + + + 2 + :) #(:link + 1 + + 0 + + 44 + + reno_context + + + + + + + 0 + + + + + + 1 + + + + + <string>Index</string> + + + name_idx + + + + + 2 + :) !!Synopsis `#include <(:link + 1 + + 0 + + -25 + + + 2 + :)> [@namespace boost { (:include + 1 + + 0 + + -5 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -17 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -9 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -19 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -23 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -6 + + + 2 + api pre_indent="4":) (:include + 1 + + 0 + + -22 + + + 2 + api pre_indent="4":) }@] `#include <(:link + 1 + + 0 + + -12 + + + 2 + :)> [@(:include + 1 + + 0 + + -12 + + + 2 + api:)@] !!Class exception (:include + 1 + + 0 + + -40 + + + 2 + :) !!Transporting of Arbitrary Data to the Catch Site (:include + 1 + + 0 + + -34 + + + 2 + :) (:include + 1 + + 0 + + -32 + + + 2 + :) (:include + 1 + + 0 + + -27 + + + 2 + :) (:include + 1 + + 0 + + -33 + + + 2 + :) (:include + 1 + + 0 + + -24 + + + 2 + :) !!Transporting of Exceptions between Threads (:include + 1 + + 0 + + -42 + + + 2 + :) (:include + 1 + + 0 + + -10 + + + 2 + :) (:include + 1 + + 0 + + -20 + + + 2 + :) (:include + 1 + + 0 + + -11 + + + 2 + :) (:include + 1 + + 0 + + -18 + + + 2 + :) (:include + 1 + + 0 + + -8 + + + 2 + :) !!Printing Diagnostic Information (:include + 1 + + 0 + + -29 + + + 2 + :) !!Throwing Exceptions (:include + 1 + + 0 + + -37 + + + 2 + :) !!Acknowledgements Peter Dimov has been continuously influencing the design and evolution of Boost Exception. Also thanks to Tobias Schwinger, Tom Brinkman, Pavel Vozenilek and everyone who participated in the review process. + + + + + 0 + + -44 + + + + 1 + 2 + (:auto !:) (:pagelist fmt="index" except_tags="index,noindex" mod="w":) + + @@ -2419,51 +2419,7 @@ 0 - -38 - - - - 0 - - - - - 0 - - -30 - - - - 0 - - - - - 0 - - -19 - - - - 0 - - - - - 0 - - -34 - - - - 0 - - - - - 0 - - -18 + -6 @@ -2481,178 +2437,6 @@ 0 - - - 0 - - -28 - - - - 0 - - - - - 0 - - -23 - - - - 0 - - - - - 0 - - -27 - - - - 0 - - - - - 0 - - -11 - - - - 7 - 2 - [@class (:link - 1 - - 0 - - -11 - - - 2 - :) { protected: (:include - 1 - - 0 - - -44 - - - 2 - decl pre_indent="4":) (:include - 1 - - 0 - - -39 - - - 2 - decl pre_indent="4":) };@] - - - - - 0 - - -26 - - - - 0 - - - - - 0 - - -32 - - - - 0 - - - - - 0 - - -36 - - - - 0 - - - - - 0 - - -21 - - - - 0 - - - - - 0 - - -20 - - - - 0 - - - - - 0 - - -33 - - - - 0 - - - - - 0 - - -39 - - - - 0 - - - - - 0 - - -40 - - - - 0 - - - - - 0 - - -22 - - - - 0 - - 0 @@ -2664,61 +2448,6 @@ 0 - - - 0 - - -6 - - - - 0 - - - - - 0 - - -41 - - - - 0 - - - - - 0 - - -24 - - - - 0 - - - - - 0 - - -17 - - - - 0 - - - - - 0 - - -14 - - - - 0 - - 0 @@ -2741,6 +2470,17 @@ 0 + + + 0 + + -11 + + + + 0 + + 0 @@ -2749,18 +2489,40 @@ - 3 - 2 - [@template <class Tag,class T> class (:link - 1 - - 0 - - -12 - - - 2 - :) { public: typedef T value_type; error_info( value_type const & ); };@] + 0 + + + + + 0 + + -13 + + + + 0 + + + + + 0 + + -14 + + + + 0 + + + + + 0 + + -15 + + + + 0 @@ -2778,7 +2540,227 @@ 0 - -42 + -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 + + + + 3 + 2 + [@template <class Tag,class T> class (:link + 1 + + 0 + + -34 + + + 2 + :) { public: typedef T value_type; error_info( value_type const & ); };@] + + + + + 0 + + -35 + + + + 0 + + + + + 0 + + -36 @@ -2800,7 +2782,80 @@ 0 - -13 + -38 + + + + 0 + + + + + 0 + + -39 + + + + 0 + + + + + 0 + + -40 + + + + 7 + 2 + [@class (:link + 1 + + 0 + + -40 + + + 2 + :) { protected: (:include + 1 + + 0 + + -28 + + + 2 + decl pre_indent="4":) (:include + 1 + + 0 + + -16 + + + 2 + decl pre_indent="4":) };@] + + + + + 0 + + -41 + + + + 0 + + + + + 0 + + -42 @@ -2829,61 +2884,6 @@ 0 - - - 0 - - -35 - - - - 0 - - - - - 0 - - -29 - - - - 0 - - - - - 0 - - -25 - - - - 0 - - - - - 0 - - -31 - - - - 0 - - - - - 0 - - -15 - - - - 0 - - @@ -2906,36 +2906,108 @@ - 0 - - - - - 0 - - -38 - - - - 0 - - - - - 0 - - -30 - - - - 3 + 11 2 [@(:include 1 0 - -12 + -40 + + + 2 + def:) (:include + 1 + + 0 + + -34 + + + 2 + decl:) typedef (:link + 1 + + 0 + + -34 + + + 2 + :)<struct tag_throw_function,char const *> throw_function; typedef (:link + 1 + + 0 + + -34 + + + 2 + :)<struct tag_throw_file,char const *> throw_file; typedef (:link + 1 + + 0 + + -34 + + + 2 + :)<struct tag_throw_line,int> throw_line;@] + + + + + 0 + + -6 + + + + 11 + 2 + [@(:include + 1 + + 0 + + -8 + + + 2 + decl:) (:include + 1 + + 0 + + -42 + + + 2 + decl:) (:include + 1 + + 0 + + -11 + + + 2 + decl:) (:include + 1 + + 0 + + -20 + + + 2 + decl:) (:include + 1 + + 0 + + -18 2 @@ -2946,7 +3018,7 @@ 0 - -19 + -7 @@ -2957,7 +3029,18 @@ 0 - -34 + -8 + + + + 0 + + + + + 0 + + -9 @@ -2968,7 +3051,157 @@ 0 - -14 + -27 + + + 2 + decl:)@] + + + + + 0 + + -10 + + + + 0 + + + + + 0 + + -11 + + + + 0 + + + + + 0 + + -12 + + + + 5 + 2 + [@(:include + 1 + + 0 + + -21 + + + 2 + decl:) namespace boost { (:include + 1 + + 0 + + -37 + + + 2 + decl:) }@] + + + + + 0 + + -13 + + + + 3 + 2 + [@(:include + 1 + + 0 + + -34 + + + 2 + decl:)@] + + + + + 0 + + -14 + + + + 3 + 2 + [@(:include + 1 + + 0 + + -33 + + + 2 + decl:)@] + + + + + 0 + + -15 + + + + 0 + + + + + 0 + + -16 + + + + 0 + + + + + 0 + + -17 + + + + 5 + 2 + [@(:include + 1 + + 0 + + -34 + + + 2 + def:) (:include + 1 + + 0 + + -32 2 @@ -2990,18 +3223,7 @@ 0 - -7 - - - - 0 - - - - - 0 - - -28 + -19 @@ -3009,179 +3231,6 @@ 2 [@(:include 1 - - 0 - - -18 - - - 2 - decl:)@] - - - - - 0 - - -23 - - - - 0 - - - - - 0 - - -27 - - - - 5 - 2 - [@(:include - 1 - - 0 - - -11 - - - 2 - decl:) (:include - 1 - - 0 - - -23 - - - 2 - decl:)@] - - - - - 0 - - -11 - - - - 0 - - - - - 0 - - -26 - - - - 15 - 2 - [@#include <(:link - 1 - - 0 - - -27 - - - 2 - :)> #include <(:link - 1 - - 0 - - -30 - - - 2 - :)> #include <(:link - 1 - - 0 - - -31 - - - 2 - :)> #include <(:link - 1 - - 0 - - -32 - - - 2 - :)> #include <(:link - 1 - - 0 - - -33 - - - 2 - :)> #include <(:link - 1 - - 0 - - -34 - - - 2 - :)> #include <(:link - 1 - - 0 - - -35 - - - 2 - :)>@] - - - - - 0 - - -32 - - - - 3 - 2 - [@(:include - 1 - - 0 - - -15 - - - 2 - decl:)@] - - - - - 0 - - -36 - - - - 5 - 2 - [@(:include - 1 0 @@ -3189,27 +3238,7 @@ 2 - decl:) namespace boost { (:include - 1 - - 0 - - -7 - - - 2 - decl:) }@] - - - - - 0 - - -21 - - - - 0 + decl:)@] @@ -3227,22 +3256,88 @@ 0 - -33 + -21 - 5 + 0 + + + + + 0 + + -22 + + + + 3 2 [@(:include 1 0 - -12 + -10 2 - def:) (:include + decl:)@] + + + + + 0 + + -23 + + + + 3 + 2 + [@(:include + 1 + + 0 + + -29 + + + 2 + decl:)@] + + + + + 0 + + -24 + + + + 0 + + + + + 0 + + -25 + + + + 15 + 2 + [@#include <(:link + 1 + + 0 + + -23 + + + 2 + :)> #include <(:link 1 0 @@ -3251,7 +3346,195 @@ 2 - decl:)@] + :)> #include <(:link + 1 + + 0 + + -5 + + + 2 + :)> #include <(:link + 1 + + 0 + + -14 + + + 2 + :)> #include <(:link + 1 + + 0 + + -17 + + + 2 + :)> #include <(:link + 1 + + 0 + + -9 + + + 2 + :)> #include <(:link + 1 + + 0 + + -6 + + + 2 + :)>@] + + + + + 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 @@ -3276,39 +3559,6 @@ 0 - - - 0 - - -22 - - - - 0 - - - - - 0 - - -8 - - - - 0 - - - - - 0 - - -6 - - - - 0 - - 0 @@ -3320,83 +3570,6 @@ 0 - - - 0 - - -24 - - - - 0 - - - - - 0 - - -17 - - - - 0 - - - - - 0 - - -14 - - - - 0 - - - - - 0 - - -9 - - - - 0 - - - - - 0 - - -10 - - - - 0 - - - - - 0 - - -12 - - - - 0 - - - - - 0 - - -16 - - - - 0 - - 0 @@ -3408,28 +3581,6 @@ 0 - - - 0 - - -37 - - - - 0 - - - - - 0 - - -13 - - - - 0 - - 0 @@ -3452,166 +3603,6 @@ 0 - - - 0 - - -35 - - - - 11 - 2 - [@(:include - 1 - - 0 - - -22 - - - 2 - decl:) (:include - 1 - - 0 - - -17 - - - 2 - decl:) (:include - 1 - - 0 - - -20 - - - 2 - decl:) (:include - 1 - - 0 - - -19 - - - 2 - decl:) (:include - 1 - - 0 - - -21 - - - 2 - decl:)@] - - - - - 0 - - -29 - - - - 3 - 2 - [@(:include - 1 - - 0 - - -16 - - - 2 - decl:)@] - - - - - 0 - - -25 - - - - 0 - - - - - 0 - - -31 - - - - 11 - 2 - [@(:include - 1 - - 0 - - -11 - - - 2 - def:) (:include - 1 - - 0 - - -12 - - - 2 - decl:) typedef (:link - 1 - - 0 - - -12 - - - 2 - :)<struct tag_throw_function,char const *> throw_function; typedef (:link - 1 - - 0 - - -12 - - - 2 - :)<struct tag_throw_file,char const *> throw_file; typedef (:link - 1 - - 0 - - -12 - - - 2 - :)<struct tag_throw_line,int> throw_line;@] - - - - - 0 - - -15 - - - - 0 - - @@ -3637,379 +3628,6 @@ 0 - - - 0 - - -38 - - - - 0 - - - - - 0 - - -30 - - - - 0 - - - - - 0 - - -19 - - - - 5 - 2 - [@(:link - 1 - - 0 - - -17 - - - 2 - :) (:link - 1 - - 0 - - -19 - - - 2 - :)();@] - - - - - 0 - - -34 - - - - 0 - - - - - 0 - - -18 - - - - 3 - 2 - [@template <class T> ---unspecified--- (:link - 1 - - 0 - - -18 - - - 2 - :)( T const & e );@] - - - - - 0 - - -7 - - - - 5 - 2 - [@#ifdef BOOST_NO_EXCEPTIONS void (:link - 1 - - 0 - - -7 - - - 2 - :)( std::exception const & e ); // user defined #else template <class E> void (:link - 1 - - 0 - - -7 - - - 2 - :)( E const & e ); #endif@] - - - - - 0 - - -28 - - - - 0 - - - - - 0 - - -23 - - - - 5 - 2 - [@std::string (:link - 1 - - 0 - - -23 - - - 2 - :)( boost:: - 1 - - 0 - - -11 - - - 2 - const & x );@] - - - - - 0 - - -27 - - - - 0 - - - - - 0 - - -11 - - - - 3 - 2 - [@class (:link - 1 - - 0 - - -11 - - - 2 - :);@] - - - - - 0 - - -26 - - - - 0 - - - - - 0 - - -32 - - - - 0 - - - - - 0 - - -36 - - - - 0 - - - - - 0 - - -21 - - - - 5 - 2 - [@void (:link - 1 - - 0 - - -21 - - - 2 - :)( (:link - 1 - - 0 - - -17 - - - 2 - :) const & ep ); - - - - - 0 - - -20 - - - - 5 - 2 - [@template <class T> (:link - 1 - - 0 - - -17 - - - 2 - :) (:link - 1 - - 0 - - -20 - - - 2 - :)( T const & e );@] - - - - - 0 - - -33 - - - - 0 - - - - - 0 - - -39 - - - - 3 - 2 - [@(:link - 1 - - 0 - - -39 - - - 2 - mod="m":)();@] - - - - - 0 - - -40 - - - - 0 - - - - - 0 - - -22 - - - - 5 - 2 - [@class (:link - 1 - - 0 - - -22 - - - 2 - :): public std::exception public boost:: - 1 - - 0 - - -11 - - - 2 - { ---unspecified--- };@] - - - - - 0 - - -8 - - - - 0 - - 0 @@ -4025,7 +3643,7 @@ 0 - -41 + -7 @@ -4036,156 +3654,31 @@ 0 - -24 + -8 - 19 + 5 2 - [@#if !defined( BOOST_NO_EXCEPTIONS ) && !defined( BOOST_EXCEPTION_DISABLE ) #include < + [@class (:link 1 0 - -31 + -8 2 - > #include <boost/current_function.hpp> #define + :): public std::exception public boost:: 1 0 - -24 + -40 2 - (x)\ ::boost:: - 1 - - 0 - - -7 - - - 2 - ( ::boost:: - 1 - - 0 - - -16 - - - 2 - (x) <<\ ::boost::(:link - 1 - - 0 - - -31 - - - 2 - |throw_function:)(BOOST_CURRENT_FUNCTION) <<\ ::boost::(:link - 1 - - 0 - - -31 - - - 2 - |throw_file:)(__FILE__) <<\ ::boost::(:link - 1 - - 0 - - -31 - - - 2 - |throw_line:)((int)__LINE__) ) #else #define - 1 - - 0 - - -24 - - - 2 - (x) ::boost:: - 1 - - 0 - - -7 - - - 2 - (x) #endif@] - - - - - 0 - - -17 - - - - 3 - 2 - [@typedef ---unspecified--- (:link - 1 - - 0 - - -17 - - - 2 - :);@] - - - - - 0 - - -14 - - - - 7 - 2 - [@template <class E, class Tag1, class T1, ..., class TagN, class TN> E const & (:link - 1 - - 0 - - -14 - - - 2 - |operator<<:)( E const & x, (:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)< (:link - 1 - - 0 - - -12 - - - 2 - :)<Tag1,T1>, ..., (:link - 1 - - 0 - - -12 - - - 2 - :)<TagN,TN> > const & v );@] + { ---unspecified--- };@] @@ -4206,39 +3699,6 @@ -10 - - 0 - - - - - 0 - - -12 - - - - 3 - 2 - [@template <class Tag,class T> class (:link - 1 - - 0 - - -12 - - - 2 - :);@] - - - - - 0 - - -16 - - 3 2 @@ -4247,29 +3707,49 @@ 0 - -16 + -10 2 - :)( T const & x );@] + :)( T const & e );@] 0 - -42 + -11 - 0 + 5 + 2 + [@template <class T> (:link + 1 + + 0 + + -42 + + + 2 + :) (:link + 1 + + 0 + + -11 + + + 2 + :)( T const & e );@] 0 - -37 + -12 @@ -4284,34 +3764,14 @@ - 5 - 2 - [@template <class E, class Tag, class T> E const & (:link - 1 - - 0 - - -13 - - - 2 - |operator<<:)( E const & x, (:link - 1 - - 0 - - -12 - - - 2 - :)<Tag,T> const & v );@] + 0 0 - -43 + -14 @@ -4322,7 +3782,324 @@ 0 - -44 + -15 + + + + 0 + + + + + 0 + + -16 + + + + 3 + 2 + [@(:link + 1 + + 0 + + -16 + + + 2 + mod="m":)();@] + + + + + 0 + + -17 + + + + 0 + + + + + 0 + + -18 + + + + 5 + 2 + [@void (:link + 1 + + 0 + + -18 + + + 2 + :)( (:link + 1 + + 0 + + -42 + + + 2 + :) const & ep ); + + + + + 0 + + -19 + + + + 0 + + + + + 0 + + -20 + + + + 5 + 2 + [@(:link + 1 + + 0 + + -42 + + + 2 + :) (:link + 1 + + 0 + + -20 + + + 2 + :)();@] + + + + + 0 + + -21 + + + + 19 + 2 + [@#if !defined( BOOST_NO_EXCEPTIONS ) && !defined( BOOST_EXCEPTION_DISABLE ) #include < + 1 + + 0 + + -5 + + + 2 + > #include <boost/current_function.hpp> #define + 1 + + 0 + + -21 + + + 2 + (x)\ ::boost:: + 1 + + 0 + + -37 + + + 2 + ( ::boost:: + 1 + + 0 + + -24 + + + 2 + (x) <<\ ::boost::(:link + 1 + + 0 + + -5 + + + 2 + |throw_function:)(BOOST_CURRENT_FUNCTION) <<\ ::boost::(:link + 1 + + 0 + + -5 + + + 2 + |throw_file:)(__FILE__) <<\ ::boost::(:link + 1 + + 0 + + -5 + + + 2 + |throw_line:)((int)__LINE__) ) #else #define + 1 + + 0 + + -21 + + + 2 + (x) ::boost:: + 1 + + 0 + + -37 + + + 2 + (x) #endif@] + + + + + 0 + + -22 + + + + 0 + + + + + 0 + + -23 + + + + 0 + + + + + 0 + + -24 + + + + 3 + 2 + [@template <class T> ---unspecified--- (:link + 1 + + 0 + + -24 + + + 2 + :)( T const & x );@] + + + + + 0 + + -25 + + + + 0 + + + + + 0 + + -26 + + + + 0 + + + + + 0 + + -27 + + + + 7 + 2 + [@template <class E, class Tag1, class T1, ..., class TagN, class TN> E const & (:link + 1 + + 0 + + -27 + + + 2 + mod="/":)( E const & x, (:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)< (:link + 1 + + 0 + + -34 + + + 2 + :)<Tag1,T1>, ..., (:link + 1 + + 0 + + -34 + + + 2 + :)<TagN,TN> > const & v );@] + + + + + 0 + + -28 @@ -4333,7 +4110,7 @@ 0 - -44 + -28 2 @@ -4342,7 +4119,7 @@ 0 - -44 + -28 2 @@ -4351,24 +4128,13 @@ 0 - -11 + -40 2 :) const & x );@] - - - 0 - - -35 - - - - 0 - - 0 @@ -4377,14 +4143,34 @@ - 0 + 5 + 2 + [@std::string (:link + 1 + + 0 + + -29 + + + 2 + :)( boost::(:link + 1 + + 0 + + -40 + + + 2 + :) const & x );@] 0 - -25 + -30 @@ -4406,7 +4192,38 @@ 0 - -15 + -32 + + + + 5 + 2 + [@template <class E, class Tag, class T> E const & (:link + 1 + + 0 + + -32 + + + 2 + mod="/":)( E const & x, (:link + 1 + + 0 + + -34 + + + 2 + :)<Tag,T> const & v );@] + + + + + 0 + + -33 @@ -4417,13 +4234,187 @@ 0 - -15 + -33 2 :)( E const & x );@] + + + 0 + + -34 + + + + 3 + 2 + [@template <class Tag,class T> class (:link + 1 + + 0 + + -34 + + + 2 + :);@] + + + + + 0 + + -35 + + + + 0 + + + + + 0 + + -36 + + + + 0 + + + + + 0 + + -37 + + + + 5 + 2 + [@#ifdef BOOST_NO_EXCEPTIONS void (:link + 1 + + 0 + + -37 + + + 2 + :)( std::exception const & e ); // user defined #else template <class E> void (:link + 1 + + 0 + + -37 + + + 2 + :)( E const & e ); #endif@] + + + + + 0 + + -38 + + + + 0 + + + + + 0 + + -39 + + + + 0 + + + + + 0 + + -40 + + + + 3 + 2 + [@class (:link + 1 + + 0 + + -40 + + + 2 + :);@] + + + + + 0 + + -41 + + + + 0 + + + + + 0 + + -42 + + + + 3 + 2 + [@typedef ---unspecified--- (:link + 1 + + 0 + + -42 + + + 2 + :);@] + + + + + 0 + + -43 + + + + 0 + + + + + 0 + + -44 + + + + 0 + + @@ -4445,75 +4436,6 @@ -5 - - 0 - - - - - 0 - - -38 - - - - 11 - 2 - (:auto !!!:) Here is how cloning can be enabled in a throw-expression (15.1): [@#include <(:link - 1 - - 0 - - -33 - - - 2 - :)> #include <stdio.h> #include <errno.h> typedef boost::error_info<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link - 1 - - 0 - - -11 - - - 2 - :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw boost::(:link - 1 - - 0 - - -18 - - - 2 - :)(file_read_error()) << errno_info(errno); }@] Of course, (:link - 1 - - 0 - - -18 - - - 2 - :) may be used with any exception type; there is no requirement that it should derive from boost::(:link - 1 - - 0 - - -11 - - - 2 - :). - - - - - 0 - - -30 - - 1 2 @@ -4524,146 +4446,7 @@ 0 - -19 - - - - 29 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link - 1 - - 0 - - -19 - - - 2 - :) function must not be called outside of a catch block. !!!!Returns: * An (:link - 1 - - 0 - - -17 - - - 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 - - -17 - - - 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 - - -19 - - - 2 - :) refer to the same exception object. * Correct implementation of (:link - 1 - - 0 - - -19 - - - 2 - :) may require compiler support, unless (:link - 1 - - 0 - - -18 - - - 2 - :) was used at the time the currently handled exception object was passed to throw. If (:link - 1 - - 0 - - -18 - - - 2 - :) was not used, and if the compiler does not provide the necessary support, then (:link - 1 - - 0 - - -19 - - - 2 - :) may return an (:link - 1 - - 0 - - -17 - - - 2 - :) that refers to an instance of (:link - 1 - - 0 - - -22 - - - 2 - :). In this case, if the original exception object derives from boost::(:link - 1 - - 0 - - -11 - - - 2 - :), then the boost::(:link - 1 - - 0 - - -11 - - - 2 - :) sub-object of the (:link - 1 - - 0 - - -22 - - - 2 - :) object is initialized by the boost::(:link - 1 - - 0 - - -11 - - - 2 - :) copy constructor. - - - - - 0 - - -34 + -6 @@ -4672,109 +4455,6 @@ (:auto !!:) !!!Synopsis (:include synopsis:) - - - 0 - - -18 - - - - 21 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: T must be a class with an accessible no-throw copy constructor. !!!!Returns: An object of ''unspecified'' type which derives publicly from T. That is, the returned object can be intercepted by a catch(T &). !!!!Description: This function is designed to be used directly in a throw-expression to enable the (:link - 1 - - 0 - - -17 - - - 2 - :) support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link - 1 - - 0 - - -18 - - - 2 - :)(my_exception());@] Unless (:link - 1 - - 0 - - -18 - - - 2 - :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link - 1 - - 0 - - -19 - - - 2 - :) may return an (:link - 1 - - 0 - - -17 - - - 2 - :) which refers to an instance of (:link - 1 - - 0 - - -22 - - - 2 - :). See (:link - 1 - - 0 - - -19 - - - 2 - :) for details. !!!!Note: Instead of using the throw keyword directly, it is preferable to call boost::(:link - 1 - - 0 - - -7 - - - 2 - :). This is guaranteed to throw an exception that derives from boost::(:link - 1 - - 0 - - -11 - - - 2 - :) and supports the (:link - 1 - - 0 - - -17 - - - 2 - :) functionality. - - 0 @@ -4783,107 +4463,63 @@ - 13 + 15 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must derive publicly from std::exception. !!!!Effects: * If BOOST_NO_EXCEPTIONS is not defined, boost::(:link + (: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 - -7 + -33 2 - :)(e) is equivalent to throw boost::(:link + :) function template can be called with any exception type. If BOOST_NO_RTTI is defined, (:link 1 0 - -18 + -33 2 - :)(boost::(:link + :) can be used only with objects of type boost::(:link 1 0 - -16 + -40 2 - :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link + :). '''BOOST_EXCEPTION_DISABLE''' By default, (:link 1 0 - -7 + -10 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 + :) and (:link 1 0 - -7 + -24 2 - :) are allowed to assume that the function never returns; therefore, if the user-defined (:link + :) are integrated directly in the (:link 1 0 - -7 + -37 2 - :) returns, the behavior is undefined. - - - - - 0 - - -28 - - - - 1 - 2 - (:auto !!!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -23 - - - - 7 - 2 - (:auto !!!:) (:include synopsis:) !!!!Returns: This function iterates over all data objects stored in the boost::(:link - 1 - - 0 - - -11 - - - 2 - :) through (:link - 1 - - 0 - - -13 - - - 2 - |operator<<:). The returned string is constructed by converting each data object to string and then concatenating these strings together. When the (:link + :) 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 @@ -4892,320 +4528,6 @@ 2 - :)<Tag,T> template is instantiated, the system attempts overload resolution for an unqualified call to to_string(x), where x is of type T. If this is successful, the to_string overload is expected to return std::string and is used to convert objects of type T to string. Otherwise, the system attempts overload resolution for s << x, where s is a std::ostringstream and x is of type T. If this is successful, the operator<< overload is used to convert objects of type T to string. Otherwise the system is unable to convert objects of type T to string, and an unspecified stub string value is used without issuing a compile error. !!!!Notes: *The format of the returned string is unspecified. *The returned string is ''not'' user-friendly. *If dynamic_cast<std::exception const *>(&x) is not null, the returned string includes the output from std::exception::what. *The returned string may include additional platform-specific diagnostic information. - - - - - 0 - - -27 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -11 - - - - 13 - 2 - (:auto !!!:) (:include synopsis:) Class boost::(:link - 1 - - 0 - - -11 - - - 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 - - -11 - - - 2 - :) can store data of arbitrary types, using the (:link - 1 - - 0 - - -12 - - - 2 - :) wrapper and (:link - 1 - - 0 - - -13 - - - 2 - |operator<<:). To retrieve data from a boost::(:link - 1 - - 0 - - -11 - - - 2 - :) object, use the (:link - 1 - - 0 - - -15 - - - 2 - :) function template. - - - - - 0 - - -26 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -32 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -36 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -21 - - - - 1 - 2 - (:auto !!!:) (:include synopsis:) !!!!Precondition: ep shall not be null. !!!!Throws: The exception to which ep refers. - - - - - 0 - - -20 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Effects: As if [@try { throw - 1 - - 0 - - -18 - - - 2 - (e); } catch(...) { return (:link - 1 - - 0 - - -19 - - - 2 - :)(); }@] - - - - - 0 - - -33 - - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - - 0 - - -39 - - - - 3 - 2 - (:auto !!!:) (:include decl:) !!!!Effects: Frees all resources associated with a boost::(:link - 1 - - 0 - - -11 - - - 2 - :) object. !!!!Throws: Nothing. - - - - - 0 - - -40 - - - - 17 - 2 - (:auto !!!:) The following example demonstrates how errno can be stored in exception objects using Boost Exception: [@#include <(:link - 1 - - 0 - - -26 - - - 2 - :)> #include <errno.h> #include <iostream> typedef boost::(:link - 1 - - 0 - - -12 - - - 2 - :)<struct tag_errno,int> errno_info; //(1) class my_error: public boost::(:link - 1 - - 0 - - -11 - - - 2 - :), public std::exception { }; //(2) void f() { throw my_error() << errno_info(errno); //(3) } @] First, we instantiate the (:link - 1 - - 0 - - -12 - - - 2 - :) template using a unique identifier -- tag_errno, and the type of the info it identifies -- int. This provides compile-time type safety for the various values stored in exception objects. Second, we define class my_error, which derives from boost::(:link - 1 - - 0 - - -11 - - - 2 - :). Finally, (3) illustrates how the typedef from (1) can be used with (:link - 1 - - 0 - - -13 - - - 2 - |operator<<:) to store values in exception objects at the point of the throw. The stored errno value can be recovered at a later time like this: [@// ...continued void g() { try { f(); } catch( my_error & x ) { if( boost::shared_ptr<int const> err=boost::(:link - 1 - - 0 - - -15 - - - 2 - :)<errno_info>(x) ) std::cerr << "Error code: " << *err; } }@] The (:link - 1 - - 0 - - -15 - - - 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, the returned (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:) will point to it; otherwise an empty (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:) is returned. - - - - - 0 - - -22 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) This type is used by the (:link - 1 - - 0 - - -17 - - - 2 - :) support in Boost Exception. Please see (:link - 1 - - 0 - - -19 - - - 2 :). @@ -5217,36 +4539,9 @@ - 11 + 5 2 - (:auto !!:) All exception types that derive from boost::(:link - 1 - - 0 - - -11 - - - 2 - :) can be used as type-safe containers of arbitrary data objects, while complying with the no-throw requirements (15.5.1) of the ANSI C++ standard for exception types. Data can be added to a boost::(:link - 1 - - 0 - - -11 - - - 2 - :) at the time of the throw, or at a later time. (:include - 1 - - 0 - - -40 - - - 2 - :) (:include + (:auto !!!:) (:include synopsis:) This type is used by the (:link 1 0 @@ -5255,299 +4550,18 @@ 2 - :) (:include + :) support in Boost Exception. Please see (:link 1 0 - -41 - - - 2 - :) - - - - - 0 - - -6 - - - - 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 - - -18 - - - 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 - - -7 - - - 2 - :) are guaranteed to derive from boost::(:link - 1 - - 0 - - -11 - - - 2 - :) and to support cloning. (:include - 1 - - 0 - - -38 - - - 2 - :) (:include - 1 - - 0 - - -43 - - - 2 - :) - - - - - 0 - - -41 - - - - 13 - 2 - (:auto !!!:) The code snippet below demonstrates how boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:) can be used to bundle the name of the function that failed, together with the reported errno so that they can be added to exception objects more conveniently together: [@#include <(:link - 1 - - 0 - - -34 - - - 2 - :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> #include <errno.h> typedef boost::(:link - 1 - - 0 - - -12 - - - 2 - :)<struct tag_file_name,std::string> file_name_info; typedef boost::(:link - 1 - - 0 - - -12 - - - 2 - :)<struct tag_function,char const *> function_info; typedef boost::(:link - 1 - - 0 - - -12 - - - 2 - :)<struct tag_errno,int> errno_info; typedef boost::tuple<function_info,errno_info> clib_failure; class file_open_error: public boost::(:link - 1 - - 0 - - -11 - - - 2 - :) { }; boost::shared_ptr<FILE> file_open( char const * name, char const * mode ) { if( FILE * f=fopen(name,mode) ) return boost::shared_ptr<FILE>(f,fclose); else throw file_open_error() << file_name_info(name) << clib_failure("fopen",errno); }@] Note that the members of a boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:) are stored separately in exception objects; they can only be retrieved individually, using (:link - 1 - - 0 - - -15 + -20 2 :). - - - 0 - - -24 - - - - 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 - - -7 - - - 2 - . To recover this information at the catch site, use - 1 - - 0 - - -15 - - - 2 - ; the information is also included in the message returned by - 1 - - 0 - - -23 - - - 2 - . - - - - - 0 - - -17 - - - - 17 - 2 - (:auto !!!:) (:include synopsis:) The (:link - 1 - - 0 - - -17 - - - 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 - - -17 - - - 2 - :)'s operations do not throw. Two instances of (:link - 1 - - 0 - - -17 - - - 2 - :) are equivalent and compare equal if and only if they refer to the same exception. The default constructor of (:link - 1 - - 0 - - -17 - - - 2 - :) produces the null value of the type. The null value is equivalent only to itself. !!!!Thread safety * It is legal for multiple threads to hold (:link - 1 - - 0 - - -17 - - - 2 - :) references to the same exception object. * It is illegal for multiple threads to modify the same (:link - 1 - - 0 - - -17 - - - 2 - :) object concurrently. * While calling (:link - 1 - - 0 - - -19 - - - 2 - :) makes a copy of the current exception object, it is still possible for the two copies to share internal state. Therefore, in general it is not safe to call (:link - 1 - - 0 - - -21 - - - 2 - :) concurrently to throw the same exception object into multiple threads. - - - - - 0 - - -14 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link - 1 - - 0 - - -11 - - - 2 - :), or a type that derives (indirectly) from boost::(:link - 1 - - 0 - - -11 - - - 2 - :). !!!!Effects: Equivalent to x << v.(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements|get:)<0>() << ... << v.(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements|get:)<N>(). !!!!Returns: x. (:include throws:) - - 0 @@ -5555,742 +4569,6 @@ -9 - - 27 - 2 - (:auto !!:) Some exception hierarchies can not be modified to make boost::(:link - 1 - - 0 - - -11 - - - 2 - :) a base type. In this case, the (:link - 1 - - 0 - - -16 - - - 2 - :) function template can be used to make exception objects derive from boost::(:link - 1 - - 0 - - -11 - - - 2 - :) anyway. Here is an example: [@#include <(:link - 1 - - 0 - - -26 - - - 2 - :)> #include <stdexcept> typedef boost::(:link - 1 - - 0 - - -12 - - - 2 - :)<struct tag_std_range_min,size_t> std_range_min; typedef boost::(:link - 1 - - 0 - - -12 - - - 2 - :)<struct tag_std_range_max,size_t> std_range_max; typedef boost::(:link - 1 - - 0 - - -12 - - - 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 - - -16 - - - 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 - - -16 - - - 2 - :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link - 1 - - 0 - - -11 - - - 2 - :) and T. This makes it possible to use (:link - 1 - - 0 - - -13 - - - 2 - |operator<<:) to store additional information in the exception object. The exception can be intercepted as T &, so existing exception handling will not break. It can also be intercepted as boost::(:link - 1 - - 0 - - -11 - - - 2 - :) &, so that (:link - 1 - - 0 - - -8 - - - 2 - |more information can be added to the exception at a later time:). - - - - - 0 - - -10 - - - - 17 - 2 - (:auto !!:) Boost Exception provides a namespace-scope function (:link - 1 - - 0 - - -23 - - - 2 - :) which takes a boost::(:link - 1 - - 0 - - -11 - - - 2 - :). The returned string contains: *the string representation of all data objects added to the boost::(:link - 1 - - 0 - - -11 - - - 2 - :) through (:link - 1 - - 0 - - -13 - - - 2 - |operator<<:); *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 - - -26 - - - 2 - :)> #include <iostream> void f(); //throws unknown types that derive from boost::(:link - 1 - - 0 - - -11 - - - 2 - :). void g() { try { f(); } catch( boost::(:link - 1 - - 0 - - -11 - - - 2 - :) & e ) { std::cerr << (:link - 1 - - 0 - - -23 - - - 2 - :)(e); } }@] - - - - - 0 - - -12 - - - - 25 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: T must have accessible copy constructor and must not be a reference (there is no requirement that T's copy constructor does not throw.) !!!!Description: This class template is used to associate a Tag type with a value type T. Objects of type (:link - 1 - - 0 - - -12 - - - 2 - :)<Tag,T> can be passed to (:link - 1 - - 0 - - -13 - - - 2 - |operator<<:) to be stored in objects of type boost::(:link - 1 - - 0 - - -11 - - - 2 - :). !!!!Note: The header <(:link - 1 - - 0 - - -30 - - - 2 - :)> provides a declaration of the (:link - 1 - - 0 - - -12 - - - 2 - :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, like this: [@#include <(:link - 1 - - 0 - - -30 - - - 2 - :)> typedef boost::(:link - 1 - - 0 - - -12 - - - 2 - :)<struct tag_errno,int> errno_info;@] Of course, to actually add an (:link - 1 - - 0 - - -12 - - - 2 - :) object to (:link - 1 - - 0 - - -11 - - - 2 - mod="p":) using (:link - 1 - - 0 - - -13 - - - 2 - |operator<<:), or to retrieve it using (:link - 1 - - 0 - - -15 - - - 2 - :), you must first #include <(:link - 1 - - 0 - - -33 - - - 2 - :)>. - - - - - 0 - - -16 - - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: T must be a class with an accessible no-throw copy constructor as per (15.5.1). !!!!Returns: * If T derives from boost::(:link - 1 - - 0 - - -11 - - - 2 - :), the returned object is of type T and is a copy of x. * Otherwise, the returned object is of an unspecified type that derives publicly from both T and boost::(:link - 1 - - 0 - - -11 - - - 2 - :). The T sub-object is initialized from x by the T copy constructor. !!!!Throws: Nothing. - - - - - 0 - - -42 - - - - 21 - 2 - (:auto !!!:) Sometimes the throw site does not have all the information that is needed at the catch site to make sense of what went wrong. Here is an example: [@#include <stdio.h> #include <string> class file_read_error { public: explicit file_read_error( std::string const & fn ): fn_(fn) { }; std::string const & file_name() const { return fn_; } private: std::string fn_; }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw file_read_error("????"); }@] We have defined an exception class file_read_error which can store a file name, so that when we catch a file_read_error object, we know which file the failure is related to. However, the file_read function does not have the file name at the time of the throw; all it has is a FILE handle. One possible solution is to not use FILE handles directly. We could have our own class file which stores both a FILE handle and a file name, and pass that to file_read. However, this could be problematic if we communicate with 3rd party code that does not use our class file (probably because they have their own similar class.) A better solution is to make class file_read_error derive (possibly indirectly) from boost::(:link - 1 - - 0 - - -11 - - - 2 - :), and free the file_read function from the burden of storing the file name in exceptions it throws: [@#include <(:link - 1 - - 0 - - -26 - - - 2 - :)> #include <stdio.h> #include <errno.h> typedef boost::(:link - 1 - - 0 - - -12 - - - 2 - :)<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link - 1 - - 0 - - -11 - - - 2 - :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw file_read_error() << errno_info(errno); }@] If file_read detects a failure, it throws an exception which contains the information that is available at the time, namely the errno. Other relevant information, such as the file name, can be added in a context higher up the call stack, where it is known naturally: [@#include <(:link - 1 - - 0 - - -26 - - - 2 - :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> typedef boost::(:link - 1 - - 0 - - -12 - - - 2 - :)<struct tag_file_name,std::string> file_name_info; boost::shared_ptr<FILE> file_open( char const * file_name, char const * mode ); void file_read( FILE * f, void * buffer, size_t size ); void parse_file( char const * file_name ) { boost::shared_ptr<FILE> f = file_open(file_name,"rb"); assert(f); try { char buf[1024]; file_read( f.get(), buf, sizeof(buf) ); } catch( boost::(:link - 1 - - 0 - - -11 - - - 2 - :) & e ) { e << file_name_info(file_name); throw; } }@] The above function is (almost) exception-neutral -- if an exception is emitted by any function call within the try block, parse_file does not need to do any real work, but it intercepts any boost::(:link - 1 - - 0 - - -11 - - - 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 - - -11 - - - 2 - :) object is that the file name is relevant to any failure that occurs in parse_file, ''even if the failure is unrelated to file I/O''. As usual, the stored data can be retrieved using (:link - 1 - - 0 - - -15 - - - 2 - :). - - - - - 0 - - -37 - - - - 0 - - - - - 0 - - -13 - - - - 7 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link - 1 - - 0 - - -11 - - - 2 - :), or a type that derives (indirectly) from boost::(:link - 1 - - 0 - - -11 - - - 2 - :). !!!!Effects: Stores a copy of v into x. If x already contains data of type (:link - 1 - - 0 - - -12 - - - 2 - :)<Tag,T>, that data is overwritten. !!!!Returns: x. (:include throws:) - - - - - 0 - - -43 - - - - 37 - 2 - (:auto !!!:) When you catch an exception, you can call (:link - 1 - - 0 - - -19 - - - 2 - :) to get an (:link - 1 - - 0 - - -17 - - - 2 - :) object: [@#include <(:link - 1 - - 0 - - -35 - - - 2 - :)> #include <boost/thread.hpp> #include <boost/bind.hpp> void do_work(); //throws cloning-enabled boost::(:link - 1 - - 0 - - -11 - - - 2 - :)s void worker_thread( boost::(:link - 1 - - 0 - - -17 - - - 2 - :) & error ) { try { do_work(); error = boost::(:link - 1 - - 0 - - -17 - - - 2 - :)(); } catch( ... ) { error = boost::(:link - 1 - - 0 - - -19 - - - 2 - :)(); } }@] In the above example, note that (:link - 1 - - 0 - - -19 - - - 2 - :) captures the original type of the exception object. The exception can be thrown again using the (:link - 1 - - 0 - - -21 - - - 2 - :) function: [@// ...continued void work() { boost::(:link - 1 - - 0 - - -17 - - - 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 - - -21 - - - 2 - :)(error); }@] Note that (:link - 1 - - 0 - - -19 - - - 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 - - -17 - - - 2 - :) points to an instance of std::bad_alloc, or * if (:link - 1 - - 0 - - -18 - - - 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 - - -17 - - - 2 - :) points to an instance of (:link - 1 - - 0 - - -22 - - - 2 - :). Regardless, the use of (:link - 1 - - 0 - - -19 - - - 2 - :) and (:link - 1 - - 0 - - -21 - - - 2 - :) in the above examples is well-formed. - - - - - 0 - - -44 - - - - 7 - 2 - (:auto !!!:) (:include decl:) !!!!Effects: * Default constructor: initializes an empty boost::(:link - 1 - - 0 - - -11 - - - 2 - :) object. * Copy constructor: initializes a boost::(:link - 1 - - 0 - - -11 - - - 2 - :) object which shares ownership with x of all data added through (:link - 1 - - 0 - - -13 - - - 2 - |operator<<:), including data that is added at a future time. !!!!Throws: Nothing. - - - - - 0 - - -35 - - 1 2 @@ -6301,96 +4579,167 @@ 0 - -29 + -10 + + + + 21 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: T must be a class with an accessible no-throw copy constructor. !!!!Returns: An object of ''unspecified'' type which derives publicly from T. That is, the returned object can be intercepted by a catch(T &). !!!!Description: This function is designed to be used directly in a throw-expression to enable the (:link + 1 + + 0 + + -42 + + + 2 + :) support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link + 1 + + 0 + + -10 + + + 2 + :)(my_exception());@] Unless (:link + 1 + + 0 + + -10 + + + 2 + :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link + 1 + + 0 + + -20 + + + 2 + :) may return an (:link + 1 + + 0 + + -42 + + + 2 + :) which refers to an instance of (:link + 1 + + 0 + + -8 + + + 2 + :). See (:link + 1 + + 0 + + -20 + + + 2 + :) for details. !!!!Note: Instead of using the throw keyword directly, it is preferable to call boost::(:link + 1 + + 0 + + -37 + + + 2 + :). This is guaranteed to throw an exception that derives from boost::(:link + 1 + + 0 + + -40 + + + 2 + :) and supports the (:link + 1 + + 0 + + -42 + + + 2 + :) functionality. + + + + + 0 + + -11 + + + + 5 + 2 + (:auto !!!:) (:include synopsis:) !!!!Effects: As if [@try { throw + 1 + + 0 + + -10 + + + 2 + (e); } catch(...) { return (:link + 1 + + 0 + + -20 + + + 2 + :)(); }@] + + + + + 0 + + -12 1 2 - (:auto !!!:) !!!Synopsis (:include synopsis:) + (:auto !!:) !!!Synopsis (:include synopsis:) 0 - -25 + -13 - 15 + 1 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. Defining either macro does not have an observable degrading effect on the library functionality, except for the following: ->By default, the - 1 - - 0 - - -15 - - - 2 - function template can be called with any exception type. If BOOST_NO_RTTI is defined, - 1 - - 0 - - -15 - - - 2 - can be used only with objects of type boost:: - 1 - - 0 - - -11 - - - 2 - . ''Note: the configuration where BOOST_NO_RTTI is defined but BOOST_NO_TYPEID is not defined is specific for MSVC compilers; it reduces RTTI overhead without fully disabling std::type_info. For most (all?) other compilers, to use Boost Exception without RTTI, both BOOST_NO_RTTI and BOOST_NO_TYPEID must be defined.'' '''BOOST_EXCEPTION_DISABLE''' By default, - 1 - - 0 - - -18 - - - 2 - and - 1 - - 0 - - -16 - - - 2 - are integrated directly in the - 1 - - 0 - - -7 - - - 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 - 1 - - 0 - - -36 - - - 2 - . + (:auto !!:) !!!Synopsis (:include synopsis:) 0 - -31 + -14 @@ -6407,54 +4756,18 @@ - 13 + 21 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: * ErrorInfo must be an instance of the (:link + (:auto !!!:) Sometimes the throw site does not have all the information that is needed at the catch site to make sense of what went wrong. Here is an example: [@#include <stdio.h> #include <string> class file_read_error { public: explicit file_read_error( std::string const & fn ): fn_(fn) { }; std::string const & file_name() const { return fn_; } private: std::string fn_; }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw file_read_error("????"); }@] We have defined an exception class file_read_error which can store a file name, so that when we catch a file_read_error object, we know which file the failure is related to. However, the file_read function does not have the file name at the time of the throw; all it has is a FILE handle. One possible solution is to not use FILE handles directly. We could have our own class file which stores both a FILE handle and a file name, and pass that to file_read. However, this could be problematic if we communicate with 3rd party code that does not use our class file (probably because they have their own similar class.) A better solution is to make class file_read_error derive (possibly indirectly) from boost::(:link 1 0 - -12 + -40 2 - :) template. * E must be polymorphic. * The (:link - 1 - - 0 - - -15 - - - 2 - :) function must not be called outside of a catch block. !!!!Returns: * If dynamic_cast<boost::(:link - 1 - - 0 - - -11 - - - 2 - :) const *>(&x) is 0, or if x does not store an object of type ErrorInfo, the returned value is an empty shared_ptr. * Otherwise, the returned shared_ptr points to the stored value (use (:link - 1 - - 0 - - -13 - - - 2 - |operator<<:) to store values in exception objects.) The shared_ptr is valid even after x has been destroyed. !!!!Throws: Nothing. !!!!Note: The interface of - 1 - - 0 - - -15 - - - 2 - may be affected by the build + :), and free the file_read function from the burden of storing the file name in exceptions it throws: [@#include <(:link 1 0 @@ -6463,9 +4776,1687 @@ 2 + :)> #include <stdio.h> #include <errno.h> typedef boost::(:link + 1 + + 0 + + -34 + + + 2 + :)<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link + 1 + + 0 + + -40 + + + 2 + :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw file_read_error() << errno_info(errno); }@] If file_read detects a failure, it throws an exception which contains the information that is available at the time, namely the errno. Other relevant information, such as the file name, can be added in a context higher up the call stack, where it is known naturally: [@#include <(:link + 1 + + 0 + + -25 + + + 2 + :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> typedef boost::(:link + 1 + + 0 + + -34 + + + 2 + :)<struct tag_file_name,std::string> file_name_info; boost::shared_ptr<FILE> file_open( char const * file_name, char const * mode ); void file_read( FILE * f, void * buffer, size_t size ); void parse_file( char const * file_name ) { boost::shared_ptr<FILE> f = file_open(file_name,"rb"); assert(f); try { char buf[1024]; file_read( f.get(), buf, sizeof(buf) ); } catch( boost::(:link + 1 + + 0 + + -40 + + + 2 + :) & e ) { e << file_name_info(file_name); throw; } }@] The above function is (almost) exception-neutral -- if an exception is emitted by any function call within the try block, parse_file does not need to do any real work, but it intercepts any boost::(:link + 1 + + 0 + + -40 + + + 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 + + -40 + + + 2 + :) object is that the file name is relevant to any failure that occurs in parse_file, ''even if the failure is unrelated to file I/O''. As usual, the stored data can be retrieved using (:link + 1 + + 0 + + -33 + + + 2 + :). + + + + + 0 + + -16 + + + + 3 + 2 + (:auto !!!:) (:include decl:) !!!!Effects: Frees all resources associated with a boost::(:link + 1 + + 0 + + -40 + + + 2 + :) object. !!!!Throws: Nothing. + + + + + 0 + + -17 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -18 + + + + 1 + 2 + (:auto !!!:) (:include synopsis:) !!!!Precondition: ep shall not be null. !!!!Throws: The exception to which ep refers. + + + + + 0 + + -19 + + + + 1 + 2 + (:auto !!!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -20 + + + + 29 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link + 1 + + 0 + + -20 + + + 2 + :) function must not be called outside of a catch block. !!!!Returns: * An (:link + 1 + + 0 + + -42 + + + 2 + :) that refers to the currently handled exception or a copy of the currently handled exception. * If the function needs to allocate memory and the attempt fails, it returns an (:link + 1 + + 0 + + -42 + + + 2 + :) that refers to an instance of std::bad_alloc. !!!!Throws: Nothing. !!!!Notes: * It is unspecified whether the return values of two successive calls to (:link + 1 + + 0 + + -20 + + + 2 + :) refer to the same exception object. * Correct implementation of (:link + 1 + + 0 + + -20 + + + 2 + :) may require compiler support, unless (:link + 1 + + 0 + + -10 + + + 2 + :) was used at the time the currently handled exception object was passed to throw. If (:link + 1 + + 0 + + -10 + + + 2 + :) was not used, and if the compiler does not provide the necessary support, then (:link + 1 + + 0 + + -20 + + + 2 + :) may return an (:link + 1 + + 0 + + -42 + + + 2 + :) that refers to an instance of (:link + 1 + + 0 + + -8 + + + 2 + :). In this case, if the original exception object derives from boost::(:link + 1 + + 0 + + -40 + + + 2 + :), then the boost::(:link + 1 + + 0 + + -40 + + + 2 + :) sub-object of the (:link + 1 + + 0 + + -8 + + + 2 + :) object is initialized by the boost::(:link + 1 + + 0 + + -40 + + + 2 + :) copy constructor. + + + + + 0 + + -21 + + + + 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 + + -37 + + + 2 + . To recover this information at the catch site, use + 1 + + 0 + + -33 + + + 2 + ; the information is also included in the message returned by + 1 + + 0 + + -29 + + + 2 . + + + 0 + + -22 + + + + 1 + 2 + (:auto !!!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -23 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -24 + + + + 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 + + -40 + + + 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 + + -40 + + + 2 + :). The T sub-object is initialized from x by the T copy constructor. !!!!Throws: Nothing. + + + + + 0 + + -25 + + + + 1 + 2 + (:auto !!:) !!!Synopsis (:include synopsis:) + + + + + 0 + + -26 + + + + 37 + 2 + (:auto !!!:) When you catch an exception, you can call (:link + 1 + + 0 + + -20 + + + 2 + :) to get an (:link + 1 + + 0 + + -42 + + + 2 + :) object: [@#include <(:link + 1 + + 0 + + -6 + + + 2 + :)> #include <boost/thread.hpp> #include <boost/bind.hpp> void do_work(); //throws cloning-enabled boost::(:link + 1 + + 0 + + -40 + + + 2 + :)s void worker_thread( boost::(:link + 1 + + 0 + + -42 + + + 2 + :) & error ) { try { do_work(); error = boost::(:link + 1 + + 0 + + -42 + + + 2 + :)(); } catch( ... ) { error = boost::(:link + 1 + + 0 + + -20 + + + 2 + :)(); } }@] In the above example, note that (:link + 1 + + 0 + + -20 + + + 2 + :) captures the original type of the exception object. The exception can be thrown again using the (:link + 1 + + 0 + + -18 + + + 2 + :) function: [@// ...continued void work() { boost::(:link + 1 + + 0 + + -42 + + + 2 + :) error; boost::(:link http://www.boost.org/doc/html/boost/thread.html|thread:) t( boost::(:link http://www.boost.org/libs/bind/bind.html|bind:)(worker_thread,boost::(:link http://www.boost.org/doc/html/ref.html|ref:)(error)) ); t.(:link http://www.boost.org/doc/html/boost/thread.html|join:)(); if( error ) boost::(:link + 1 + + 0 + + -18 + + + 2 + :)(error); }@] Note that (:link + 1 + + 0 + + -20 + + + 2 + :) could fail to copy the original exception object in the following cases: * if there is not enough memory, in which case the returned (:link + 1 + + 0 + + -42 + + + 2 + :) points to an instance of std::bad_alloc, or * if (:link + 1 + + 0 + + -10 + + + 2 + :) was not used in the throw-expression passed to the original throw statement and the current implementation does not have the necessary compiler-specific support to copy the exception automatically, in which case the returned (:link + 1 + + 0 + + -42 + + + 2 + :) points to an instance of (:link + 1 + + 0 + + -8 + + + 2 + :). Regardless, the use of (:link + 1 + + 0 + + -20 + + + 2 + :) and (:link + 1 + + 0 + + -18 + + + 2 + :) in the above examples is well-formed. + + + + + 0 + + -27 + + + + 5 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link + 1 + + 0 + + -40 + + + 2 + :), or a type that derives (indirectly) from boost::(:link + 1 + + 0 + + -40 + + + 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 + + -28 + + + + 7 + 2 + (:auto !!!:) (:include decl:) !!!!Effects: * Default constructor: initializes an empty boost::(:link + 1 + + 0 + + -40 + + + 2 + :) object. * Copy constructor: initializes a boost::(:link + 1 + + 0 + + -40 + + + 2 + :) object which shares ownership with x of all data added through (:link + 1 + + 0 + + -32 + + + 2 + mod="/":), including data that is added at a future time. !!!!Throws: Nothing. + + + + + 0 + + -29 + + + + 7 + 2 + (:auto !!!:) (:include synopsis:) !!!!Returns: This function iterates over all data objects stored in the boost::(:link + 1 + + 0 + + -40 + + + 2 + :) through (:link + 1 + + 0 + + -32 + + + 2 + mod="/":). The returned string is constructed by converting each data object to string and then concatenating these strings together. When the (:link + 1 + + 0 + + -34 + + + 2 + :)<Tag,T> template is instantiated, the system attempts overload resolution for an unqualified call to to_string(x), where x is of type T. If this is successful, the to_string overload is expected to return std::string and is used to convert objects of type T to string. Otherwise, the system attempts overload resolution for s << x, where s is a std::ostringstream and x is of type T. If this is successful, the operator<< overload is used to convert objects of type T to string. Otherwise the system is unable to convert objects of type T to string, and an unspecified stub string value is used without issuing a compile error. !!!!Notes: *The format of the returned string is unspecified. *The returned string is ''not'' user-friendly. *If dynamic_cast<std::exception const *>(&x) is not null, the returned string includes the output from std::exception::what. *The returned string may include additional platform-specific diagnostic information. + + + + + 0 + + -30 + + + + 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 + + -10 + + + 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 + + -37 + + + 2 + :) are guaranteed to derive from boost::(:link + 1 + + 0 + + -40 + + + 2 + :) and to support cloning. (:include + 1 + + 0 + + -41 + + + 2 + :) (:include + 1 + + 0 + + -26 + + + 2 + :) + + + + + 0 + + -31 + + + + 13 + 2 + (:auto !!!:) The code snippet below demonstrates how boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:) can be used to bundle the name of the function that failed, together with the reported errno so that they can be added to exception objects more conveniently together: [@#include <(:link + 1 + + 0 + + -9 + + + 2 + :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> #include <errno.h> typedef boost::(:link + 1 + + 0 + + -34 + + + 2 + :)<struct tag_file_name,std::string> file_name_info; typedef boost::(:link + 1 + + 0 + + -34 + + + 2 + :)<struct tag_function,char const *> function_info; typedef boost::(:link + 1 + + 0 + + -34 + + + 2 + :)<struct tag_errno,int> errno_info; typedef boost::tuple<function_info,errno_info> clib_failure; class file_open_error: public boost::(:link + 1 + + 0 + + -40 + + + 2 + :) { }; boost::shared_ptr<FILE> file_open( char const * name, char const * mode ) { if( FILE * f=fopen(name,mode) ) return boost::shared_ptr<FILE>(f,fclose); else throw file_open_error() << file_name_info(name) << clib_failure("fopen",errno); }@] Note that the members of a boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:) are stored separately in exception objects; they can only be retrieved individually, using (:link + 1 + + 0 + + -33 + + + 2 + :). + + + + + 0 + + -32 + + + + 7 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link + 1 + + 0 + + -40 + + + 2 + :), or a type that derives (indirectly) from boost::(:link + 1 + + 0 + + -40 + + + 2 + :). !!!!Effects: Stores a copy of v into x. If x already contains data of type (:link + 1 + + 0 + + -34 + + + 2 + :)<Tag,T>, that data is overwritten. !!!!Returns: x. (:include throws:) + + + + + 0 + + -33 + + + + 13 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: * ErrorInfo must be an instance of the (:link + 1 + + 0 + + -34 + + + 2 + :) template. * E must be polymorphic. * The (:link + 1 + + 0 + + -33 + + + 2 + :) function must not be called outside of a catch block. !!!!Returns: * If dynamic_cast<boost::(:link + 1 + + 0 + + -40 + + + 2 + :) const *>(&x) is 0, or if x does not store an object of type ErrorInfo, the returned value is an empty shared_ptr. * Otherwise, the returned shared_ptr points to the stored value (use (:link + 1 + + 0 + + -32 + + + 2 + mod="/":) to store values in exception objects.) The shared_ptr is valid even after x has been destroyed. !!!!Throws: Nothing. !!!!Note: The interface of (:link + 1 + + 0 + + -33 + + + 2 + :) may be affected by the build (:link + 1 + + 0 + + -7 + + + 2 + :). + + + + + 0 + + -34 + + + + 25 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: T must have accessible copy constructor and must not be a reference (there is no requirement that T's copy constructor does not throw.) !!!!Description: This class template is used to associate a Tag type with a value type T. Objects of type (:link + 1 + + 0 + + -34 + + + 2 + :)<Tag,T> can be passed to (:link + 1 + + 0 + + -32 + + + 2 + mod="/":) to be stored in objects of type boost::(:link + 1 + + 0 + + -40 + + + 2 + :). !!!!Note: The header <(:link + 1 + + 0 + + -13 + + + 2 + :)> provides a declaration of the (:link + 1 + + 0 + + -34 + + + 2 + :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, like this: [@#include <(:link + 1 + + 0 + + -13 + + + 2 + :)> typedef boost::(:link + 1 + + 0 + + -34 + + + 2 + :)<struct tag_errno,int> errno_info;@] Of course, to actually add an (:link + 1 + + 0 + + -34 + + + 2 + :) object to (:link + 1 + + 0 + + -40 + + + 2 + mod="p":) using (:link + 1 + + 0 + + -32 + + + 2 + mod="/":), or to retrieve it using (:link + 1 + + 0 + + -33 + + + 2 + :), you must first #include <(:link + 1 + + 0 + + -17 + + + 2 + :)>. + + + + + 0 + + -35 + + + + 17 + 2 + (:auto !!!:) The following example demonstrates how errno can be stored in exception objects using Boost Exception: [@#include <(:link + 1 + + 0 + + -25 + + + 2 + :)> #include <errno.h> #include <iostream> typedef boost::(:link + 1 + + 0 + + -34 + + + 2 + :)<struct tag_errno,int> errno_info; //(1) class my_error: public boost::(:link + 1 + + 0 + + -40 + + + 2 + :), public std::exception { }; //(2) void f() { throw my_error() << errno_info(errno); //(3) } @] First, we instantiate the (:link + 1 + + 0 + + -34 + + + 2 + :) template using a unique identifier -- tag_errno, and the type of the info it identifies -- int. This provides compile-time type safety for the various values stored in exception objects. Second, we define class my_error, which derives from boost::(:link + 1 + + 0 + + -40 + + + 2 + :). Finally, (3) illustrates how the typedef from (1) can be used with (:link + 1 + + 0 + + -32 + + + 2 + |operator<<:) to store values in exception objects at the point of the throw. The stored errno value can be recovered at a later time like this: [@// ...continued void g() { try { f(); } catch( my_error & x ) { if( boost::shared_ptr<int const> err=boost::(:link + 1 + + 0 + + -33 + + + 2 + :)<errno_info>(x) ) std::cerr << "Error code: " << *err; } }@] The (:link + 1 + + 0 + + -33 + + + 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, the returned (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:) will point to it; otherwise an empty (:link http://www.boost.org/libs/smart_ptr/shared_ptr.htm|shared_ptr:) is returned. + + + + + 0 + + -36 + + + + 27 + 2 + (:auto !!:) Some exception hierarchies can not be modified to make boost::(:link + 1 + + 0 + + -40 + + + 2 + :) a base type. In this case, the (:link + 1 + + 0 + + -24 + + + 2 + :) function template can be used to make exception objects derive from boost::(:link + 1 + + 0 + + -40 + + + 2 + :) anyway. Here is an example: [@#include <(:link + 1 + + 0 + + -25 + + + 2 + :)> #include <stdexcept> typedef boost::(:link + 1 + + 0 + + -34 + + + 2 + :)<struct tag_std_range_min,size_t> std_range_min; typedef boost::(:link + 1 + + 0 + + -34 + + + 2 + :)<struct tag_std_range_max,size_t> std_range_max; typedef boost::(:link + 1 + + 0 + + -34 + + + 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 + + -24 + + + 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 + + -24 + + + 2 + :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link + 1 + + 0 + + -40 + + + 2 + :) and T. This makes it possible to use (:link + 1 + + 0 + + -32 + + + 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 + + -40 + + + 2 + :) &, so that (:link + 1 + + 0 + + -38 + + + 2 + |more information can be added to the exception at a later time:). + + + + + 0 + + -37 + + + + 13 + 2 + (:auto !!!:) (:include synopsis:) !!!!Requirements: E must derive publicly from std::exception. !!!!Effects: * If BOOST_NO_EXCEPTIONS is not defined, boost::(:link + 1 + + 0 + + -37 + + + 2 + :)(e) is equivalent to throw boost::(:link + 1 + + 0 + + -10 + + + 2 + :)(boost::(:link + 1 + + 0 + + -24 + + + 2 + :)(e)), unless BOOST_EXCEPTION_DISABLE is defined, in which case boost::(:link + 1 + + 0 + + -37 + + + 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 + + -37 + + + 2 + :) are allowed to assume that the function never returns; therefore, if the user-defined (:link + 1 + + 0 + + -37 + + + 2 + :) returns, the behavior is undefined. + + + + + 0 + + -38 + + + + 11 + 2 + (:auto !!:) All exception types that derive from boost::(:link + 1 + + 0 + + -40 + + + 2 + :) can be used as type-safe containers of arbitrary data objects, while complying with the no-throw requirements (15.5.1) of the ANSI C++ standard for exception types. Data can be added to a boost::(:link + 1 + + 0 + + -40 + + + 2 + :) at the time of the throw, or at a later time. (:include + 1 + + 0 + + -35 + + + 2 + :) (:include + 1 + + 0 + + -15 + + + 2 + :) (:include + 1 + + 0 + + -31 + + + 2 + :) + + + + + 0 + + -39 + + + + 17 + 2 + (:auto !!:) Boost Exception provides a namespace-scope function (:link + 1 + + 0 + + -29 + + + 2 + :) which takes a boost::(:link + 1 + + 0 + + -40 + + + 2 + :). The returned string contains: *the string representation of all data objects added to the boost::(:link + 1 + + 0 + + -40 + + + 2 + :) through (:link + 1 + + 0 + + -32 + + + 2 + mod="/":); *the output from std::exception::what; *additional platform-specific diagnostic information. The returned string is not presentable as a friendly user message, but because it is generated automatically, it is useful for debugging or logging purposes. Here is an example: [@#include <(:link + 1 + + 0 + + -25 + + + 2 + :)> #include <iostream> void f(); //throws unknown types that derive from boost::(:link + 1 + + 0 + + -40 + + + 2 + :). void g() { try { f(); } catch( boost::(:link + 1 + + 0 + + -40 + + + 2 + :) & e ) { std::cerr << (:link + 1 + + 0 + + -29 + + + 2 + :)(e); } }@] + + + + + 0 + + -40 + + + + 13 + 2 + (:auto !!!:) (:include synopsis:) Class boost::(:link + 1 + + 0 + + -40 + + + 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 + + -40 + + + 2 + :) can store data of arbitrary types, using the (:link + 1 + + 0 + + -34 + + + 2 + :) wrapper and (:link + 1 + + 0 + + -32 + + + 2 + mod="/":). To retrieve data from a boost::(:link + 1 + + 0 + + -40 + + + 2 + :) object, use the (:link + 1 + + 0 + + -33 + + + 2 + :) function template. + + + + + 0 + + -41 + + + + 11 + 2 + (:auto !!!:) Here is how cloning can be enabled in a throw-expression (15.1): [@#include <(:link + 1 + + 0 + + -17 + + + 2 + :)> #include <stdio.h> #include <errno.h> typedef boost::error_info<struct tag_errno,int> errno_info; class file_read_error: public boost::(:link + 1 + + 0 + + -40 + + + 2 + :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw boost::(:link + 1 + + 0 + + -10 + + + 2 + :)(file_read_error()) << errno_info(errno); }@] Of course, (:link + 1 + + 0 + + -10 + + + 2 + :) may be used with any exception type; there is no requirement that it should derive from boost::(:link + 1 + + 0 + + -40 + + + 2 + :). + + + + + 0 + + -42 + + + + 17 + 2 + (:auto !!!:) (:include synopsis:) The (:link + 1 + + 0 + + -42 + + + 2 + :) type can be used to refer to a copy of an exception object. It is Default Constructible, Copy Constructible, Assignable and Equality Comparable; (:link + 1 + + 0 + + -42 + + + 2 + :)'s operations do not throw. Two instances of (:link + 1 + + 0 + + -42 + + + 2 + :) are equivalent and compare equal if and only if they refer to the same exception. The default constructor of (:link + 1 + + 0 + + -42 + + + 2 + :) produces the null value of the type. The null value is equivalent only to itself. !!!!Thread safety * It is legal for multiple threads to hold (:link + 1 + + 0 + + -42 + + + 2 + :) references to the same exception object. * It is illegal for multiple threads to modify the same (:link + 1 + + 0 + + -42 + + + 2 + :) object concurrently. * While calling (:link + 1 + + 0 + + -20 + + + 2 + :) makes a copy of the current exception object, it is still possible for the two copies to share internal state. Therefore, in general it is not safe to call (:link + 1 + + 0 + + -18 + + + 2 + :) concurrently to throw the same exception object into multiple threads. + + + + + 0 + + -43 + + + + 0 + + + + + 0 + + -44 + + + + 0 + + @@ -6495,51 +6486,7 @@ 0 - -38 - - - - 0 - - - - - 0 - - -30 - - - - 0 - - - - - 0 - - -19 - - - - 0 - - - - - 0 - - -34 - - - - 0 - - - - - 0 - - -18 + -6 @@ -6561,7 +6508,7 @@ 0 - -28 + -8 @@ -6572,7 +6519,7 @@ 0 - -23 + -9 @@ -6583,7 +6530,7 @@ 0 - -27 + -10 @@ -6605,7 +6552,7 @@ 0 - -26 + -12 @@ -6616,7 +6563,7 @@ 0 - -32 + -13 @@ -6627,7 +6574,7 @@ 0 - -36 + -14 @@ -6638,7 +6585,51 @@ 0 - -21 + -15 + + + + 0 + + + + + 0 + + -16 + + + + 0 + + + + + 0 + + -17 + + + + 0 + + + + + 0 + + -18 + + + + 0 + + + + + 0 + + -19 @@ -6656,6 +6647,142 @@ 0 + + + 0 + + -21 + + + + 0 + + + + + 0 + + -22 + + + + 0 + + + + + 0 + + -23 + + + + 0 + + + + + 0 + + -24 + + + + 0 + + + + + 0 + + -25 + + + + 0 + + + + + 0 + + -26 + + + + 0 + + + + + 0 + + -27 + + + + 1 + 2 + !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. + + + + + 0 + + -28 + + + + 0 + + + + + 0 + + -29 + + + + 0 + + + + + 0 + + -30 + + + + 0 + + + + + 0 + + -31 + + + + 0 + + + + + 0 + + -32 + + + + 1 + 2 + !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. + + 0 @@ -6667,6 +6794,61 @@ 0 + + + 0 + + -34 + + + + 0 + + + + + 0 + + -35 + + + + 0 + + + + + 0 + + -36 + + + + 0 + + + + + 0 + + -37 + + + + 0 + + + + + 0 + + -38 + + + + 0 + + 0 @@ -6689,39 +6871,6 @@ 0 - - - 0 - - -22 - - - - 0 - - - - - 0 - - -8 - - - - 0 - - - - - 0 - - -6 - - - - 0 - - 0 @@ -6733,85 +6882,6 @@ 0 - - - 0 - - -24 - - - - 0 - - - - - 0 - - -17 - - - - 0 - - - - - 0 - - -14 - - - - 1 - 2 - !!!!Throws: std::bad_alloc, or any exception emitted by T1..TN copy constructor. - - - - - 0 - - -9 - - - - 0 - - - - - 0 - - -10 - - - - 0 - - - - - 0 - - -12 - - - - 0 - - - - - 0 - - -16 - - - - 0 - - 0 @@ -6823,30 +6893,6 @@ 0 - - - 0 - - -37 - - - - 0 - - - - - 0 - - -13 - - - - 1 - 2 - !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. - - 0 @@ -6869,61 +6915,6 @@ 0 - - - 0 - - -35 - - - - 0 - - - - - 0 - - -29 - - - - 0 - - - - - 0 - - -25 - - - - 0 - - - - - 0 - - -31 - - - - 0 - - - - - 0 - - -15 - - - - 0 - - @@ -6945,28 +6936,6 @@ -5 - - 0 - - - - - 0 - - -38 - - - - 0 - - - - - 0 - - -30 - - 1 2 @@ -6977,7 +6946,40 @@ 0 - -19 + -6 + + + + 3 + 2 + [@#include <(:link + 1 + + 0 + + -5 + + + 2 + :)> namespace boost { (:include api pre_indent="4":) }@] + + + + + 0 + + -7 + + + + 0 + + + + + 0 + + -8 @@ -6988,7 +6990,7 @@ 0 - -35 + -6 2 @@ -6999,7 +7001,7 @@ 0 - -34 + -9 @@ -7012,7 +7014,7 @@ 0 - -18 + -10 @@ -7023,92 +7025,13 @@ 0 - -28 + -22 2 > [@namespace boost { (:include decl pre_indent="4":) }@] - - - 0 - - -7 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -36 - - - 2 - :)> [@namespace boost { (:include decl:) }@] - - - - - 0 - - -28 - - - - 3 - 2 - [@#include < - 1 - - 0 - - -31 - - - 2 - > namespace boost { (:include api pre_indent="4":) }@] - - - - - 0 - - -23 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -27 - - - 2 - :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -27 - - - - 1 - 2 - [@#include <exception> #include <string> namespace boost { (:include api pre_indent="4":) }@] - - 0 @@ -7124,44 +7047,18 @@ 0 - -31 + -6 2 - :)> [@namespace boost { (:include def pre_indent="4":) }@] + :)> [@namespace boost { (:include decl pre_indent="4":) }@] 0 - -26 - - - - 1 - 2 - [@(:include api:)@] - - - - - 0 - - -32 - - - - 1 - 2 - [@#include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] - - - - - 0 - - -36 + -12 @@ -7174,7 +7071,77 @@ 0 - -21 + -13 + + + + 1 + 2 + [@namespace boost { (:include api pre_indent="4":) }@] + + + + + 0 + + -14 + + + + 1 + 2 + [@#include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] + + + + + 0 + + -15 + + + + 0 + + + + + 0 + + -16 + + + + 0 + + + + + 0 + + -17 + + + + 3 + 2 + [@#include <(:link + 1 + + 0 + + -5 + + + 2 + :)> #include <boost/current_function.hpp> #include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] + + + + + 0 + + -18 @@ -7185,13 +7152,35 @@ 0 - -35 + -6 2 :)> [@namespace boost { (:include decl pre_indent="4":) }@] + + + 0 + + -19 + + + + 3 + 2 + [@#include < + 1 + + 0 + + -5 + + + 2 + > namespace boost { (:include api pre_indent="4":) }@] + + 0 @@ -7207,13 +7196,233 @@ 0 - -35 + -6 2 :)> [@namespace boost { (:include decl pre_indent="4":) }@] + + + 0 + + -21 + + + + 3 + 2 + `#include < + 1 + + 0 + + -12 + + + 2 + > (:include decl:) + + + + + 0 + + -22 + + + + 3 + 2 + [@#include < + 1 + + 0 + + -5 + + + 2 + > namespace boost { (:include api pre_indent="4":) }@] + + + + + 0 + + -23 + + + + 3 + 2 + [@#include <string> namespace boost { (:include + 1 + + 0 + + -40 + + + 2 + decl pre_indent="4":) (:include api pre_indent="4":) }@] + + + + + 0 + + -24 + + + + 3 + 2 + `#include < + 1 + + 0 + + -19 + + + 2 + > [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -25 + + + + 1 + 2 + [@(:include api:)@] + + + + + 0 + + -26 + + + + 0 + + + + + 0 + + -27 + + + + 5 + 2 + `#include <(:link + 1 + + 0 + + -9 + + + 2 + :)> [@namespace boost { (:include + 1 + + 0 + + -27 + + + 2 + decl pre_indent="4":) }@] + + + + + 0 + + -28 + + + + 0 + + + + + 0 + + -29 + + + + 3 + 2 + `#include <(:link + 1 + + 0 + + -23 + + + 2 + :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -30 + + + + 0 + + + + + 0 + + -31 + + + + 0 + + + + + 0 + + -32 + + + + 3 + 2 + `#include <(:link + 1 + + 0 + + -17 + + + 2 + :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] + + 0 @@ -7224,16 +7433,93 @@ 3 2 - [@#include <(:link + `#include < 1 0 - -31 + -14 2 - :)> #include <boost/current_function.hpp> #include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] + > [@namespace boost { (:include decl pre_indent="4":) }@] + + + + + 0 + + -34 + + + + 3 + 2 + `#include <(:link + 1 + + 0 + + -17 + + + 2 + :)> [@namespace boost { (:include def pre_indent="4":) }@] + + + + + 0 + + -35 + + + + 0 + + + + + 0 + + -36 + + + + 0 + + + + + 0 + + -37 + + + + 3 + 2 + `#include <(:link + 1 + + 0 + + -12 + + + 2 + :)> [@namespace boost { (:include decl:) }@] + + + + + 0 + + -38 + + + + 0 @@ -7254,17 +7540,6 @@ -40 - - 0 - - - - - 0 - - -22 - - 3 2 @@ -7273,33 +7548,11 @@ 0 - -35 + -5 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -8 - - - - 0 - - - - - 0 - - -6 - - - - 0 + :)> [@namespace boost { (:include def pre_indent="4":) }@] @@ -7313,147 +7566,6 @@ 0 - - - 0 - - -24 - - - - 3 - 2 - `#include < - 1 - - 0 - - -36 - - - 2 - > (:include decl:) - - - - - 0 - - -17 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -35 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - - - 0 - - -14 - - - - 5 - 2 - `#include <(:link - 1 - - 0 - - -34 - - - 2 - :)> [@namespace boost { (:include - 1 - - 0 - - -14 - - - 2 - decl pre_indent="4":) }@] - - - - - 0 - - -9 - - - - 0 - - - - - 0 - - -10 - - - - 0 - - - - - 0 - - -12 - - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -33 - - - 2 - :)> [@namespace boost { (:include def pre_indent="4":) }@] - - - - - 0 - - -16 - - - - 3 - 2 - `#include < - 1 - - 0 - - -29 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] - - 0 @@ -7461,28 +7573,6 @@ -42 - - 0 - - - - - 0 - - -37 - - - - 0 - - - - - 0 - - -13 - - 3 2 @@ -7491,11 +7581,11 @@ 0 - -33 + -6 2 - :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] + :)> [@namespace boost { (:include decl pre_indent="4":) }@] @@ -7520,96 +7610,6 @@ 0 - - - 0 - - -35 - - - - 3 - 2 - [@#include <(:link - 1 - - 0 - - -31 - - - 2 - :)> namespace boost { (:include api pre_indent="4":) }@] - - - - - 0 - - -29 - - - - 3 - 2 - [@#include < - 1 - - 0 - - -31 - - - 2 - > namespace boost { (:include api pre_indent="4":) }@] - - - - - 0 - - -25 - - - - 0 - - - - - 0 - - -31 - - - - 1 - 2 - [@namespace boost { (:include api pre_indent="4":) }@] - - - - - 0 - - -15 - - - - 3 - 2 - `#include < - 1 - - 0 - - -32 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] - - @@ -7632,100 +7632,115 @@ -5 - -38 - - - -30 - - - -19 - - - -34 - - - -18 + -6 -7 - - -28 - - - -23 - - - -27 - - - -11 - - - -26 - - - -32 - - - -36 - - - -21 - - - -20 - - - -33 - - - -39 - - - -40 - - - -22 - -8 - - -6 - - - -41 - - - -24 - - - -17 - - - -14 - -9 -10 + + -11 + -12 + + -13 + + + -14 + + + -15 + -16 - -42 + -17 + + + -18 + + + -19 + + + -20 + + + -21 + + + -22 + + + -23 + + + -24 + + + -25 + + + -26 + + + -27 + + + -28 + + + -29 + + + -30 + + + -31 + + + -32 + + + -33 + + + -34 + + + -35 + + + -36 -37 - -13 + -38 + + + -39 + + + -40 + + + -41 + + + -42 -43 @@ -7733,21 +7748,6 @@ -44 - - -35 - - - -29 - - - -25 - - - -31 - - - -15 - @@ -7767,7 +7767,7 @@ - -5 + -43 @@ -7784,7 +7784,7 @@ - -6 + -30 @@ -7801,7 +7801,7 @@ - -8 + -38 @@ -7818,7 +7818,7 @@ - -37 + -44 @@ -7835,7 +7835,7 @@ - -29 + -19 @@ -7852,7 +7852,7 @@ - -28 + -22 @@ -7876,7 +7876,7 @@ - -31 + -5 @@ -7904,7 +7904,7 @@ - -11 + -40 @@ -7936,7 +7936,7 @@ - -44 + -28 @@ -7964,7 +7964,7 @@ - -39 + -16 @@ -7992,7 +7992,7 @@ - -18 + -10 @@ -8020,7 +8020,7 @@ - -16 + -24 @@ -8048,7 +8048,7 @@ - -13 + -32 @@ -8072,7 +8072,7 @@ - -43 + -26 @@ -8096,7 +8096,7 @@ - -9 + -36 @@ -8107,7 +8107,7 @@ 17FF6C63843EE64ED66CB038DD95B4C4D6BA1B0FD36B27BEFD84A909161D2853 1237535165 231 - 1255 + 1171 @@ -8120,7 +8120,7 @@ - -24 + -21 @@ -8148,7 +8148,7 @@ - -23 + -29 @@ -8172,7 +8172,7 @@ - -33 + -17 @@ -8196,7 +8196,7 @@ - -10 + -39 @@ -8220,7 +8220,7 @@ - -32 + -14 @@ -8244,7 +8244,7 @@ - -26 + -25 @@ -8268,7 +8268,7 @@ - -27 + -23 @@ -8279,7 +8279,7 @@ 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A 1770110914 587 - 1566 + 1482 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D 3929437933 361 @@ -8296,7 +8296,7 @@ - -7 + -37 @@ -8307,7 +8307,7 @@ 612485E090D76B2CC43C1A296F813075BA165C2496082E78E939F10B3DA8E09A 1770110914 587 - 1566 + 1482 60F3F48B87487FA6E0D2CCC0750AF435CC92CEC80BBBF609AC71295031AADD0D 3929437933 361 @@ -8328,7 +8328,7 @@ - -25 + -7 @@ -8356,7 +8356,7 @@ - -15 + -33 @@ -8383,6 +8383,30 @@ 0 + + -34 + + + + + + + 1 + 772781E5C169713B0AAF4BF73D567AB51C65D3D2DE185E43BDD75B8C3E0090AE + 2533913088 + 1998 + 91 + + + + + + 0 + ../../../../boost/throw_exception.hpp + 0 + 0 + + -12 @@ -8408,7 +8432,7 @@ - -34 + -9 @@ -8432,7 +8456,7 @@ - -38 + -41 @@ -8456,7 +8480,7 @@ - -35 + -6 @@ -8480,7 +8504,7 @@ - -42 + -15 @@ -8508,7 +8532,7 @@ - -19 + -20 @@ -8536,7 +8560,7 @@ - -17 + -42 @@ -8564,7 +8588,7 @@ - -22 + -8 @@ -8592,7 +8616,7 @@ - -21 + -18 @@ -8620,31 +8644,7 @@ - -20 - - - - - - - 1 - 05BBA12328429E0E88C8D44170E103FDF8DCD84E0C9AFB19D0478F9F4606FBE7 - 3486222742 - 2082 - 91 - - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - -36 + -11 @@ -8672,7 +8672,7 @@ - -30 + -13 @@ -8700,7 +8700,7 @@ - -14 + -27 @@ -8724,7 +8724,7 @@ - -40 + -35 @@ -8748,7 +8748,7 @@ - -41 + -31 @@ -8779,22 +8779,13 @@ -5 - noindex + 0 - -38 - - - noalso noindex tutorial - - - - 0 - - -30 + -6 @@ -8803,7 +8794,25 @@ 0 - -19 + -8 + + + exception_ptr type + + + + 0 + + -9 + + + + + + + 0 + + -10 exception_ptr free function @@ -8812,7 +8821,61 @@ 0 - -34 + -11 + + + exception_ptr free function + + + + 0 + + -12 + + + + + + + 0 + + -13 + + + + + + + 0 + + -14 + + + error_info + + + + 0 + + -15 + + + noalso noindex tutorial + + + + 0 + + -16 + + + function + + + + 0 + + -17 @@ -8830,83 +8893,11 @@ 0 - -7 - - - free function - - - - 0 - - -28 - - - exception_ptr - - - - 0 - - -23 - - - diagnostic_information free function - - - - 0 - - -27 - - - - - - - 0 - - -11 - - - type - - - - 0 - - -26 - - - - - - - 0 - - -32 + -19 error_info - - - 0 - - -36 - - - - - - - 0 - - -21 - - - exception_ptr free function - 0 @@ -8920,7 +8911,7 @@ 0 - -33 + -21 @@ -8929,16 +8920,43 @@ 0 - -39 + -22 - function + exception_ptr 0 - -40 + -23 + + + + + + + 0 + + -24 + + + error_info free function + + + + 0 + + -25 + + + + + + + 0 + + -26 noalso noindex tutorial @@ -8947,16 +8965,34 @@ 0 - -22 + -27 - exception_ptr type + error_info free function 0 - -8 + -28 + + + function + + + + 0 + + -29 + + + diagnostic_information free function + + + + 0 + + -30 tutorial @@ -8965,11 +9001,92 @@ 0 - -6 + -31 + + + noalso noindex tutorial + + + + 0 + + -32 + + + error_info free function + + + + 0 + + -33 + + + error_info free function + + + + 0 + + -34 + + + type + + + + 0 + + -35 + + + noalso noindex tutorial + + + + 0 + + -36 tutorial + + + 0 + + -37 + + + free function + + + + 0 + + -38 + + + tutorial + + + + 0 + + -39 + + + diagnostic_information tutorial + + + + 0 + + -40 + + + type + 0 @@ -8979,69 +9096,6 @@ noalso noindex tutorial - - - 0 - - -24 - - - - - - - 0 - - -17 - - - type - - - - 0 - - -14 - - - error_info free function - - - - 0 - - -9 - - - tutorial - - - - 0 - - -10 - - - diagnostic_information tutorial - - - - 0 - - -12 - - - type - - - - 0 - - -16 - - - error_info free function - 0 @@ -9049,25 +9103,7 @@ -42 - noalso noindex tutorial - - - - 0 - - -37 - - - index noindex - - - - 0 - - -13 - - - error_info free function + type @@ -9076,7 +9112,7 @@ -43 - noalso noindex tutorial + noindex @@ -9085,43 +9121,7 @@ -44 - function - - - - 0 - - -35 - - - - - - - 0 - - -29 - - - error_info - - - - 0 - - -31 - - - - - - - 0 - - -15 - - - error_info free function + index noindex diff --git a/doc/throw_exception.html b/doc/throw_exception.html index 32229c2..f4eb745 100644 --- a/doc/throw_exception.html +++ b/doc/throw_exception.html @@ -43,7 +43,7 @@ boost diff --git a/doc/throw_exception_hpp.html b/doc/throw_exception_hpp.html index 8efa28d..f083505 100644 --- a/doc/throw_exception_hpp.html +++ b/doc/throw_exception_hpp.html @@ -48,7 +48,7 @@ boost

    See Also:

    diff --git a/doc/operator_shl_tuple.html b/doc/tuple_operator_shl.html similarity index 93% rename from doc/operator_shl_tuple.html rename to doc/tuple_operator_shl.html index 939302c..1976634 100644 --- a/doc/operator_shl_tuple.html +++ b/doc/tuple_operator_shl.html @@ -3,7 +3,7 @@ - operator<</tuple + tuple/operator<< @@ -19,14 +19,14 @@ -

    operator<</tuple

    +

    tuple/operator<<

    #include <boost/exception/info_tuple.hpp>

    namespace
     boost
         {
         template <class E, class Tag1, class T1, ..., class TagN, class TN>
    -    E const & operator<<( E const & x,
    +    E const & operator<<( E const & x,
             tuple<
                 error_info<Tag1,T1>,
                 ...,
    diff --git a/doc/tutorial_diagnostic_information.html b/doc/tutorial_diagnostic_information.html
    index 916f753..8a986eb 100644
    --- a/doc/tutorial_diagnostic_information.html
    +++ b/doc/tutorial_diagnostic_information.html
    @@ -22,7 +22,7 @@
     

    Diagnostic Information

    Boost Exception provides a namespace-scope function diagnostic_information which takes a boost::exception. The returned string contains:

    -
    • the string representation of all data objects added to the boost::exception through operator<<;
    • +
      • the string representation of all data objects added to the boost::exception through operator<<;
      • the output from std::exception::what;
      • additional platform-specific diagnostic information.
      diff --git a/doc/tutorial_enable_error_info.html b/doc/tutorial_enable_error_info.html index e0e8cd3..8dbb224 100644 --- a/doc/tutorial_enable_error_info.html +++ b/doc/tutorial_enable_error_info.html @@ -49,7 +49,7 @@ my_container } };
    -

    The call to enable_error_info<T> gets us an object of unspecified type which is guaranteed to derive from both boost::exception and T. This makes it possible to use operator<< to store additional information in the exception object. The exception can be intercepted as T &, so existing exception handling will not break. It can also be intercepted as boost::exception &, so that more information can be added to the exception at a later time.

    +

    The call to enable_error_info<T> gets us an object of unspecified type which is guaranteed to derive from both boost::exception and T. This makes it possible to use operator<< to store additional information in the exception object. The exception can be intercepted as T &, so existing exception handling will not break. It can also be intercepted as boost::exception &, so that more information can be added to the exception at a later time.


    See Also:

    Boost Exception
    diff --git a/doc/tutorial_transporting_data.html b/doc/tutorial_transporting_data.html index 57fe771..59b1189 100644 --- a/doc/tutorial_transporting_data.html +++ b/doc/tutorial_transporting_data.html @@ -41,7 +41,7 @@ f()

    First, we instantiate the error_info template using a unique identifier -- tag_errno, and the type of the info it identifies -- int. This provides compile-time type safety for the various values stored in exception objects.

    Second, we define class my_error, which derives from boost::exception.

    -

    Finally, (3) illustrates how the typedef from (1) can be used with operator<< to store values in exception objects at the point of the throw.

    +

    Finally, (3) illustrates how the typedef from (1) can be used with operator<< to store values in exception objects at the point of the throw.

    The stored errno value can be recovered at a later time like this:

    // ...continued