diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7383a16..ec5c0c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,11 +17,6 @@ jobs: fail-fast: false matrix: include: - - toolset: gcc-4.8 - cxxstd: "11" - os: ubuntu-latest - container: ubuntu:18.04 - install: g++-4.8 - toolset: gcc-5 cxxstd: "11,14,1z" os: ubuntu-latest @@ -38,14 +33,17 @@ jobs: container: ubuntu:18.04 - toolset: gcc-8 cxxstd: "11,14,17,2a" - os: ubuntu-20.04 + os: ubuntu-latest + container: ubuntu:20.04 install: g++-8 - toolset: gcc-9 cxxstd: "11,14,17,2a" - os: ubuntu-20.04 + os: ubuntu-latest + container: ubuntu:20.04 - toolset: gcc-10 cxxstd: "11,14,17,2a" - os: ubuntu-20.04 + os: ubuntu-latest + container: ubuntu:20.04 install: g++-10 - toolset: gcc-11 cxxstd: "11,14,17,2a" @@ -64,6 +62,11 @@ jobs: os: ubuntu-latest container: ubuntu:24.04 install: g++-14 + - toolset: gcc-15 + cxxstd: "11,14,17,20,23,2c" + os: ubuntu-latest + container: ubuntu:25.04 + install: g++-15 - toolset: clang compiler: clang++-3.9 cxxstd: "11,14" @@ -85,35 +88,45 @@ jobs: - toolset: clang compiler: clang++-6.0 cxxstd: "11,14,17" - os: ubuntu-20.04 + os: ubuntu-latest + container: ubuntu:20.04 install: clang-6.0 - toolset: clang compiler: clang++-7 cxxstd: "11,14,17" - os: ubuntu-20.04 + os: ubuntu-latest + container: ubuntu:20.04 install: clang-7 - toolset: clang compiler: clang++-8 cxxstd: "11,14,17" - os: ubuntu-20.04 + os: ubuntu-latest + container: ubuntu:20.04 install: clang-8 - toolset: clang compiler: clang++-9 cxxstd: "11,14,17" - os: ubuntu-20.04 + os: ubuntu-latest + container: ubuntu:20.04 install: clang-9 - toolset: clang compiler: clang++-10 cxxstd: "11,14,17,2a" - os: ubuntu-20.04 + os: ubuntu-latest + container: ubuntu:20.04 + install: clang-10 - toolset: clang compiler: clang++-11 cxxstd: "11,14,17,2a" - os: ubuntu-20.04 + os: ubuntu-latest + container: ubuntu:20.04 + install: clang-11 - toolset: clang compiler: clang++-12 cxxstd: "11,14,17,20" - os: ubuntu-20.04 + os: ubuntu-latest + container: ubuntu:20.04 + install: clang-12 - toolset: clang compiler: clang++-13 cxxstd: "11,14,17,20,2b" @@ -153,18 +166,24 @@ jobs: - toolset: clang compiler: clang++-19 cxxstd: "11,14,17,20,2b" - container: ubuntu:24.10 + container: ubuntu:24.04 os: ubuntu-latest install: clang-19 - toolset: clang - cxxstd: "11,14,17,20,2b" - os: macos-13 + compiler: clang++-20 + cxxstd: "11,14,17,20,23,2c" + container: ubuntu:25.04 + os: ubuntu-latest + install: clang-20 - toolset: clang cxxstd: "11,14,17,20,2b" os: macos-14 - toolset: clang cxxstd: "11,14,17,20,2b" os: macos-15 + - toolset: clang + cxxstd: "11,14,17,20,2b" + os: macos-26 runs-on: ${{matrix.os}} @@ -237,14 +256,6 @@ jobs: fail-fast: false matrix: include: - - toolset: msvc-14.0 - cxxstd: "14" - addrmd: 32,64 - os: windows-2019 - - toolset: msvc-14.2 - cxxstd: "14,17,20,latest" - addrmd: 32,64 - os: windows-2019 - toolset: msvc-14.3 cxxstd: "14,17,20,latest" addrmd: 32,64 @@ -256,7 +267,7 @@ jobs: - toolset: gcc cxxstd: "11,14,17,2a" addrmd: 64 - os: windows-2019 + os: windows-2022 runs-on: ${{matrix.os}} diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..f99ab7b --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,46 @@ +name: documentation + +on: + push: + branches: + - master + - develop + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install packages + run: | + sudo gem install asciidoctor asciidoctor-pdf rouge + + - name: Setup Boost + run: | + REF=${GITHUB_BASE_REF:-$GITHUB_REF} + BOOST_BRANCH=develop && [ "$REF" == "master" ] && BOOST_BRANCH=master || true + cd .. + git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root + cd boost-root + cp -r $GITHUB_WORKSPACE/* libs/exception + git submodule update --init tools/build + git submodule update --init tools/boost_install + git submodule update --init libs/config + ./bootstrap.sh + + - name: Create user-config.jam + run: | + echo "using asciidoctor ;" > ~/user-config.jam + + - name: Build documentation + run: | + cd ../boost-root/libs/exception/doc + ../../../b2 + + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@4.0.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + branch: gh-pages + folder: ../boost-root/libs/exception/doc/html diff --git a/.gitignore b/.gitignore index cbe87fe..fc18f46 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /.vscode/ipch/* /.vscode/settings.json .DS_Store +doc/html/index.html diff --git a/doc/BOOST_THROW_EXCEPTION.html b/doc/BOOST_THROW_EXCEPTION.html index 2697aaf..f8da166 100644 --- a/doc/BOOST_THROW_EXCEPTION.html +++ b/doc/BOOST_THROW_EXCEPTION.html @@ -1,43 +1,10 @@ - - + + - - BOOST_THROW_EXCEPTION - + + -
-
-
-
- -

Boost Exception

-
- - - -

BOOST_THROW_EXCEPTION

-
-

Please see Boost.ThrowException.

-
- - - - -
-
-
+

Redirecting to index.html#BOOST_THROW_EXCEPTION...

diff --git a/doc/Jamfile b/doc/Jamfile new file mode 100644 index 0000000..affc243 --- /dev/null +++ b/doc/Jamfile @@ -0,0 +1,20 @@ +# Copyright 2006-2026 Emil Dotchevski and Reverge Studios, Inc. +# Copyright 2017 Peter Dimov +# +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) + +project doc/exception ; +using asciidoctor ; + +html index.html : exception.adoc : stylesheet=zajo-dark.css linkcss ; +install html_ : index.html skin.png zajo-dark.css zajo-light.css rouge-github.css : html ; + +pdf exception.pdf : exception.adoc : book pdf-themesdir=. pdf-theme=exception ; +install pdf_ : exception.pdf : html ; + +alias boostdoc ; +explicit boostdoc ; +alias boostrelease : html_ ; +explicit boostrelease ; diff --git a/doc/boost-exception.html b/doc/boost-exception.html index 88deef0..801ca64 100644 --- a/doc/boost-exception.html +++ b/doc/boost-exception.html @@ -1,93 +1,10 @@ - - + + - - boost exception - + + -
-
-
-
- -

Boost Exception

-
- - - -

NOTE: When targeting C++11 or newer and Boost 1.75 or newer is available, it is recommended to use Boost LEAF instead of Boost Exception. LEAF serves a similar purpose but it has a more elegant interface, it is more efficient, and works with or without exception handling -- yet understands Boost Exception error information for compatibility with legacy source code. This overview explains the differences between the two APIs (Boost Exception is not deprecated and will continue to be supported, including C++03 compatibility).

-

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 N2179-style copying of exception objects, implemented non-intrusively and automatically by the boost::throw_exception function.

-

Contents

-
  1. Motivation
  2. -
  3. Tutorial -
  4. -
  5. Documentation -
  6. -
  7. API -
  8. -
  9. Frequently Asked Questions
  10. -
  11. Page Index
  12. -
-

Acknowledgements

-

Thanks to Peter Dimov for his continuing help. Also thanks to Tobias Schwinger, Tom Brinkman, Pavel Vozenilek and everyone who participated in the review process.

-
- - - -
-
-
+

Redirecting to index.html#boost-exception...

diff --git a/doc/boost_exception_all_hpp.html b/doc/boost_exception_all_hpp.html index 55db249..370f5c7 100644 --- a/doc/boost_exception_all_hpp.html +++ b/doc/boost_exception_all_hpp.html @@ -1,60 +1,10 @@ - - + + - - boost/exception/all.hpp - + + - +

Redirecting to index.html#boost_exception_all_hpp...

diff --git a/doc/boost_exception_current_exception_cast_hpp.html b/doc/boost_exception_current_exception_cast_hpp.html index 9ab3ac9..5b024fb 100644 --- a/doc/boost_exception_current_exception_cast_hpp.html +++ b/doc/boost_exception_current_exception_cast_hpp.html @@ -1,49 +1,10 @@ - - + + - - boost/exception/current_exception_cast.hpp - + + -
-
-
-
- -

Boost Exception

-
- - - -

boost/exception/current_exception_cast.hpp

-
-

Synopsis

-
namespace
-boost
-    {
-    template <class E>
-    E * current_exception_cast();
-    }
-
- - - - -
-
-
+

Redirecting to index.html#boost_exception_current_exception_cast_hpp...

diff --git a/doc/boost_exception_diagnostic_information_hpp.html b/doc/boost_exception_diagnostic_information_hpp.html index a3a739a..0e25bba 100644 --- a/doc/boost_exception_diagnostic_information_hpp.html +++ b/doc/boost_exception_diagnostic_information_hpp.html @@ -1,59 +1,10 @@ - - + + - - boost/exception/diagnostic_information.hpp - + + -
-
-
-
- -

Boost Exception

-
- - - -

boost/exception/diagnostic_information.hpp

-
-

Synopsis

-
#include <string>
-
-namespace
-boost
-    {
-    class exception;
-
-    template <class E>
-    std::string diagnostic_information( E const & e, bool verbose=true );
-    
-    std::string diagnostic_information( exception_ptr const & p, bool verbose=true );    
-    
-    char const * diagnostic_information_what( boost::exception const & e, bool verbose=true ) throw();    
-    
-    std::string current_exception_diagnostic_information();
-    }
-
- - - - -
-
-
+

Redirecting to index.html#boost_exception_diagnostic_information_hpp...

diff --git a/doc/boost_exception_enable_current_exception_hpp.html b/doc/boost_exception_enable_current_exception_hpp.html index 09af9ed..f73cf91 100644 --- a/doc/boost_exception_enable_current_exception_hpp.html +++ b/doc/boost_exception_enable_current_exception_hpp.html @@ -1,51 +1,10 @@ - - + + - - boost/exception/enable_current_exception.hpp - + + -
-
-
-
- -

Boost Exception

-
- - - -

boost/exception/enable_current_exception.hpp

-
-

Synopsis

-
#include <boost/exception/exception.hpp>
-
-namespace
-boost
-    {
-    template <class T>
-    ---unspecified--- enable_current_exception( T const & e );
-    }
-
- - - - -
-
-
+

Redirecting to index.html#boost_exception_enable_current_exception_hpp...

diff --git a/doc/boost_exception_enable_error_info_hpp.html b/doc/boost_exception_enable_error_info_hpp.html index 3d10b30..3a8db0c 100644 --- a/doc/boost_exception_enable_error_info_hpp.html +++ b/doc/boost_exception_enable_error_info_hpp.html @@ -1,51 +1,10 @@ - - + + - - boost/exception/enable_error_info.hpp - + + -
-
-
-
- -

Boost Exception

-
- - - -

boost/exception/enable_error_info.hpp

-
-

Synopsis

-
#include <boost/exception/exception.hpp>
-
-namespace
-boost
-    {
-    template <class T>
-    ---unspecified--- enable_error_info( T const & x );
-    }
-

-See also: enable_error_info | Synopsis -
- - - - -
-
-
+

Redirecting to index.html#boost_exception_enable_error_info_hpp...

diff --git a/doc/boost_exception_errinfo_api_function_hpp.html b/doc/boost_exception_errinfo_api_function_hpp.html index b0c1279..e3a1ccb 100644 --- a/doc/boost_exception_errinfo_api_function_hpp.html +++ b/doc/boost_exception_errinfo_api_function_hpp.html @@ -1,50 +1,10 @@ - - + + - - boost/exception/errinfo_api_function.hpp - + + -
-
-
-
- -

Boost Exception

-
- - - -

boost/exception/errinfo_api_function.hpp

-
-

Synopsis

-
#include <boost/exception/error_info.hpp>
-
-namespace
-boost
-    {
-    typedef error_info<struct errinfo_api_function_,char const *> errinfo_api_function;
-    }
-
- - - - -
-
-
+

Redirecting to index.html#boost_exception_errinfo_api_function_hpp...

diff --git a/doc/boost_exception_errinfo_at_line_hpp.html b/doc/boost_exception_errinfo_at_line_hpp.html index e3b2c6c..25bdcc1 100644 --- a/doc/boost_exception_errinfo_at_line_hpp.html +++ b/doc/boost_exception_errinfo_at_line_hpp.html @@ -1,50 +1,10 @@ - - + + - - boost/exception/errinfo_at_line.hpp - + + -
-
-
-
- -

Boost Exception

-
- - - -

boost/exception/errinfo_at_line.hpp

-
-

Synopsis

-
#include <boost/exception/error_info.hpp>
-
-namespace
-boost
-    {
-    typedef error_info<struct errinfo_at_line_,int> errinfo_at_line;
-    }
-
- - - - -
-
-
+

Redirecting to index.html#boost_exception_errinfo_at_line_hpp...

diff --git a/doc/boost_exception_errinfo_errno_hpp.html b/doc/boost_exception_errinfo_errno_hpp.html index 4d2c1c4..6813630 100644 --- a/doc/boost_exception_errinfo_errno_hpp.html +++ b/doc/boost_exception_errinfo_errno_hpp.html @@ -1,51 +1,10 @@ - - + + - - boost/exception/errinfo_errno.hpp - + + -
-
-
-
- -

Boost Exception

-
- - - -

boost/exception/errinfo_errno.hpp

-
-

Synopsis

-
#include <boost/exception/error_info.hpp>
-#include <errno.h>
-
-namespace
-boost
-    {
-    typedef error_info<struct errinfo_errno_,int> errinfo_errno;
-    }
-
- - - - -
-
-
+

Redirecting to index.html#boost_exception_errinfo_errno_hpp...

diff --git a/doc/boost_exception_errinfo_file_handle_hpp.html b/doc/boost_exception_errinfo_file_handle_hpp.html index e1a5541..87320f1 100644 --- a/doc/boost_exception_errinfo_file_handle_hpp.html +++ b/doc/boost_exception_errinfo_file_handle_hpp.html @@ -1,51 +1,10 @@ - - + + - - boost/exception/errinfo_file_handle.hpp - + + -
-
-
-
- -

Boost Exception

-
- - - -

boost/exception/errinfo_file_handle.hpp

-
-

Synopsis

-
#include <boost/exception/error_info.hpp>
-
-namespace
-boost
-    {
-    template <class> class weak_ptr;
-    typedef error_info<struct errinfo_file_handle_,weak_ptr<FILE> > errinfo_file_handle;
-    }
-
- - - - -
-
-
+

Redirecting to index.html#boost_exception_errinfo_file_handle_hpp...

diff --git a/doc/boost_exception_errinfo_file_name_hpp.html b/doc/boost_exception_errinfo_file_name_hpp.html index f77edef..deeb3c2 100644 --- a/doc/boost_exception_errinfo_file_name_hpp.html +++ b/doc/boost_exception_errinfo_file_name_hpp.html @@ -1,51 +1,10 @@ - - + + - - boost/exception/errinfo_file_name.hpp - + + -
-
-
-
- -

Boost Exception

-
- - - -

boost/exception/errinfo_file_name.hpp

-
-

Synopsis

-
#include <boost/exception/error_info.hpp>
-#include <string>
-
-namespace
-boost
-    {
-    typedef error_info<struct errinfo_file_name_,std::string> errinfo_file_name;
-    }
-
- - - - -
-
-
+

Redirecting to index.html#boost_exception_errinfo_file_name_hpp...

diff --git a/doc/boost_exception_errinfo_file_open_mode_hpp.html b/doc/boost_exception_errinfo_file_open_mode_hpp.html index 793a8e0..b490df9 100644 --- a/doc/boost_exception_errinfo_file_open_mode_hpp.html +++ b/doc/boost_exception_errinfo_file_open_mode_hpp.html @@ -1,51 +1,10 @@ - - + + - - boost/exception/errinfo_file_open_mode.hpp - + + -
-
-
-
- -

Boost Exception

-
- - - -

boost/exception/errinfo_file_open_mode.hpp

-
-

Synopsis

-
#include <boost/exception/error_info.hpp>
-#include <string>
-
-namespace
-boost
-    {
-    typedef error_info<struct errinfo_file_open_mode_,std::string> errinfo_file_open_mode;
-    }
-
- - - - -
-
-
+

Redirecting to index.html#boost_exception_errinfo_file_open_mode_hpp...

diff --git a/doc/boost_exception_errinfo_nested_exception_hpp.html b/doc/boost_exception_errinfo_nested_exception_hpp.html index 0c34163..cb4cfbe 100644 --- a/doc/boost_exception_errinfo_nested_exception_hpp.html +++ b/doc/boost_exception_errinfo_nested_exception_hpp.html @@ -1,51 +1,10 @@ - - + + - - boost/exception/errinfo_nested_exception.hpp - + + -
-
-
-
- -

Boost Exception

-
- - - -

boost/exception/errinfo_nested_exception.hpp

-
-

Synopsis

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

Redirecting to index.html#boost_exception_errinfo_nested_exception_hpp...

diff --git a/doc/boost_exception_errinfo_type_info_name_hpp.html b/doc/boost_exception_errinfo_type_info_name_hpp.html index c3a49b2..960d6ee 100644 --- a/doc/boost_exception_errinfo_type_info_name_hpp.html +++ b/doc/boost_exception_errinfo_type_info_name_hpp.html @@ -1,51 +1,10 @@ - - + + - - boost/exception/errinfo_type_info_name.hpp - + + -
-
-
-
- -

Boost Exception

-
- - - -

boost/exception/errinfo_type_info_name.hpp

-
-

Synopsis

-
#include <boost/exception/error_info.hpp>
-#include <string>
-
-namespace
-boost
-    {
-    typedef error_info<struct errinfo_type_info_name_,std::string> errinfo_type_info_name;
-    }
-
- - - - -
-
-
+

Redirecting to index.html#boost_exception_errinfo_type_info_name_hpp...

diff --git a/doc/boost_exception_error_info_hpp.html b/doc/boost_exception_error_info_hpp.html index 19823ba..cd8af37 100644 --- a/doc/boost_exception_error_info_hpp.html +++ b/doc/boost_exception_error_info_hpp.html @@ -1,49 +1,10 @@ - - + + - - boost/exception/error_info.hpp - + + -
-
-
-
- -

Boost Exception

-
- - - -

boost/exception/error_info.hpp

-
-

Synopsis

-
namespace
-boost
-    {
-    template <class Tag,class T>
-    class error_info;
-    }
-
- - - - -
-
-
+

Redirecting to index.html#boost_exception_error_info_hpp...

diff --git a/doc/boost_exception_exception_hpp.html b/doc/boost_exception_exception_hpp.html index c9e8f81..0e052f5 100644 --- a/doc/boost_exception_exception_hpp.html +++ b/doc/boost_exception_exception_hpp.html @@ -1,63 +1,10 @@ - - + + - - boost/exception/exception.hpp - + + -
-
-
-
- -

Boost Exception

-
- - - -

boost/exception/exception.hpp

-
-

Synopsis

-
namespace
-boost
-    {
-    class
-    exception
-        {
-        protected:
-    
-        exception();
-        exception( exception const & x );    
-        ~exception();    
-        };    
-    
-    template <class Tag,class T>
-    class error_info;    
-    
-    typedef error_info<struct throw_function_,char const *> throw_function;
-    typedef error_info<struct throw_file_,char const *> throw_file;
-    typedef error_info<struct throw_line_,int> throw_line;
-    }
-
- - - - -
-
-
+

Redirecting to index.html#boost_exception_exception_hpp...

diff --git a/doc/boost_exception_get_error_info_hpp.html b/doc/boost_exception_get_error_info_hpp.html index 1850ab8..f99bb6b 100644 --- a/doc/boost_exception_get_error_info_hpp.html +++ b/doc/boost_exception_get_error_info_hpp.html @@ -1,54 +1,10 @@ - - + + - - boost/exception/get_error_info.hpp - + + -
-
-
-
- -

Boost Exception

-
- - - -

boost/exception/get_error_info.hpp

-
-

Synopsis

-
#include <boost/shared_ptr.hpp>
-
-namespace
-boost
-    {
-    template <class ErrorInfo,class E>
-    typename ErrorInfo::error_info::value_type const * get_error_info( E const & x );
-    
-    template <class ErrorInfo,class E>
-    typename ErrorInfo::error_info::value_type * get_error_info( E & x );
-    }
-
- - - - -
-
-
+

Redirecting to index.html#boost_exception_get_error_info_hpp...

diff --git a/doc/boost_exception_info_hpp.html b/doc/boost_exception_info_hpp.html index 380f643..9bc828d 100644 --- a/doc/boost_exception_info_hpp.html +++ b/doc/boost_exception_info_hpp.html @@ -1,64 +1,10 @@ - - + + - - boost/exception/info.hpp - + + -
-
-
-
- -

Boost Exception

-
- - - -

boost/exception/info.hpp

-
-

Synopsis

-
#include <boost/exception/exception.hpp>
-
-namespace
-boost
-    {
-    template <class Tag,class T>
-    class
-    error_info
-        {
-        public:
-    
-        typedef T value_type;    
-    
-        error_info( value_type const & v );    
-        value_type const & value() const;
-        value_type & value();    
-        };    
-    
-    template <class E, class Tag, class T>
-    E const & operator<<( E const & x, error_info<Tag,T> const & v );
-    }
-
- - - - -
-
-
+

Redirecting to index.html#boost_exception_info_hpp...

diff --git a/doc/boost_exception_info_tuple_hpp.html b/doc/boost_exception_info_tuple_hpp.html index 4e8c0c4..88c2aee 100644 --- a/doc/boost_exception_info_tuple_hpp.html +++ b/doc/boost_exception_info_tuple_hpp.html @@ -1,56 +1,10 @@ - - + + - - boost/exception/info_tuple.hpp - + + -
-
-
-
- -

Boost Exception

-
- - - -

boost/exception/info_tuple.hpp

-
-

Synopsis

-
#include <boost/exception/info.hpp>
-#include <boost/tuple/tuple.hpp>
-
-namespace
-boost
-    {
-    template <class E, class Tag1, class T1, ..., class TagN, class TN>
-    E const & operator<<( E const & x,
-        tuple<
-            error_info<Tag1,T1>,
-            ...,
-            error_info<TagN,TN> > const & v );
-    }
-
- - - - -
-
-
+

Redirecting to index.html#boost_exception_info_tuple_hpp...

diff --git a/doc/boost_exception_ptr_hpp.html b/doc/boost_exception_ptr_hpp.html index f9129fa..d234064 100644 --- a/doc/boost_exception_ptr_hpp.html +++ b/doc/boost_exception_ptr_hpp.html @@ -1,67 +1,10 @@ - - + + - - boost/exception_ptr.hpp - + + -
-
-
-
- -

Boost Exception

-
- - - -

boost/exception_ptr.hpp

-
-

Synopsis

-
#include <boost/exception/exception.hpp>
-
-namespace
-boost
-    {
-    class
-    unknown_exception:
-        public std::exception
-        public boost::exception
-        {
-        ---unspecified---
-        };    
-    
-    typedef error_info<struct tag_original_exception_type,std::type_info const *> original_exception_type;    
-    
-    typedef ---unspecified--- exception_ptr;    
-    
-    template <class T>
-    exception_ptr copy_exception( T const & e );    
-    
-    exception_ptr current_exception();    
-    
-    void rethrow_exception( exception_ptr const & ep );
-    }
-
- - - - -
-
-
+

Redirecting to index.html#boost_exception_ptr_hpp...

diff --git a/doc/boost_throw_exception_hpp.html b/doc/boost_throw_exception_hpp.html index 2065c46..c9b5e99 100644 --- a/doc/boost_throw_exception_hpp.html +++ b/doc/boost_throw_exception_hpp.html @@ -1,64 +1,10 @@ - - + + - - boost/throw_exception.hpp - + + -
-
-
-
- -

Boost Exception

-
- - - -

boost/throw_exception.hpp

-
-

Synopsis

-
#if !defined( BOOST_EXCEPTION_DISABLE )
-    #include <boost/exception/exception.hpp>
-    #include <boost/current_function.hpp>
-    #define BOOST_THROW_EXCEPTION(x)\
-        ::boost::throw_exception( ::boost::enable_error_info(x) <<\
-        ::boost::throw_file(__FILE__) <<\
-        ::boost::throw_line((int)__LINE__) )
-#else
-    #define BOOST_THROW_EXCEPTION(x) ::boost::throw_exception(x)
-#endif
-
-namespace
-boost
-    {
-#ifdef BOOST_NO_EXCEPTIONS
-    void throw_exception( std::exception const & e ); // user defined
-#else
-    template <class E>
-    void throw_exception( E const & e );
-#endif
-    }
-
- - - - -
-
-
+

Redirecting to index.html#boost_throw_exception_hpp...

diff --git a/doc/configuration_macros.html b/doc/configuration_macros.html index 587230c..16008f3 100644 --- a/doc/configuration_macros.html +++ b/doc/configuration_macros.html @@ -1,54 +1,10 @@ - - + + - - configuration macros - + + -
-
-
-
- -

Boost Exception

-
- - - -

Configuration Macros

-
-

Boost Exception responds to the following configuration macros:

-

BOOST_NO_RTTI 
BOOST_NO_TYPEID (both defined automatically by boost/config.hpp)

-

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 library needs RTTI functionality. Disabling the language RTTI support enables an internal RTTI system, which may have more or less overhead depending on the platform.

-

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.

-

BOOST_NO_EXCEPTIONS (defined automatically by boost/config.hpp)

-

This macro disables exception handling in Boost, forwarding all exceptions to a user-defined non-template version of boost::throw_exception. However, unless BOOST_EXCEPTION_DISABLE is also defined, users can still examine the exception object for any data added at the point of the throw, or use boost::diagnostic_information (of course under BOOST_NO_EXCEPTIONS, the user-defined boost::throw_exception is not allowed to return to the caller.)

-

In addition, the following user-defined macros are recognized:

-

BOOST_EXCEPTION_DISABLE (user-defined)

-

By default, enable_current_exception and enable_error_info are integrated directly in the throw_exception function. Defining BOOST_EXCEPTION_DISABLE disables this integration.

-
- - - - -
-
-
+

Redirecting to index.html#configuration_macros...

diff --git a/doc/copy_exception.html b/doc/copy_exception.html index 906ceed..ac692de 100644 --- a/doc/copy_exception.html +++ b/doc/copy_exception.html @@ -1,59 +1,10 @@ - - + + - - copy_exception - + + -
-
-
-
- -

Boost Exception

-
- - - -

copy_exception

-
-

#include <boost/exception_ptr.hpp>

-
namespace
-boost
-    {
-    template <class T>
-    exception_ptr copy_exception( T const & e );
-    }
-

Effects:

-

As if

-
try
-    {
-    throw enable_current_exception(e);
-    }
-catch(...)
-    {
-    return current_exception();
-    }
-
- - - - -
-
-
+

Redirecting to index.html#copy_exception...

diff --git a/doc/current_exception.html b/doc/current_exception.html index b213da9..711c861 100644 --- a/doc/current_exception.html +++ b/doc/current_exception.html @@ -1,64 +1,10 @@ - - + + - - current_exception - + + -
-
-
-
- -

Boost Exception

-
- - - -

current_exception

-
-

#include <boost/exception_ptr.hpp>

-
namespace
-boost
-    {
-    exception_ptr current_exception();
-    }
-

Requirements:

-

The current_exception function must not be called outside of a catch block.

-

In addition, to safely copy an exception from one thread to another, if the exception object is copied by current_exception or copy_exception, the two copies must not have shared state. Exceptions that have value-type semantics (as well as the boost::exception type itself) satisfy this requirement.

-

Returns:

-
  • An exception_ptr 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 exception_ptr that refers to an instance of std::bad_alloc.
  • -
-

Throws:

-

Nothing.

-

Notes:

-
  • It is unspecified whether the return values of two successive calls to current_exception refer to the same exception object.
  • -
  • Correct implementation of current_exception may require compiler support (e.g. C++11 std::current_exception() is used when available, as specified by Boost.Config BOOST_NO_CXX11_HDR_EXCEPTION), unless enable_current_exception was used at the time the currently handled exception object was passed to throw. Whenever current_exception fails to properly copy the current exception object, it returns an exception_ptr to an object of type that is as close as possible to the original exception type, using unknown_exception as a final fallback. All such types derive from boost::exception, and:
    -
  • -
-
- - - - -
-
-
+

Redirecting to index.html#current_exception...

diff --git a/doc/current_exception_cast.html b/doc/current_exception_cast.html index 81112a9..8718c8f 100644 --- a/doc/current_exception_cast.html +++ b/doc/current_exception_cast.html @@ -1,55 +1,10 @@ - - + + - - current_exception_cast - + + -
-
-
-
- -

Boost Exception

-
- - - -

current_exception_cast

-
-

#include <boost/exception/current_exception_cast.hpp>

-
namespace
-boost
-    {
-    template <class E>
-    E * current_exception_cast();
-    }
-

Requirements:

-

This function must not be called outside of a catch block.

-

Returns:

-

A pointer of type E to the current exception object, or null if the current exception object can not be converted to E *.

-

Throws:

-

Nothing.

-
- - - - -
-
-
+

Redirecting to index.html#current_exception_cast...

diff --git a/doc/current_exception_diagnostic_information.html b/doc/current_exception_diagnostic_information.html index 25b6841..ed5241f 100644 --- a/doc/current_exception_diagnostic_information.html +++ b/doc/current_exception_diagnostic_information.html @@ -1,72 +1,10 @@ - - + + - - current_exception_diagnostic_information - + + -
-
-
-
- -

Boost Exception

-
- - - -

current_exception_diagnostic_information

-
-

#include <boost/exception/diagnostic_information.hpp> 

-
namespace
-boost
-    {
-    std::string current_exception_diagnostic_information();
-    }
-

Requirements:

-

This function must not be called outside of a catch block.

-

Returns:

-

If the current exception object can be converted to boost::exception or std::exception, this function returns the same string value returned by diagnostic_information for the current exception object. Otherwise, an unspecified non-empty string is returned.

-

Typical use is to call current_exception_diagnostic_information from a top-level function to output diagnostic information about unhandled exceptions:

-
int
-main()
-    {
-    try
-        {
-        run_program();
-        }
-    catch(
-    error & e )
-        {
-        //handle error
-        }
-    catch(
-    ...)
-        {
-        std::cerr << "Unhandled exception!" << std::endl <<
-            boost::current_exception_diagnostic_information();
-        }
-    }
-
- - - - -
-
-
+

Redirecting to index.html#current_exception_diagnostic_information...

diff --git a/doc/diagnostic_information.html b/doc/diagnostic_information.html index 2805813..6020808 100644 --- a/doc/diagnostic_information.html +++ b/doc/diagnostic_information.html @@ -1,82 +1,10 @@ - - + + - - diagnostic_information - + + -
-
-
-
- -

Boost Exception

-
- - - -

diagnostic_information

-
-

#include <boost/exception/diagnostic_information.hpp> 
#include <boost/exception_ptr.hpp> 

-
namespace
-boost
-    {
-    template <class E>
-    std::string diagnostic_information( E const & e, bool verbose=true );
-    
-    std::string diagnostic_information( exception_ptr const & p, bool verbose=true );
-    }
-

Returns:

-

A string value that contains varying amount of diagnostic information about the passed object:

-
  • If E can be statically converted to either boost::exception or to std::exception, dynamic_cast is used to access both the boost::exception and std::exception subobjects of e; otherwise, the boost::diagnostic_information template is not available.
  • -
  • The returned value contains the string representations of all error_info objects stored in the boost::exception subobject through operator<<.
  • -
  • In addition, if verbose is true, it contains other diagnostic information relevant to the exception, including the string returned by std::exception::what().
  • -
-

The string representation of each error_info object is deduced by an unqualified call to to_string(x), where x is of type error_info<Tag,T>, for which Boost Exception defines a generic overload. It converts x.value() to string, attempting to bind (at the time the error_info<Tag,T> template is instantiated) the following functions in order:

-
  1. Unqualified call to to_string(x.value()) (the return value is expected to be of type std::string.)
  2. -
  3. Unqualified call to s << x.value(), where s is a std::ostringstream.
  4. -
-

The first successfully bound function is used at the time diagnostic_information is called; if both overload resolutions are unsuccessful, the system is unable to convert the error_info object to string, and an unspecified stub string value is used without issuing a compile error.

-

The exception_ptr overload of diagnostic_information is equivalent to:

-
if( p )
-    try
-        {
-        rethrow_exception(p);
-        }
-    catch(...)
-        {
-        return current_exception_diagnostic_information(verbose);
-        }
-else return <unspecified-string-value>;
-

Example:

-

this is a possible output from the diagnostic_information function, as used in libs/exception/example/example_io.cpp:

-
example_io.cpp(70): Throw in function class boost::shared_ptr<struct _iobuf> __cdecl my_fopen(const char *,const char *)
-Dynamic exception type: class boost::exception_detail::clone_impl<struct fopen_error>
-std::exception::what: example_io error
-[struct boost::errinfo_api_function_ *] = fopen
-[struct boost::errinfo_errno_ *] = 2, "No such file or directory"
-[struct boost::errinfo_file_name_ *] = tmp1.txt
-[struct boost::errinfo_file_open_mode_ *] = rb
-
- - - - -
-
-
+

Redirecting to index.html#diagnostic_information...

diff --git a/doc/diagnostic_information_what.html b/doc/diagnostic_information_what.html index 3ed8979..28562c1 100644 --- a/doc/diagnostic_information_what.html +++ b/doc/diagnostic_information_what.html @@ -1,55 +1,10 @@ - - + + - - diagnostic_information_what - + + -
-
-
-
- -

Boost Exception

-
- - - -

diagnostic_information_what

-
-

#include <boost/exception/diagnostic_information.hpp> 

-
namespace
-boost
-    {
-    char const * diagnostic_information_what( boost::exception const & e, bool verbose=true ) throw();
-    }
-

The diagnostic_information_what function is intended to be called from a user-defined std::exception::what() override. This allows diagnostic information to be returned as the what() string.

-

Returns:

-

A pointer to a zero-terminated buffer that contains a string similar to the std::string returned by the diagnostic_information function, or null to indicate a failure.

-

Throws:

-

Nothing.

-

Note:

-

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

-
- - - - -
-
-
+

Redirecting to index.html#diagnostic_information_what...

diff --git a/doc/docinfo.html b/doc/docinfo.html new file mode 100644 index 0000000..5e64c36 --- /dev/null +++ b/doc/docinfo.html @@ -0,0 +1,12 @@ + + + + diff --git a/doc/enable_current_exception.html b/doc/enable_current_exception.html index eb3951e..9a40de5 100644 --- a/doc/enable_current_exception.html +++ b/doc/enable_current_exception.html @@ -1,68 +1,10 @@ - - + + - - enable_current_exception - + + -
-
-
-
- -

Boost Exception

-
- - - -

enable_current_exception

-
-

#include <boost/exception/enable_current_exception.hpp>

-
namespace
-boost
-    {
-    template <class T>
-    ---unspecified--- enable_current_exception( T const & e );
-    }
-

Requirements:

-
  • T must be a class with an accessible no-throw copy constructor.
  • -
  • If T has any virtual base types, those types must have an accessible default constructor.
  • -
-

Returns:

-

An object of unspecified type which derives publicly from T. That is, the returned object can be intercepted by a catch(T &).

-

Description:

-

This function is designed to be used directly in a throw-expression to enable the exception_ptr support in Boost Exception. For example:

-
class
-my_exception:
-    public std::exception
-    {
-    };
-
-....
-throw boost::enable_current_exception(my_exception());
-

Unless enable_current_exception is called at the time an exception object is used in a throw-expression, an attempt to copy it using current_exception may return an exception_ptr which refers to an instance of unknown_exception. See current_exception for details.

-

Note:

-

Instead of using the throw keyword directly, it is preferable to call boost::throw_exception. This is guaranteed to throw an exception that derives from boost::exception and supports the exception_ptr functionality.

-
- - - - -
-
-
+

Redirecting to index.html#enable_current_exception...

diff --git a/doc/enable_error_info.html b/doc/enable_error_info.html index 9a0a4ab..11a7cb6 100644 --- a/doc/enable_error_info.html +++ b/doc/enable_error_info.html @@ -1,57 +1,10 @@ - - + + - - enable_error_info - + + -
-
-
-
- -

Boost Exception

-
- - - -

enable_error_info

-
-

#include <boost/exception/enable_error_info.hpp>

-
namespace
-boost
-    {
-    template <class T>
-    ---unspecified--- enable_error_info( T const & x );
-    }
-

Requirements:

-

T must be a class with an accessible no-throw copy constructor as per (15.5.1).

-

Returns:

-
  • If T derives from boost::exception, 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::exception. The T sub-object is initialized from x by the T copy constructor.
  • -
-

Throws:

-

Nothing.

-
- - - - -
-
-
+

Redirecting to index.html#enable_error_info...

diff --git a/doc/errinfo_api_function.html b/doc/errinfo_api_function.html index 314d364..3a5c201 100644 --- a/doc/errinfo_api_function.html +++ b/doc/errinfo_api_function.html @@ -1,97 +1,10 @@ - - + + - - errinfo_api_function - + + -
-
-
-
- -

Boost Exception

-
- - - -

errinfo_api_function

-
-

#include <boost/exception/errinfo_api_function.hpp>

-
#include <boost/exception/error_info.hpp>
-
-namespace
-boost
-    {
-    typedef error_info<struct errinfo_api_function_,char const *> errinfo_api_function;
-    }
-

This type is designed to be used as a standard error_info instance for transporting the name of a relevant API function (which does not use exceptions to report errors) in exceptions deriving from boost::exception.

-

Example:

-
#include <boost/exception/errinfo_api_function.hpp>
-#include <boost/exception/errinfo_at_line.hpp>
-#include <boost/exception/errinfo_errno.hpp>
-#include <boost/exception/errinfo_file_handle.hpp>
-#include <boost/exception/errinfo_file_name.hpp>
-#include <boost/exception/errinfo_file_open_mode.hpp>
-#include <boost/exception/info.hpp>
-#include <boost/throw_exception.hpp>
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
-#include <stdio.h>
-#include <errno.h>
-#include <exception>
-
-struct error : virtual std::exception, virtual boost::exception { };
-struct file_error : virtual error { };
-struct file_open_error: virtual file_error { };
-struct file_read_error: virtual file_error { };
-
-boost::shared_ptr<FILE>
-open_file( char const * file, char const * mode )
-    {
-    if( FILE * f=fopen(file,mode) )
-        return boost::shared_ptr<FILE>(f,fclose);
-    else
-        BOOST_THROW_EXCEPTION(
-            file_open_error() <<
-            boost::errinfo_api_function("fopen") <<
-            boost::errinfo_errno(errno) <<
-            boost::errinfo_file_name(file) <<
-            boost::errinfo_file_open_mode(mode) );
-    }
-
-size_t
-read_file( boost::shared_ptr<FILE> const & f, void * buf, size_t size )
-    {
-    size_t nr=fread(buf,1,size,f.get());
-    if( ferror(f.get()) )
-        BOOST_THROW_EXCEPTION(
-            file_read_error() <<
-            boost::errinfo_api_function("fread") <<
-            boost::errinfo_errno(errno) <<
-            boost::errinfo_file_handle(f) );
-    return nr;
-    }
-
- - - - -
-
-
+

Redirecting to index.html#errinfo_api_function...

diff --git a/doc/errinfo_at_line.html b/doc/errinfo_at_line.html index 12da454..cad206c 100644 --- a/doc/errinfo_at_line.html +++ b/doc/errinfo_at_line.html @@ -1,97 +1,10 @@ - - + + - - errinfo_at_line - + + -
-
-
-
- -

Boost Exception

-
- - - -

errinfo_at_line

-
-

#include <boost/exception/errinfo_at_line.hpp>

-
#include <boost/exception/error_info.hpp>
-
-namespace
-boost
-    {
-    typedef error_info<struct errinfo_at_line_,int> errinfo_at_line;
-    }
-

This type is designed to be used as a standard error_info instance for transporting a relevant text file line number, for example in parse error exceptions deriving from boost::exception.

-

Example:

-
#include <boost/exception/errinfo_api_function.hpp>
-#include <boost/exception/errinfo_at_line.hpp>
-#include <boost/exception/errinfo_errno.hpp>
-#include <boost/exception/errinfo_file_handle.hpp>
-#include <boost/exception/errinfo_file_name.hpp>
-#include <boost/exception/errinfo_file_open_mode.hpp>
-#include <boost/exception/info.hpp>
-#include <boost/throw_exception.hpp>
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
-#include <stdio.h>
-#include <errno.h>
-#include <exception>
-
-struct error : virtual std::exception, virtual boost::exception { };
-struct file_error : virtual error { };
-struct file_open_error: virtual file_error { };
-struct file_read_error: virtual file_error { };
-
-boost::shared_ptr<FILE>
-open_file( char const * file, char const * mode )
-    {
-    if( FILE * f=fopen(file,mode) )
-        return boost::shared_ptr<FILE>(f,fclose);
-    else
-        BOOST_THROW_EXCEPTION(
-            file_open_error() <<
-            boost::errinfo_api_function("fopen") <<
-            boost::errinfo_errno(errno) <<
-            boost::errinfo_file_name(file) <<
-            boost::errinfo_file_open_mode(mode) );
-    }
-
-size_t
-read_file( boost::shared_ptr<FILE> const & f, void * buf, size_t size )
-    {
-    size_t nr=fread(buf,1,size,f.get());
-    if( ferror(f.get()) )
-        BOOST_THROW_EXCEPTION(
-            file_read_error() <<
-            boost::errinfo_api_function("fread") <<
-            boost::errinfo_errno(errno) <<
-            boost::errinfo_file_handle(f) );
-    return nr;
-    }
-
- - - - -
-
-
+

Redirecting to index.html#errinfo_at_line...

diff --git a/doc/errinfo_errno.html b/doc/errinfo_errno.html index 245aea7..cba87a7 100644 --- a/doc/errinfo_errno.html +++ b/doc/errinfo_errno.html @@ -1,98 +1,10 @@ - - + + - - errinfo_errno - + + -
-
-
-
- -

Boost Exception

-
- - - -

errinfo_errno

-
-

#include <boost/exception/errinfo_errno.hpp>

-
#include <boost/exception/error_info.hpp>
-#include <errno.h>
-
-namespace
-boost
-    {
-    typedef error_info<struct errinfo_errno_,int> errinfo_errno;
-    }
-

This type is designed to be used as a standard error_info instance for transporting a relevant errno value in exceptions deriving from boost::exception.

-

Example:

-
#include <boost/exception/errinfo_api_function.hpp>
-#include <boost/exception/errinfo_at_line.hpp>
-#include <boost/exception/errinfo_errno.hpp>
-#include <boost/exception/errinfo_file_handle.hpp>
-#include <boost/exception/errinfo_file_name.hpp>
-#include <boost/exception/errinfo_file_open_mode.hpp>
-#include <boost/exception/info.hpp>
-#include <boost/throw_exception.hpp>
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
-#include <stdio.h>
-#include <errno.h>
-#include <exception>
-
-struct error : virtual std::exception, virtual boost::exception { };
-struct file_error : virtual error { };
-struct file_open_error: virtual file_error { };
-struct file_read_error: virtual file_error { };
-
-boost::shared_ptr<FILE>
-open_file( char const * file, char const * mode )
-    {
-    if( FILE * f=fopen(file,mode) )
-        return boost::shared_ptr<FILE>(f,fclose);
-    else
-        BOOST_THROW_EXCEPTION(
-            file_open_error() <<
-            boost::errinfo_api_function("fopen") <<
-            boost::errinfo_errno(errno) <<
-            boost::errinfo_file_name(file) <<
-            boost::errinfo_file_open_mode(mode) );
-    }
-
-size_t
-read_file( boost::shared_ptr<FILE> const & f, void * buf, size_t size )
-    {
-    size_t nr=fread(buf,1,size,f.get());
-    if( ferror(f.get()) )
-        BOOST_THROW_EXCEPTION(
-            file_read_error() <<
-            boost::errinfo_api_function("fread") <<
-            boost::errinfo_errno(errno) <<
-            boost::errinfo_file_handle(f) );
-    return nr;
-    }
-
- - - - -
-
-
+

Redirecting to index.html#errinfo_errno...

diff --git a/doc/errinfo_file_handle.html b/doc/errinfo_file_handle.html index 6d48c87..14d6380 100644 --- a/doc/errinfo_file_handle.html +++ b/doc/errinfo_file_handle.html @@ -1,98 +1,10 @@ - - + + - - errinfo_file_handle - + + -
-
-
-
- -

Boost Exception

-
- - - -

errinfo_file_handle

-
-

#include <boost/exception/errinfo_file_handle.hpp>

-
#include <boost/exception/error_info.hpp>
-
-namespace
-boost
-    {
-    template <class> class weak_ptr;
-    typedef error_info<struct errinfo_file_handle_,weak_ptr<FILE> > errinfo_file_handle;
-    }
-

This type is designed to be used as a standard error_info instance for transporting a relevant FILE pointer managed by a boost::shared_ptr<FILE> in exceptions deriving from boost::exception.

-

Example:

-
#include <boost/exception/errinfo_api_function.hpp>
-#include <boost/exception/errinfo_at_line.hpp>
-#include <boost/exception/errinfo_errno.hpp>
-#include <boost/exception/errinfo_file_handle.hpp>
-#include <boost/exception/errinfo_file_name.hpp>
-#include <boost/exception/errinfo_file_open_mode.hpp>
-#include <boost/exception/info.hpp>
-#include <boost/throw_exception.hpp>
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
-#include <stdio.h>
-#include <errno.h>
-#include <exception>
-
-struct error : virtual std::exception, virtual boost::exception { };
-struct file_error : virtual error { };
-struct file_open_error: virtual file_error { };
-struct file_read_error: virtual file_error { };
-
-boost::shared_ptr<FILE>
-open_file( char const * file, char const * mode )
-    {
-    if( FILE * f=fopen(file,mode) )
-        return boost::shared_ptr<FILE>(f,fclose);
-    else
-        BOOST_THROW_EXCEPTION(
-            file_open_error() <<
-            boost::errinfo_api_function("fopen") <<
-            boost::errinfo_errno(errno) <<
-            boost::errinfo_file_name(file) <<
-            boost::errinfo_file_open_mode(mode) );
-    }
-
-size_t
-read_file( boost::shared_ptr<FILE> const & f, void * buf, size_t size )
-    {
-    size_t nr=fread(buf,1,size,f.get());
-    if( ferror(f.get()) )
-        BOOST_THROW_EXCEPTION(
-            file_read_error() <<
-            boost::errinfo_api_function("fread") <<
-            boost::errinfo_errno(errno) <<
-            boost::errinfo_file_handle(f) );
-    return nr;
-    }
-
- - - - -
-
-
+

Redirecting to index.html#errinfo_file_handle...

diff --git a/doc/errinfo_file_name.html b/doc/errinfo_file_name.html index 33cd0cc..ff3a11e 100644 --- a/doc/errinfo_file_name.html +++ b/doc/errinfo_file_name.html @@ -1,98 +1,10 @@ - - + + - - errinfo_file_name - + + -
-
-
-
- -

Boost Exception

-
- - - -

errinfo_file_name

-
-

#include <boost/exception/errinfo_file_name.hpp>

-
#include <boost/exception/error_info.hpp>
-#include <string>
-
-namespace
-boost
-    {
-    typedef error_info<struct errinfo_file_name_,std::string> errinfo_file_name;
-    }
-

This type is designed to be used as a standard error_info instance for transporting a relevant file name in exceptions deriving from boost::exception.

-

Example:

-
#include <boost/exception/errinfo_api_function.hpp>
-#include <boost/exception/errinfo_at_line.hpp>
-#include <boost/exception/errinfo_errno.hpp>
-#include <boost/exception/errinfo_file_handle.hpp>
-#include <boost/exception/errinfo_file_name.hpp>
-#include <boost/exception/errinfo_file_open_mode.hpp>
-#include <boost/exception/info.hpp>
-#include <boost/throw_exception.hpp>
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
-#include <stdio.h>
-#include <errno.h>
-#include <exception>
-
-struct error : virtual std::exception, virtual boost::exception { };
-struct file_error : virtual error { };
-struct file_open_error: virtual file_error { };
-struct file_read_error: virtual file_error { };
-
-boost::shared_ptr<FILE>
-open_file( char const * file, char const * mode )
-    {
-    if( FILE * f=fopen(file,mode) )
-        return boost::shared_ptr<FILE>(f,fclose);
-    else
-        BOOST_THROW_EXCEPTION(
-            file_open_error() <<
-            boost::errinfo_api_function("fopen") <<
-            boost::errinfo_errno(errno) <<
-            boost::errinfo_file_name(file) <<
-            boost::errinfo_file_open_mode(mode) );
-    }
-
-size_t
-read_file( boost::shared_ptr<FILE> const & f, void * buf, size_t size )
-    {
-    size_t nr=fread(buf,1,size,f.get());
-    if( ferror(f.get()) )
-        BOOST_THROW_EXCEPTION(
-            file_read_error() <<
-            boost::errinfo_api_function("fread") <<
-            boost::errinfo_errno(errno) <<
-            boost::errinfo_file_handle(f) );
-    return nr;
-    }
-
- - - - -
-
-
+

Redirecting to index.html#errinfo_file_name...

diff --git a/doc/errinfo_file_open_mode.html b/doc/errinfo_file_open_mode.html index 4de6cce..132c682 100644 --- a/doc/errinfo_file_open_mode.html +++ b/doc/errinfo_file_open_mode.html @@ -1,98 +1,10 @@ - - + + - - errinfo_file_open_mode - + + -
-
-
-
- -

Boost Exception

-
- - - -

errinfo_file_open_mode

-
-

#include <boost/exception/errinfo_file_open_mode.hpp>

-
#include <boost/exception/error_info.hpp>
-#include <string>
-
-namespace
-boost
-    {
-    typedef error_info<struct errinfo_file_open_mode_,std::string> errinfo_file_open_mode;
-    }
-

This type is designed to be used as a standard error_info instance for transporting the string passed as a second argument to fopen in exceptions indicating fopen failures and deriving from boost::exception.

-

Example:

-
#include <boost/exception/errinfo_api_function.hpp>
-#include <boost/exception/errinfo_at_line.hpp>
-#include <boost/exception/errinfo_errno.hpp>
-#include <boost/exception/errinfo_file_handle.hpp>
-#include <boost/exception/errinfo_file_name.hpp>
-#include <boost/exception/errinfo_file_open_mode.hpp>
-#include <boost/exception/info.hpp>
-#include <boost/throw_exception.hpp>
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
-#include <stdio.h>
-#include <errno.h>
-#include <exception>
-
-struct error : virtual std::exception, virtual boost::exception { };
-struct file_error : virtual error { };
-struct file_open_error: virtual file_error { };
-struct file_read_error: virtual file_error { };
-
-boost::shared_ptr<FILE>
-open_file( char const * file, char const * mode )
-    {
-    if( FILE * f=fopen(file,mode) )
-        return boost::shared_ptr<FILE>(f,fclose);
-    else
-        BOOST_THROW_EXCEPTION(
-            file_open_error() <<
-            boost::errinfo_api_function("fopen") <<
-            boost::errinfo_errno(errno) <<
-            boost::errinfo_file_name(file) <<
-            boost::errinfo_file_open_mode(mode) );
-    }
-
-size_t
-read_file( boost::shared_ptr<FILE> const & f, void * buf, size_t size )
-    {
-    size_t nr=fread(buf,1,size,f.get());
-    if( ferror(f.get()) )
-        BOOST_THROW_EXCEPTION(
-            file_read_error() <<
-            boost::errinfo_api_function("fread") <<
-            boost::errinfo_errno(errno) <<
-            boost::errinfo_file_handle(f) );
-    return nr;
-    }
-
- - - - -
-
-
+

Redirecting to index.html#errinfo_file_open_mode...

diff --git a/doc/errinfo_nested_exception.html b/doc/errinfo_nested_exception.html index 6a4ec8b..2134950 100644 --- a/doc/errinfo_nested_exception.html +++ b/doc/errinfo_nested_exception.html @@ -1,52 +1,10 @@ - - + + - - errinfo_nested_exception - + + -
-
-
-
- -

Boost Exception

-
- - - -

errinfo_nested_exception

-
-

#include <boost/exception/errinfo_nested_exception.hpp>

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

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

-
- - - - -
-
-
+

Redirecting to index.html#errinfo_nested_exception...

diff --git a/doc/errinfo_type_info_name.html b/doc/errinfo_type_info_name.html index 21287ec..530ee30 100644 --- a/doc/errinfo_type_info_name.html +++ b/doc/errinfo_type_info_name.html @@ -1,52 +1,10 @@ - - + + - - errinfo_type_info_name - + + -
-
-
-
- -

Boost Exception

-
- - - -

errinfo_type_info_name

-
-

#include <boost/exception/errinfo_type_info_name.hpp>

-
#include <boost/exception/error_info.hpp>
-#include <string>
-
-namespace
-boost
-    {
-    typedef error_info<struct errinfo_type_info_name_,std::string> errinfo_type_info_name;
-    }
-

This type is designed to be used as a standard error_info instance for transporting strings returned by std::type_info::name in exceptions deriving from boost::exception objects.

-
- - - - -
-
-
+

Redirecting to index.html#errinfo_type_info_name...

diff --git a/doc/error_info.html b/doc/error_info.html index cc598b7..dc55c71 100644 --- a/doc/error_info.html +++ b/doc/error_info.html @@ -1,90 +1,10 @@ - - + + - - error_info - + + -
-
-
-
- -

Boost Exception

-
- - - -

error_info

-
-

#include <boost/exception/info.hpp>

-
namespace
-boost
-    {
-    template <class Tag,class T>
-    class
-    error_info
-        {
-        public:
-    
-        typedef T value_type;    
-    
-        error_info( value_type const & v );    
-        value_type const & value() const;
-        value_type & value();    
-        };
-    }
-

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.

-

Usage:

-

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, for example:

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

Or, the shorter equivalent:

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

This errno_info typedef can be passed to operator<< (#include <boost/exception/info.hpp> first) to store an int named tag_errno in exceptions of types that derive from boost::exception:

-
throw file_read_error() << errno_info(errno);
-

It can also be passed to get_error_info (#include <boost/exception/get_error_info.hpp> first) to retrieve the tag_errno int from a boost::exception:

-
catch( boost::exception & x )
-    {
-    if( int const * e=boost::get_error_info<errno_info>(x) )
-        ....
-    }
-

For convenience and uniformity, Boost Exception defines the following commonly used error_info typedefs, ready for use with operator<<:

- -
- - - - -
-
-
+

Redirecting to index.html#error_info...

diff --git a/doc/error_info_error_info.html b/doc/error_info_error_info.html index 5efe9e2..c6f05e9 100644 --- a/doc/error_info_error_info.html +++ b/doc/error_info_error_info.html @@ -1,48 +1,10 @@ - - + + - - error_info::error_info - + + -
-
-
-
- -

Boost Exception

-
- - - -

error_info::error_info

-
-

#include <boost/exception/info.hpp>

-
error_info( value_type const & v );
-

Effects:

-

Stores a copy of v in the error_info object.

-

Throws:

-

Any exception emitted by v's copy constructor.

-

-See also: error_info -
- - - - -
-
-
+

Redirecting to index.html#error_info_error_info...

diff --git a/doc/error_info_value.html b/doc/error_info_value.html index ba7179c..6303cc0 100644 --- a/doc/error_info_value.html +++ b/doc/error_info_value.html @@ -1,49 +1,10 @@ - - + + - - error_info::value - + + -
-
-
-
- -

Boost Exception

-
- - - -

error_info::value

-
-

#include <boost/exception/info.hpp>

-
value_type const & value() const;
-value_type & value();
-

Description:

-

Returns a (const) reference to the copy of the value passed to error_info's constructor stored in the error_info object.

-

Throws:

-

Nothing.

-
- - - - -
-
-
+

Redirecting to index.html#error_info_value...

diff --git a/doc/error_info_value_type.html b/doc/error_info_value_type.html index 73fbe5b..49e6760 100644 --- a/doc/error_info_value_type.html +++ b/doc/error_info_value_type.html @@ -1,46 +1,10 @@ - - + + - - error_info::value_type - + + -
-
-
-
- -

Boost Exception

-
- - - -

error_info::value_type

-
-

#include <boost/exception/info.hpp>

-
typedef T value_type;
-

Definition:

-

The expression error_info<Tag,T>::value_type evaluates to T.

-
- - - - -
-
-
+

Redirecting to index.html#error_info_value_type...

diff --git a/doc/exception-theme.yml b/doc/exception-theme.yml new file mode 100644 index 0000000..6128b38 --- /dev/null +++ b/doc/exception-theme.yml @@ -0,0 +1,28 @@ +extends: default +base: + font: + color: #404040 +literal: + font: + family: Courier + color: #000000 +admonition: + icon: + note: + stroke-color: #000000 + tip: + stroke-color: #000000 + warning: + stroke-color: #FF5100 + important: + stroke-color: #FF5100 + caution: + stroke-color: #FF5100 +conum: + font: + glyphs: circled + color: #000000 +link: + text-decoration: underline + text-decoration-width: 0.5 + font-color: #000000 diff --git a/doc/exception.adoc b/doc/exception.adoc new file mode 100644 index 0000000..08e26ba --- /dev/null +++ b/doc/exception.adoc @@ -0,0 +1,2055 @@ +// Copyright 2006-2026 Emil Dotchevski and Reverge Studios, Inc. +// Distributed under the Boost Software License, Version 1.0. +// (See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) + +:last-update-label!: +:icons: font +:prewrap!: +:docinfo: shared +:stylesheet: zajo-dark.css +:source-highlighter: rouge + +ifdef::backend-pdf[] += Boost Exception +endif::[] +ifndef::backend-pdf[] += Boost Exceptionpass:[
] +endif::[] +{CPP} Exception Augmentation Library | Emil Dotchevski +ifndef::backend-pdf[] +:toc: left +:toclevels: 3 +:toc-title: +endif::[] + +[[boost-exception]] + +[cols="25,>75", grid=none, frame=none] +|=== +| +|For {CPP}11 or newer, consider using https://www.boost.org/doc/libs/release/libs/leaf/doc/html/index.html[Boost LEAF]. It provides similar functionality more efficiently and understands Boost Exception for compatibility; see https://www.boost.org/doc/libs/release/libs/leaf/doc/html/index.html#boost_exception[this overview]. +|=== + +== 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 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html[N2179]-style <> of exception objects, implemented non-intrusively and automatically by the `boost::<>` function. + +ifndef::backend-pdf[] +[grid=none, frame=none] +|==== +| <> \| <> \| <> >| <> \| <> \| <> +|==== +endif::[] + +[[tutorial]] +== Tutorial + +[[tutorial_transporting_data]] +=== Transporting of Arbitrary Data to the Catch Site + +All exception types that derive from `boost::<>` can be used as type-safe containers of arbitrary data objects, while complying with the no-throw requirements (15.5.1) of the ANSI {CPP} standard for exception types. + +When exceptions derive from `boost::<>`, arbitrary data can be added to exception objects: + +* At the point of the throw; +* At a later time as exceptions bubble up the call stack. + +==== Adding of Arbitrary Data at the Point of the Throw + +The following example demonstrates how errno can be stored in exception objects using Boost Exception: + +[source,c++] +---- +#include +#include + +typedef boost::error_info my_info; //(1) + +struct my_error: virtual boost::exception, virtual std::exception { }; //(2) + +void +f() + { + throw my_error() << my_info(42); //(3) + } +---- +[.text-right] +<> | <> | <> + +First, we instantiate the `<>` template using a unique identifier -- tag_my_info, and the type of the info it identifies -- int. This provides compile-time type safety for the various values stored in exception objects. + +Second, we define class my_error, which derives from `boost::<>`. + +Finally, (3) illustrates how the typedef from (1) can be used with `<>` to store values in exception objects at the point of the throw. + +The stored my_info value can be recovered at a later time like this: + +[source,c++] +---- +// ...continued + +void +g() + { + try + { + f(); + } + catch( + my_error & x ) + { + if( int const * mi=boost::get_error_info(x) ) + std::cerr << "My info: " << *mi; + } + } +---- +[.text-right] +<> + +The `<>` function template is instantiated with the typedef from (1), and is passed an exception object of a polymorphic type. If the exception object contains the requested value, err will point to it; otherwise a null pointer is returned. + +==== Adding of Arbitrary Data to Active Exception Objects + +Sometimes the throw site does not have all the information that is needed at the catch site to make sense of what went wrong. Let's say we have an exception type file_read_error, which takes a file name in its constructor. Consider the following function: + +[source,c++] +---- +void +file_read( FILE * f, void * buffer, size_t size ) + { + if( size!=fread(buffer,1,size,f) ) + throw file_read_error(????); + } +---- + +How can the file_read function pass a file name to the exception type constructor? All it has is a FILE handle. + +Using `boost::<>` allows us to free the file_read function from the burden of storing the file name in exceptions it throws: + +[source,c++] +---- +#include +#include +#include +#include + +struct file_read_error: virtual boost::exception { }; + +void +file_read( FILE * f, void * buffer, size_t size ) + { + if( size!=fread(buffer,1,size,f) ) + throw file_read_error() << boost::errinfo_errno(errno); + } +---- +[.text-right] +<> | <> + +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: + +[source,c++] +---- +#include +#include +#include +#include + +boost::shared_ptr 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 f = file_open(file_name,"rb"); + assert(f); + try + { + char buf[1024]; + file_read( f.get(), buf, sizeof(buf) ); + } + catch( + boost::exception & e ) + { + e << boost::errinfo_file_name(file_name); + throw; + } + } +---- +[.text-right] +<> | <> + +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::<>` object, stores the file name, and re-throws using a throw-expression with no operand (15.1.6). The rationale for catching any `boost::<>` 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_. + +==== Adding Grouped Data to Exceptions + +The code snippet below demonstrates how `boost::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: + +[source,c++] +---- +#include +#include +#include +#include +#include +#include +#include +#include + +typedef boost::tuple clib_failure; + +struct file_open_error: virtual boost::exception { }; + +boost::shared_ptr +file_open( char const * name, char const * mode ) + { + if( FILE * f=fopen(name,mode) ) + return boost::shared_ptr(f,fclose); + else + throw file_open_error() << + boost::errinfo_file_name(name) << + clib_failure("fopen",errno); + } +---- +[.text-right] +<> | <> | <> | <> + +Note that the members of a `boost::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 `<>`. + +''' + +[[tutorial_enable_error_info]] +=== Integrating Boost Exception in Existing Exception Class Hierarchies + +Some exception hierarchies can not be modified to make `boost::<>` a base type. In this case, the `<>` function template can be used to make exception objects derive from `boost::<>` anyway. Here is an example: + +[source,c++] +---- +#include +#include + +typedef boost::error_info std_range_min; +typedef boost::error_info std_range_max; +typedef boost::error_info std_range_index; + +template +class +my_container + { + public: + + size_t size() const; + + T const & + operator[]( size_t i ) const + { + if( i > size() ) + throw boost::enable_error_info(std::range_error("Index out of range")) << + std_range_min(0) << + std_range_max(size()) << + std_range_index(i); + //.... + } + }; +---- +[.text-right] +<> | <> + +The call to `<>` gets us an object of _unspecified type_ which is guaranteed to derive from both `boost::<>` and T. This makes it possible to use `<>` 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::<>` &, so that <>. + +''' + +[[tutorial_exception_ptr]] +=== Transporting of Exceptions Between Threads + +Boost Exception supports transporting of exception objects between threads through cloning. This system is similar to 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 `<>` at the time of the throw is required in order to use cloning. + +NOTE: All exceptions emitted by the familiar function `boost::<>` are guaranteed to derive from `boost::<>` and to support cloning. + +==== Using enable_current_exception at the Time of the Throw + +Here is how cloning can be enabled in a throw-expression (15.1): + +[source,c++] +---- +#include +#include +#include +#include + +struct file_read_error: virtual boost::exception { }; + +void +file_read( FILE * f, void * buffer, size_t size ) + { + if( size!=fread(buffer,1,size,f) ) + throw boost::enable_current_exception(file_read_error()) << + boost::errinfo_errno(errno); + } +---- +[.text-right] +<> | <> + +Of course, `<>` may be used with any exception type; there is no requirement that it should derive from `boost::<>`. + +==== Cloning and Re-Throwing an Exception + +When you catch an exception, you can call `<>` to get an `<>` object: + +[source,c++] +---- +#include +#include +#include + +void do_work(); //throws cloning-enabled boost::exceptions + +void +worker_thread( boost::exception_ptr & error ) + { + try + { + do_work(); + error = boost::exception_ptr(); + } + catch( + ... ) + { + error = boost::current_exception(); + } + } +---- +[.text-right] +<> | <> + +In the above example, note that `<>` captures the original type of the exception object. The exception can be thrown again using the `<>` function: + +[source,c++] +---- +// ...continued + +void +work() + { + boost::exception_ptr error; + boost::thread t( boost::bind(worker_thread,boost::ref(error)) ); + t.join(); + if( error ) + boost::rethrow_exception(error); + } +---- +[.text-right] +<> | <> + +Note that `<>` could fail to copy the original exception object in the following cases: + +* if there is not enough memory, in which case the returned `<>` points to an instance of std::bad_alloc, or +* if `<>` 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 `<>` points to an instance of `<>`. + +Regardless, the use of `<>` and `<>` in the above examples is well-formed. + +''' + +[[exception_types_as_simple_semantic_tags]] +=== Exception Types as Simple Semantic Tags + +Deriving from `boost::<>` effectively decouples the semantics of a failure from the information that is relevant to each individual instance of reporting a failure with a given semantic. + +In other words: with `boost::<>`, what data a given exception object transports depends primarily on the context in which failures are reported (not on its type.) Since exception types need no members, it becomes very natural to throw exceptions that derive from more than one type to indicate multiple appropriate semantics: + +[source,c++] +---- +struct exception_base: virtual std::exception, virtual boost::exception { }; +struct io_error: virtual exception_base { }; +struct file_error: virtual io_error { }; +struct read_error: virtual io_error { }; +struct file_read_error: virtual file_error, virtual read_error { }; +---- +[.text-right] +<> + +Using this approach, exception types become a simple tagging system for categorizing errors and selecting failures in exception handlers. + +''' + +[[using_virtual_inheritance_in_exception_types]] +=== Using Virtual Inheritance in Exception Types + +Exception types should use virtual inheritance when deriving from other exception types. This insight is due to Andrew Koenig. Using virtual inheritance prevents ambiguity problems in the exception handler: + +[source,c++] +---- +#include +struct my_exc1 : std::exception { char const* what() const throw(); }; +struct my_exc2 : std::exception { char const* what() const throw(); }; +struct your_exc3 : my_exc1, my_exc2 {}; + +int +main() + { + try { throw your_exc3(); } + catch(std::exception const& e) {} + catch(...) { std::cout << "whoops!" << std::endl; } + } +---- + +The program above outputs "whoops!" because the conversion to std::exception is ambiguous. + +The overhead introduced by virtual inheritance is always negligible in the context of exception handling. Note that virtual bases are initialized directly by the constructor of the most-derived-type (the type passed to the throw statement, in case of exceptions.) However, typically this detail is of no concern when `boost::<>` is used, because it enables exception types to be trivial structs with no members (there's nothing to initialize.) See <>. + +''' + +[[tutorial_diagnostic_information]] +=== Diagnostic Information + +Boost Exception provides a namespace-scope function `<>` which takes a `boost::<>`. The returned string contains: + +* the string representation of all data objects added to the `boost::<>` through `<>`; +* 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: + +[source,c++] +---- +#include +#include + +void f(); //throws unknown types that derive from boost::exception. + +void +g() + { + try + { + f(); + } + catch( + boost::exception & e ) + { + std::cerr << diagnostic_information(e); + } + } +---- +[.text-right] +<> + +.Example: +this is a possible output from the `<>` function, as used in _libs/exception/example/example_io.cpp:_ + +---- +example_io.cpp(70): Throw in function class boost::shared_ptr __cdecl my_fopen(const char *,const char *) +Dynamic exception type: class boost::exception_detail::clone_impl +std::exception::what: example_io error +[struct boost::errinfo_api_function_ *] = fopen +[struct boost::errinfo_errno_ *] = 2, "No such file or directory" +[struct boost::errinfo_file_name_ *] = tmp1.txt +[struct boost::errinfo_file_open_mode_ *] = rb +---- + +[[synopsis]] +== Synopsis + +This section lists each public header file, documenting the definitions it provides. + +[[synopsis-exception]] +=== `exception.hpp` + +==== +.#include +[source,c++] +---- +namespace boost +{ + class exception + { + protected: + exception(); + exception( exception const & x ); + ~exception(); + }; + + template + class error_info; + + typedef error_info throw_function; + typedef error_info throw_file; + typedef error_info throw_line; +} +---- + +[.text-right] +Reference: <> | <> +==== + +[[synopsis-error_info]] +=== `error_info.hpp` + +==== +.#include +[source,c++] +---- +namespace boost +{ + template + class error_info; +} +---- + +[.text-right] +Reference: <> +==== + +[[synopsis-info]] +=== `info.hpp` + +==== +.#include +[source,c++] +---- +#include + +namespace boost +{ + template + class error_info + { + public: + typedef T value_type; + + error_info( value_type const & v ); + + value_type const & value() const; + value_type & value(); + }; + + template + E const & operator<<( E const & x, error_info const & v ); +} +---- + +[.text-right] +Reference: <> | <> +==== + +[[synopsis-info_tuple]] +=== `info_tuple.hpp` + +==== +.#include +[source,c++] +---- +#include +#include + +namespace boost +{ + template + E const & operator<<( E const & x, + tuple< + error_info, + ..., + error_info > const & v ); +} +---- + +[.text-right] +Reference: <> +==== + +[[synopsis-enable_error_info]] +=== `enable_error_info.hpp` + +==== +.#include +[source,c++] +---- +#include + +namespace boost +{ + template + ---unspecified--- enable_error_info( T const & x ); +} +---- + +[.text-right] +Reference: <> +==== + +[[synopsis-diagnostic_information]] +=== `diagnostic_information.hpp` + +==== +.#include +[source,c++] +---- +#include + +namespace boost +{ + class exception; + + template + std::string diagnostic_information( E const & e, bool verbose=true ); + + std::string diagnostic_information( exception_ptr const & p, bool verbose=true ); + + char const * diagnostic_information_what( boost::exception const & e, bool verbose=true ) throw(); + + std::string current_exception_diagnostic_information(); +} +---- + +[.text-right] +Reference: <> | <> | <> +==== + +[[synopsis-current_exception_cast]] +=== `current_exception_cast.hpp` + +==== +.#include +[source,c++] +---- +namespace boost +{ + template + E * current_exception_cast(); +} +---- + +[.text-right] +Reference: <> +==== + +[[synopsis-exception_ptr]] +=== `exception_ptr.hpp` + +==== +.#include +[source,c++] +---- +#include + +namespace boost +{ + class unknown_exception: + public std::exception + public boost::exception + { + ---unspecified--- + }; + + typedef error_info original_exception_type; + + typedef ---unspecified--- exception_ptr; + + template + exception_ptr copy_exception( T const & e ); + + exception_ptr current_exception(); + + void rethrow_exception( exception_ptr const & ep ); +} +---- + +[.text-right] +Reference: <> | <> | <> | <> | <> | <> +==== + +[[synopsis-enable_current_exception]] +=== `enable_current_exception.hpp` + +==== +.#include +[source,c++] +---- +#include + +namespace boost +{ + template + ---unspecified--- enable_current_exception( T const & e ); +} +---- + +[.text-right] +Reference: <> +==== + +[[synopsis-throw_exception]] +=== `throw_exception.hpp` + +==== +.#include +[source,c++] +---- +#if !defined( BOOST_EXCEPTION_DISABLE ) + #include + #include + #define BOOST_THROW_EXCEPTION(x)\ + ::boost::throw_exception( ::boost::enable_error_info(x) <<\ + ::boost::throw_file(__FILE__) <<\ + ::boost::throw_line((int)__LINE__) ) +#else + #define BOOST_THROW_EXCEPTION(x) ::boost::throw_exception(x) +#endif + +namespace boost +{ +#ifdef BOOST_NO_EXCEPTIONS + void throw_exception( std::exception const & e ); // user defined +#else + template + void throw_exception( E const & e ); +#endif +} +---- + +[.text-right] +Reference: <> | <> +==== + +[[synopsis-errinfo_api_function]] +=== `errinfo_api_function.hpp` + +==== +.#include +[source,c++] +---- +#include + +namespace boost +{ + typedef error_info errinfo_api_function; +} +---- + +[.text-right] +Reference: <> +==== + +[[synopsis-errinfo_at_line]] +=== `errinfo_at_line.hpp` + +==== +.#include +[source,c++] +---- +#include + +namespace boost +{ + typedef error_info errinfo_at_line; +} +---- + +[.text-right] +Reference: <> +==== + +[[synopsis-errinfo_errno]] +=== `errinfo_errno.hpp` + +==== +.#include +[source,c++] +---- +#include +#include + +namespace boost +{ + typedef error_info errinfo_errno; +} +---- + +[.text-right] +Reference: <> +==== + +[[synopsis-errinfo_file_handle]] +=== `errinfo_file_handle.hpp` + +==== +.#include +[source,c++] +---- +#include + +namespace boost +{ + template class weak_ptr; + typedef error_info > errinfo_file_handle; +} +---- + +[.text-right] +Reference: <> +==== + +[[synopsis-errinfo_file_name]] +=== `errinfo_file_name.hpp` + +==== +.#include +[source,c++] +---- +#include +#include + +namespace boost +{ + typedef error_info errinfo_file_name; +} +---- + +[.text-right] +Reference: <> +==== + +[[synopsis-errinfo_file_open_mode]] +=== `errinfo_file_open_mode.hpp` + +==== +.#include +[source,c++] +---- +#include +#include + +namespace boost +{ + typedef error_info errinfo_file_open_mode; +} +---- + +[.text-right] +Reference: <> +==== + +[[synopsis-errinfo_nested_exception]] +=== `errinfo_nested_exception.hpp` + +==== +.#include +[source,c++] +---- +#include + +namespace boost +{ + typedef ---unspecified--- exception_ptr; + typedef error_info errinfo_nested_exception; +} +---- + +[.text-right] +Reference: <> +==== + +[[synopsis-errinfo_type_info_name]] +=== `errinfo_type_info_name.hpp` + +==== +.#include +[source,c++] +---- +#include +#include + +namespace boost +{ + typedef error_info errinfo_type_info_name; +} +---- + +[.text-right] +Reference: <> +==== + +[[synopsis-all]] +=== `all.hpp` + +==== +.#include +[source,c++] +---- +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#ifndef BOOST_NO_EXCEPTIONS +#include +#include +#endif +---- + +This header includes all Boost Exception headers except `<>` (unless BOOST_NO_EXCEPTIONS is defined.) +==== + +[[reference]] +== Reference + +TIP: The contents of each Reference section are organized alphabetically. + +ifndef::backend-pdf[] +[grid=none, frame=none] +|==== +| <> \| <> \| <> \| <> +|==== +endif::[] + +[[types]] +=== Types + +[[exception]] +==== `exception` + +.#include +[source,c++] +---- +namespace boost +{ + class exception + { + protected: + + exception(); + exception( exception const & x ); + ~exception(); + }; +} +---- + +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 `<>` wrapper and `<>`. + +To retrieve data from a `boost::exception` object, use the `<>` function template. + +[[exception_constructors]] +===== `exception::exception` + +[source,c++] +---- +exception(); +exception( exception const & x ); +---- + +Effects: :: ++ +-- +* Default constructor: initializes an empty `boost::exception` object. +* Copy constructor: initializes a `boost::exception` object which shares with x the pointers to all currently stored data. Subsequently, data can be added to or retrieved from both exception objects interchangeably, however doing so concurrently from multiple threads is undefined behavior. +-- + +Throws: :: Nothing. + +[[exception_destructor]] +===== `exception::~exception` + +[source,c++] +---- +~exception(); +---- + +Effects: :: Releases all resources associated with the `boost::exception` object. + +Throws: :: Nothing. + +''' + +[[error_info]] +==== `error_info` + +.#include +[source,c++] +---- +namespace boost +{ + template + class error_info + { + public: + + typedef T value_type; + + error_info( value_type const & v ); + + value_type const & value() const; + value_type & value(); + }; +} +---- + +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.) + +This class template is used to associate a Tag type with a value type T. Objects of type `error_info` can be passed to `<>` to be stored in objects of type `boost::<>`. + +The header `` provides a declaration of the `error_info` template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, for example: + +[source,c++] +---- +#include + +struct tag_errno; +typedef boost::error_info errno_info; +---- + +Or, the shorter equivalent: + +[source,c++] +---- +#include + +typedef boost::error_info errno_info; +---- + +This errno_info typedef can be passed to `<>` (#include `` first) to store an int named tag_errno in exceptions of types that derive from `boost::<>`: + +[source,c++] +---- +throw file_read_error() << errno_info(errno); +---- + +It can also be passed to `<>` (#include `` first) to retrieve the tag_errno int from a `boost::<>`: + +[source,c++] +---- +catch( boost::exception & x ) + { + if( int const * e=boost::get_error_info(x) ) + .... + } +---- + +For convenience and uniformity, Boost Exception defines the following commonly used `error_info` typedefs, ready for use with `<>`: + +* <> +* <> +* <> +* <> +* <> +* <> +* <> +* <> + +[[error_info_error_info]] +===== `error_info::error_info` + +[source,c++] +---- +error_info( value_type const & v ); +---- + +Effects: :: Stores a copy of v. + +Throws: :: Whatever T's copy constructor throws. + +[[error_info_value_type]] +===== `error_info::value_type` + +[source,c++] +---- +typedef T value_type; +---- + +This type is the same as the `error_info` T parameter. + +[[error_info_value]] +===== `error_info::value` + +[source,c++] +---- +value_type const & value() const; +value_type & value(); +---- + +Returns: :: A reference to the copy of the value passed to the `error_info` constructor. + +Throws: :: Nothing. + +''' + +[[errinfo_api_function]] +==== `errinfo_api_function` + +.#include +[source,c++] +---- +#include + +namespace boost +{ + typedef error_info errinfo_api_function; +} +---- + +This type is designed to be used as a standard `<>` instance for transporting the name of a failed API function in exceptions deriving from `boost::<>`. + +''' + +[[errinfo_at_line]] +==== `errinfo_at_line` + +.#include +[source,c++] +---- +#include + +namespace boost +{ + typedef error_info errinfo_at_line; +} +---- + +This type is designed to be used as a standard `<>` instance for transporting a line number in exceptions deriving from `boost::<>`. + +''' + +[[errinfo_errno]] +==== `errinfo_errno` + +.#include +[source,c++] +---- +#include +#include + +namespace boost +{ + typedef error_info errinfo_errno; +} +---- + +This type is designed to be used as a standard `<>` instance for transporting a relevant errno value in exceptions deriving from `boost::<>`. + +.Example: +[source,c++] +---- +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +struct error : virtual std::exception, virtual boost::exception { }; +struct file_error : virtual error { }; +struct file_open_error: virtual file_error { }; +struct file_read_error: virtual file_error { }; + +boost::shared_ptr +open_file( char const * file, char const * mode ) + { + if( FILE * f=fopen(file,mode) ) + return boost::shared_ptr(f,fclose); + else + BOOST_THROW_EXCEPTION( + file_open_error() << + boost::errinfo_api_function("fopen") << + boost::errinfo_errno(errno) << + boost::errinfo_file_name(file) << + boost::errinfo_file_open_mode(mode) ); + } + +size_t +read_file( boost::shared_ptr const & f, void * buf, size_t size ) + { + size_t nr=fread(buf,1,size,f.get()); + if( ferror(f.get()) ) + BOOST_THROW_EXCEPTION( + file_read_error() << + boost::errinfo_api_function("fread") << + boost::errinfo_errno(errno) << + boost::errinfo_file_handle(f) ); + return nr; + } +---- + +''' + +[[errinfo_file_handle]] +==== `errinfo_file_handle` + +.#include +[source,c++] +---- +#include + +namespace boost +{ + template class weak_ptr; + typedef error_info > errinfo_file_handle; +} +---- + +This type is designed to be used as a standard `<>` instance for transporting a FILE pointer in exceptions deriving from `boost::<>`. + +''' + +[[errinfo_file_name]] +==== `errinfo_file_name` + +.#include +[source,c++] +---- +#include +#include + +namespace boost +{ + typedef error_info errinfo_file_name; +} +---- + +This type is designed to be used as a standard `<>` instance for transporting a file name in exceptions deriving from `boost::<>`. + +''' + +[[errinfo_file_open_mode]] +==== `errinfo_file_open_mode` + +.#include +[source,c++] +---- +#include +#include + +namespace boost +{ + typedef error_info errinfo_file_open_mode; +} +---- + +This type is designed to be used as a standard `<>` instance for transporting a fopen file open mode in exceptions deriving from `boost::<>`. + +''' + +[[errinfo_nested_exception]] +==== `errinfo_nested_exception` + +.#include +[source,c++] +---- +#include + +namespace boost +{ + typedef ---unspecified--- exception_ptr; + typedef error_info errinfo_nested_exception; +} +---- + +This type is designed to be used as a standard `<>` instance for transporting a nested exception in exceptions deriving from `boost::<>`. + +''' + +[[errinfo_type_info_name]] +==== `errinfo_type_info_name` + +.#include +[source,c++] +---- +#include +#include + +namespace boost +{ + typedef error_info errinfo_type_info_name; +} +---- + +This type is designed to be used as a standard `<>` instance for transporting a type name in exceptions deriving from `boost::<>`. + +''' + +[[exception_ptr]] +==== `exception_ptr` + +.#include +[source,c++] +---- +namespace boost +{ + typedef ---unspecified--- exception_ptr; +} +---- + +The `exception_ptr` type can be used to refer to a copy of an exception object. It is Default Constructible, Copy Constructible, Assignable and Equality Comparable; `exception_ptr`'s operations do not throw. + +The referenced object remains valid at least as long as there is an `exception_ptr` object that refers to it. + +Two instances of `exception_ptr` are equivalent and compare equal if and only if they refer to the same exception. + +The default constructor of `exception_ptr` produces the null value of the type. The null value is equivalent only to itself. + +Thread safety: :: The `exception_ptr` type is "as thread-safe as built-in types": ++ +-- +* An `exception_ptr` instance can be "read" simultaneously by multiple threads +* Different `exception_ptr` instances can be "written to" simultaneously by multiple threads, even when these instances refer to the same exception object +-- ++ +All other simultaneous accesses result in undefined behavior. + +Nesting of exceptions: :: An `exception_ptr` can be added as `<>` to any `boost::<>`. This is a convenient way to nest exceptions. There is no limit on the depth of the nesting, however cyclic references result in undefined behavior. + +''' + +[[original_exception_type]] +==== `original_exception_type` + +.#include +[source,c++] +---- +namespace boost +{ + typedef error_info original_exception_type; +} +---- + +This type is used by the `<>` support in Boost Exception. Please see `<>`. + +''' + +[[unknown_exception]] +==== `unknown_exception` + +.#include +[source,c++] +---- +namespace boost +{ + class unknown_exception: + public std::exception + public boost::exception + { + ---unspecified--- + }; +} +---- + +This type is used by the `<>` support in Boost Exception. Please see `<>`. + +''' + +[[functions]] +=== Functions + +[[copy_exception]] +==== `copy_exception` + +.#include +[source,c++] +---- +namespace boost +{ + template + exception_ptr copy_exception( T const & e ); +} +---- + +Effects: :: As if ++ +[source,c++] +---- +try + { + throw enable_current_exception(e); + } +catch(...) + { + return current_exception(); + } +---- + +''' + +[[current_exception]] +==== `current_exception` + +.#include +[source,c++] +---- +namespace boost +{ + exception_ptr current_exception(); +} +---- + +Requirements: :: The `current_exception` function must not be called outside of a catch block. ++ +In addition, to safely copy an exception from one thread to another, if the exception object is copied by `current_exception` or `<>`, the two copies must not have shared state. Exceptions that have value-type semantics (as well as the `boost::<>` type itself) satisfy this requirement. + +Returns: :: ++ +-- +* An `<>` 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 `<>` that refers to an instance of std::bad_alloc. +-- + +Throws: :: Nothing. + +Notes: :: ++ +-- +* It is unspecified whether the return values of two successive calls to `current_exception` refer to the same exception object. +* Correct implementation of `current_exception` may require compiler support (e.g. {CPP}11 https://en.cppreference.com/w/cpp/error/current_exception[std::current_exception()] is used when available, as specified by Boost.Config BOOST_NO_CXX11_HDR_EXCEPTION), unless `<>` was used at the time the currently handled exception object was passed to throw. Whenever `current_exception` fails to properly copy the current exception object, it returns an `<>` to an object of type that is as close as possible to the original exception type, using `<>` as a final fallback. All such types derive from `boost::<>`, and: +** if the original exception object derives from `boost::<>`, then the `boost::<>` sub-object of the object referred to by the returned `<>` is initialized by the `boost::<>` copy constructor; +** if available, the exception contains the std::type_info of the original exception object, accessible through `<>`<`<>`>. +-- + +''' + +[[current_exception_cast]] +==== `current_exception_cast` + +.#include +[source,c++] +---- +namespace boost +{ + template + E * current_exception_cast(); +} +---- + +Requirements: :: This function must not be called outside of a catch block. + +Returns: :: A pointer of type E to the current exception object, or null if the current exception object can not be converted to E *. + +Throws: :: Nothing. + +''' + +[[current_exception_diagnostic_information]] +==== `current_exception_diagnostic_information` + +.#include +[source,c++] +---- +namespace boost +{ + std::string current_exception_diagnostic_information(); +} +---- + +Requirements: :: This function must not be called outside of a catch block. + +Returns: :: If the current exception object can be converted to `boost::<>` or std::exception, this function returns the same string value returned by `<>` for the current exception object. Otherwise, an unspecified non-empty string is returned. + +Typical use is to call `current_exception_diagnostic_information` from a top-level function to output diagnostic information about unhandled exceptions: + +[source,c++] +---- +int +main() + { + try + { + run_program(); + } + catch( + error & e ) + { + //handle error + } + catch( + ...) + { + std::cerr << "Unhandled exception!" << std::endl << + boost::current_exception_diagnostic_information(); + } + } +---- + +''' + +[[diagnostic_information]] +==== `diagnostic_information` + +.#include +[source,c++] +---- +namespace boost +{ + template + std::string diagnostic_information( E const & e, bool verbose=true ); + + std::string diagnostic_information( exception_ptr const & p, bool verbose=true ); +} +---- + +Returns: :: A string value that contains varying amount of diagnostic information about the passed object: ++ +-- +* If E can be statically converted to either `boost::<>` or to std::exception, dynamic_cast is used to access both the `boost::<>` and std::exception subobjects of e; otherwise, the `boost::diagnostic_information` template is not available. +* The returned value contains the string representations of all `<>` objects stored in the `boost::<>` subobject through `<>`. +* In addition, if verbose is true, it contains other diagnostic information relevant to the exception, including the string returned by std::exception::what(). +-- ++ +The string representation of each `<>` object is deduced by an unqualified call to to_string(x), where x is of type `<>`, for which Boost Exception defines a generic overload. It converts x.`<>`() to string, attempting to bind (at the time the `<>` template is instantiated) the following functions in order: ++ +-- +1. Unqualified call to to_string(x.`<>`()) (the return value is expected to be of type std::string.) +2. Unqualified call to s << x.`<>`(), where s is a std::ostringstream. +-- ++ +The first successfully bound function is used at the time `diagnostic_information` is called; if both overload resolutions are unsuccessful, the system is unable to convert the `<>` object to string, and _an unspecified stub string value is used without issuing a compile error._ ++ +The `<>` overload of `diagnostic_information` is equivalent to: ++ +[source,c++] +---- +if( p ) + try + { + rethrow_exception(p); + } + catch(...) + { + return current_exception_diagnostic_information(verbose); + } +else return ; +---- + +.Example: +this is a possible output from the `diagnostic_information` function, as used in _libs/exception/example/example_io.cpp:_ + +---- +example_io.cpp(70): Throw in function class boost::shared_ptr __cdecl my_fopen(const char *,const char *) +Dynamic exception type: class boost::exception_detail::clone_impl +std::exception::what: example_io error +[struct boost::errinfo_api_function_ *] = fopen +[struct boost::errinfo_errno_ *] = 2, "No such file or directory" +[struct boost::errinfo_file_name_ *] = tmp1.txt +[struct boost::errinfo_file_open_mode_ *] = rb +---- + +''' + +[[diagnostic_information_what]] +==== `diagnostic_information_what` + +.#include +[source,c++] +---- +namespace boost +{ + char const * diagnostic_information_what( boost::exception const & e, bool verbose=true ) throw(); +} +---- + +The `diagnostic_information_what` function is intended to be called from a user-defined std::exception::what() override. This allows diagnostic information to be returned as the what() string. + +Returns: :: A pointer to a zero-terminated buffer that contains a string similar to the std::string returned by the `<>` function, or null to indicate a failure. + +Throws: :: Nothing. + +Note: :: The returned pointer becomes invalid if any `<>` is modified or added to the exception object, or if another diagnostic information function is called. + +''' + +[[enable_current_exception]] +==== `enable_current_exception` + +.#include +[source,c++] +---- +namespace boost +{ + template + ---unspecified--- enable_current_exception( T const & e ); +} +---- + +Requirements: :: ++ +-- +* T must be a class with an accessible no-throw copy constructor. +* If T has any virtual base types, those types must have an accessible default constructor. +-- + +Returns: :: An object of _unspecified_ type which derives publicly from T. That is, the returned object can be intercepted by a catch(T &). + +This function is designed to be used directly in a throw-expression to enable the `<>` support in Boost Exception. For example: + +[source,c++] +---- +class +my_exception: + public std::exception + { + }; + +.... +throw boost::enable_current_exception(my_exception()); +---- + +Unless `enable_current_exception` is called at the time an exception object is used in a throw-expression, an attempt to copy it using `<>` may return an `<>` which refers to an instance of `<>`. See `<>` for details. + +Note: :: Instead of using the throw keyword directly, it is preferable to call `boost::<>`. This is guaranteed to throw an exception that derives from `boost::<>` and supports the `<>` functionality. + +''' + +[[enable_error_info]] +==== `enable_error_info` + +.#include +[source,c++] +---- +namespace boost +{ + template + ---unspecified--- enable_error_info( T const & x ); +} +---- + +Requirements: :: T must be a class with an accessible no-throw copy constructor as per (15.5.1). + +Returns: :: ++ +-- +* If T derives from `boost::<>`, 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::<>`. The T sub-object is initialized from x by the T copy constructor. +-- + +Throws: :: Nothing. + +''' + +[[get_error_info]] +==== `get_error_info` + +.#include +[source,c++] +---- +namespace boost +{ + template + typename ErrorInfo::value_type const * get_error_info( E const & x ); + + template + typename ErrorInfo::value_type * get_error_info( E & x ); +} +---- + +Requirements: :: ++ +-- +* ErrorInfo must be an instance of the `<>` template. +* E must be polymorphic. +-- + +Returns: :: ++ +-- +* If dynamic_cast> const *>(&x) is 0, or if x does not store an object of type ErrorInfo, the returned value is null. +* Otherwise, the returned pointer points to the stored value (use `<>` to store values in exception objects.) When x is destroyed, any pointers returned by `get_error_info` become invalid. +-- + +Throws: :: Nothing. + +Note: :: The interface of `get_error_info` may be affected by the build <>. + +''' + +[[exception_operator_shl]] +==== `operator<<` + +.#include +[source,c++] +---- +namespace boost +{ + template + E const & operator<<( E const & x, error_info const & v ); +} +---- + +Requirements: :: E must be `boost::<>`, or a type that derives (indirectly) from `boost::<>`. + +Postcondition: :: A copy of v is stored into x. If x already contains data of type `<>`, that data is overwritten. Basic exception safety guarantee. + +Returns: :: x. + +Throws: :: std::bad_alloc, or any exception emitted by the T copy constructor. + +''' + +[[rethrow_exception]] +==== `rethrow_exception` + +.#include +[source,c++] +---- +namespace boost +{ + void rethrow_exception( exception_ptr const & ep ); +} +---- + +Precondition: :: ep shall not be null. + +Throws: :: The exception to which ep refers. + +''' + +[[throw_exception]] +==== `throw_exception` + +Please see https://www.boost.org/doc/libs/release/libs/throw_exception/doc/html/throw_exception.html[Boost.ThrowException]. + +''' + +[[tuple_operator_shl]] +==== `tuple/operator<<` + +.#include +[source,c++] +---- +namespace boost +{ + template + E const & operator<<( E const & x, + tuple< + error_info, + ..., + error_info > const & v ); +} +---- + +Requirements: :: E must be `boost::<>`, or a type that derives (indirectly) from `boost::<>`. + +Effects: :: Equivalent to x << v.http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements[get]<0>() << ... << v.http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#accessing_elements[get](). + +Returns: :: x. + +Throws: :: std::bad_alloc, or any exception emitted by T1..TN copy constructor. + +''' + +[[macros]] +=== Macros + +[[BOOST_THROW_EXCEPTION]] +==== `BOOST_THROW_EXCEPTION` + +Please see https://www.boost.org/doc/libs/release/libs/throw_exception/doc/html/throw_exception.html[Boost.ThrowException]. + +''' + +[[configuration_macros]] +=== Configuration Macros + +Boost Exception responds to the following configuration macros: + +*BOOST_NO_RTTI* + +*BOOST_NO_TYPEID* (both defined automatically by boost/config.hpp) + +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 `<>` function template can be called with any exception type; if BOOST_NO_RTTI is defined, `<>` can be used only with objects of type `boost::<>`. + +Note: :: The library needs RTTI functionality. Disabling the language RTTI support enables an internal RTTI system, which may have more or less overhead depending on the platform. ++ +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_NO_EXCEPTIONS* (defined automatically by boost/config.hpp) + +This macro disables exception handling in Boost, forwarding all exceptions to a user-defined non-template version of `boost::<>`. However, unless BOOST_EXCEPTION_DISABLE is also defined, users can still examine the exception object for any data added at the point of the throw, or use `boost::<>` (of course under BOOST_NO_EXCEPTIONS, the user-defined boost::throw_exception is not allowed to return to the caller.) + +In addition, the following user-defined macros are recognized: + +*BOOST_EXCEPTION_DISABLE* (user-defined) + +By default, `<>` and `<>` are integrated directly in the `<>` function. Defining BOOST_EXCEPTION_DISABLE disables this integration. + +[[motivation]] +== Design Rationale + +Traditionally, when using exceptions to report failures, the throw site: + +* creates an exception object of the appropriate type, and +* stuffs it with data relevant to the detected error. + +A higher context in the program contains a catch statement which: + +* selects failures based on exception types, and +* inspects exception objects for data required to deal with the problem. + +The main issue with this "traditional" approach is that often, the data available at the point of the throw is insufficient for the catch site to handle the failure. + +Here is an example of a catch statement: + +[source,c++] +---- +catch( file_read_error & e ) + { + std::cerr << e.file_name(); + } +---- + +And here is a possible matching throw: + +[source,c++] +---- +void +read_file( FILE * f ) + { + .... + size_t nr=fread(buf,1,count,f); + if( ferror(f) ) + throw file_read_error(???); + .... + } +---- + +Clearly, the problem is that the handler requires a file name but the read_file function does not have a file name to put in the exception object; all it has is a FILE pointer! + +In an attempt to deal with this problem, we could modify read_file to accept a file name: + +[source,c++] +---- +void +read_file( FILE * f, char const * name ) + { + .... + size_t nr=fread(buf,1,count,f); + if( ferror(f) ) + throw file_read_error(name); + .... + } +---- + +This is not a real solution: it simply shifts the burden of supplying a file name to the immediate caller of the read_file function. + +In general, the data required to handle a given library-emitted exception depends on the program that links to it. Many contexts between the throw and the catch may have relevant information which must be transported to the exception handler. + +=== Exception wrapping + +The idea of exception wrapping is to catch an exception from a lower level function (such as the read_file function above), and throw a new exception object that contains the original exception (and also carries a file name.) This method seems to be particularly popular with {CPP} programmers with Java background. + +Exception wrapping leads to the following problems: + +* To wrap an exception object it must be copied, which may result in slicing. +* Wrapping is practically impossible to use in generic contexts. + +The second point is actually special case of violating the exception neutrality principle. Most contexts in a program can not handle exceptions; such contexts should not interfere with the process of exception handling. + +=== The boost::exception solution + +* Simply derive your exception types from `boost::<>`. +* Confidently limit the throw site to provide only data that is available naturally. +* Use exception-neutral contexts between the throw and the catch to augment exceptions with more relevant data as they bubble up. + +For example, in the throw statement below we only add the errno code, since this is the only failure-relevant information available in this context: + +[source,c++] +---- +struct exception_base: virtual std::exception, virtual boost::exception { }; +struct io_error: virtual exception_base { }; +struct file_read_error: virtual io_error { }; + +typedef boost::error_info errno_code; + +void +read_file( FILE * f ) + { + .... + size_t nr=fread(buf,1,count,f); + if( ferror(f) ) + throw file_read_error() << errno_code(errno); + .... + } +---- +[.text-right] +<> | <> | <> + +In a higher exception-neutral context, we add the file name to _any_ exception that derives from `boost::<>`: + +[source,c++] +---- +typedef boost::error_info file_name; + +.... +try + { + if( FILE * fp=fopen("foo.txt","rt") ) + { + shared_ptr f(fp,fclose); + .... + read_file(fp); //throws types deriving from boost::exception + do_something(); + .... + } + else + throw file_open_error() << errno_code(errno); + } +catch( boost::exception & e ) + { + e << file_name("foo.txt"); + throw; + } +---- +[.text-right] +<> | <> | <> + +Finally here is how the handler retrieves data from exceptions that derive from `boost::<>`: + +[source,c++] +---- +catch( io_error & e ) + { + std::cerr << "I/O Error!\n"; + + if( std::string const * fn=get_error_info(e) ) + std::cerr << "File name: " << *fn << "\n"; + + if( int const * c=get_error_info(e) ) + std::cerr << "OS says: " << strerror(*c) << "\n"; + } +---- +[.text-right] +<> + +In addition, `boost::<>` can be used to compose an automatic (if not user-friendly) message that contains all of the `<>` objects added to a `boost::<>`. This is useful for inclusion in logs and other diagnostic objects. + +[[frequently_asked_questions]] +== Frequently Asked Questions + +=== What is the cost of calling boost::throw_exception? + +The cost is that `boost::<>` is added as a base of the exception emitted by `boost::<>` (unless the passed type already derives from `boost::<>`.) + +Calling `boost::<>` does not cause dynamic memory allocations. + +=== What is the cost of BOOST_THROW_EXCEPTION? + +In addition to calling `boost::<>`, `<>` invokes pass:[__FILE__] and pass:[__LINE__] macros. The space required to store the information is already included in sizeof(boost::<>). + +Calling `<>` does not cause dynamic memory allocations. + +=== Should I use boost::throw_exception or BOOST_THROW_EXCEPTION or just throw? + +The benefit of calling `boost::<>` instead of using throw directly is that it ensures that the emitted exception derives from `boost::<>` and that it is compatible with `boost::<>`. + +The `<>` macro also results in a call to `boost::<>`, but in addition it records in the exception object the pass:[__FILE__] and pass:[__LINE__] of the throw, as well as the pretty name of the function that throws. This enables `boost::<>` to compose a more useful, if not user-friendly message. + +Typical use of `boost::<>` is: + +[source,c++] +---- +catch(...) + { + std::cerr << + "Unexpected exception, diagnostic information follows:\n" << + current_exception_diagnostic_information(); + } +---- + +This is a possible message it may display -- the information in the first line is only available if `<>` was used to throw: + +---- +example_io.cpp(70): Throw in function class boost::shared_ptr __cdecl my_fopen(const char *,const char *) +Dynamic exception type: class boost::exception_detail::clone_impl +std::exception::what: example_io error +[struct boost::errinfo_api_function_ *] = fopen +[struct boost::errinfo_errno_ *] = 2, "No such file or directory" +[struct boost::errinfo_file_name_ *] = tmp1.txt +[struct boost::errinfo_file_open_mode_ *] = rb +---- + +In some development environments, the first line in that message can be clicked to show the location of the throw in the debugger, so it's easy to set a break point and run again to see the unexpected throw in the context of its call stack. + +=== Why doesn't boost::exception derive from std::exception? + +Despite that <>, quite often exception types (including the ones defined in the standard library) don't derive from std::exception virtually. + +If `boost::<>` derives from std::exception, using the `<>` function with such user-defined types would introduce dangerous ambiguity which would break all catch(std::exception &) statements. + +Of course, `boost::<>` should not be used to replace std::exception as a base type in exception type hierarchies. Instead, it should be included as a virtual base, in addition to std::exception (which should probably also be derived virtually.) + +=== Why is boost::exception abstract? + +To prevent exception-neutral contexts from erroneously erasing the type of the original exception when adding `<>` to an active exception object: + +[source,c++] +---- +catch( boost::exception & e ) + { + e << foo_info(foo); + throw e; //Compile error: boost::exception is abstract + } +---- + +The correct code is: + +[source,c++] +---- +catch( boost::exception & e ) + { + e << foo_info(foo); + throw; //Okay, re-throwing the original exception object. + } +---- + +=== Why use operator<< overload for adding info to exceptions? + +Before throwing an object of type that derives from `boost::<>`, it is often desirable to add one or more `<>` objects in it. The syntactic sugar provided by `<>` allows this to be done directly in a throw expression: + +[source,c++] +---- +throw error() << foo_info(foo) << bar_info(bar); +---- + +=== Why is operator<< allowed to throw? + +This question is referring to the following issue. Consider this throw statement example: + +[source,c++] +---- +throw file_open_error() << file_name(fn); +---- + +The intention here is to throw a file_open_error, however if `<>` fails to copy the std::string contained in the file_name `<>` wrapper, a std::bad_alloc could propagate instead. This behavior seems undesirable to some programmers. + +[quote, Bjarne Stroustrup, The {CPP} Programming Language 3rd Edition p. 371] +____ +"Throwing an exception requires an object to throw. A {CPP} implementation is required to have enough spare memory to be able to throw bad_alloc in case of memory exhaustion. However, it is possible that throwing some other exception will cause memory exhaustion." +____ + +Therefore, the language itself does not guarantee that an attempt to throw an exception is guaranteed to throw an object of the specified type; propagating a std::bad_alloc seems to be a possibility even outside of the scope of Boost Exception. + +== Acknowledgements + +Thanks to Peter Dimov for his continuing help. Also thanks to Tobias Schwinger, Tom Brinkman, Pavel Vozenilek and everyone who participated in the review process. + +''' + +Copyright 2006-2026 Emil Dotchevski and Reverge Studios, Inc. + +Distributed under the http://www.boost.org/LICENSE_1_0.txt[Boost Software License, Version 1.0]. diff --git a/doc/exception.html b/doc/exception.html index 6149821..55b42f8 100644 --- a/doc/exception.html +++ b/doc/exception.html @@ -1,59 +1,10 @@ - - + + - - exception - + + -
-
-
-
- -

Boost Exception

-
- - - -

exception

-
-

#include <boost/exception/exception.hpp>

-
namespace
-boost
-    {
-    class
-    exception
-        {
-        protected:
-    
-        exception();
-        exception( exception const & x );    
-        ~exception();    
-        };
-    }
-

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<<.

-

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

-

-

See Also:

- - - - - -
-
-
+

Redirecting to index.html#exception...

diff --git a/doc/exception_constructors.html b/doc/exception_constructors.html index 072fd4a..e16a586 100644 --- a/doc/exception_constructors.html +++ b/doc/exception_constructors.html @@ -1,50 +1,10 @@ - - + + - - exception::exception - + + -
-
-
-
- -

Boost Exception

-
- - - -

exception::exception

-
-
exception();
-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.
  • -
-

Throws:

-

Nothing.

-

-See also: exception -
- - - - -
-
-
+

Redirecting to index.html#exception_constructors...

diff --git a/doc/exception_destructor.html b/doc/exception_destructor.html index f293201..0a4a1da 100644 --- a/doc/exception_destructor.html +++ b/doc/exception_destructor.html @@ -1,47 +1,10 @@ - - + + - - exception::~exception - + + -
-
-
-
- -

Boost Exception

-
- - - -

exception::~exception

-
-
~exception();
-

Effects:

-

Frees all resources associated with a boost::exception object.

-

Throws:

-

Nothing.

-

-See also: exception -
- - - - -
-
-
+

Redirecting to index.html#exception_destructor...

diff --git a/doc/exception_operator_shl.html b/doc/exception_operator_shl.html index fa812d6..8867d7e 100644 --- a/doc/exception_operator_shl.html +++ b/doc/exception_operator_shl.html @@ -1,57 +1,10 @@ - - + + - - exception/operator<< - + + -
-
-
-
- -

Boost 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 );
-    }
-

Requirements:

-

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

-

Postcondition:

-

A copy of v is stored into x. If x already contains data of type error_info<Tag,T>, that data is overwritten. Basic exception safety guarantee.

-

Returns:

-

x.

-

Throws:

-

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

-
- - - - -
-
-
+

Redirecting to index.html#exception_operator_shl...

diff --git a/doc/exception_ptr.html b/doc/exception_ptr.html index e5d6e58..92579f7 100644 --- a/doc/exception_ptr.html +++ b/doc/exception_ptr.html @@ -1,60 +1,10 @@ - - + + - - exception_ptr - + + -
-
-
-
- -

Boost Exception

-
- - - -

exception_ptr

-
-

#include <boost/exception_ptr.hpp>

-
namespace
-boost
-    {
-    typedef ---unspecified--- exception_ptr;
-    }
-

The exception_ptr type can be used to refer to a copy of an exception object. It is Default Constructible, Copy Constructible, Assignable and Equality Comparable; exception_ptr's operations do not throw.

-

The referenced object remains valid at least as long as there is an exception_ptr object that refers to it.

-

Two instances of exception_ptr are equivalent and compare equal if and only if they refer to the same exception.

-

The default constructor of exception_ptr produces the null value of the type. The null value is equivalent only to itself.

-

Thread safety:

-

The exception_ptr type is "as thread-safe as built-in types":

-
  • An exception_ptr instance can be "read" simultaneously by multiple threads
  • -
  • Different exception_ptr instances can be "written to" simultaneously by multiple threads, even when these instances refer to the same exception object
  • -
-

All other simultaneous accesses result in undefined behavior.

-

Nesting of exceptions:

-

An exception_ptr can be added as error_info to any boost::exception. This is a convenient way to nest exceptions. There is no limit on the depth of the nesting, however cyclic references result in undefined behavior.

-
- - - - -
-
-
+

Redirecting to index.html#exception_ptr...

diff --git a/doc/exception_types_as_simple_semantic_tags.html b/doc/exception_types_as_simple_semantic_tags.html index dc0e7d1..882735a 100644 --- a/doc/exception_types_as_simple_semantic_tags.html +++ b/doc/exception_types_as_simple_semantic_tags.html @@ -1,50 +1,10 @@ - - + + - - exception types as simple semantic tags - + + -
-
-
-
- -

Boost Exception

-
- - - -

Exception Types as Simple Semantic Tags

-
-

Deriving from boost::exception effectively decouples the semantics of a failure from the information that is relevant to each individual instance of reporting a failure with a given semantic.

-

In other words: with boost::exception, what data a given exception object transports depends primarily on the context in which failures are reported (not on its type.) Since exception types need no members, it becomes very natural to throw exceptions that derive from more than one type to indicate multiple appropriate semantics:

-
struct exception_base: virtual std::exception, virtual boost::exception { };
-struct io_error: virtual exception_base { };
-struct file_error: virtual io_error { };
-struct read_error: virtual io_error { };
-struct file_read_error: virtual file_error, virtual read_error { };
-

Using this approach, exception types become a simple tagging system for categorizing errors and selecting failures in exception handlers.

-
- - - - -
-
-
+

Redirecting to index.html#exception_types_as_simple_semantic_tags...

diff --git a/doc/frequently_asked_questions.html b/doc/frequently_asked_questions.html index b5a06c8..9ac1dff 100644 --- a/doc/frequently_asked_questions.html +++ b/doc/frequently_asked_questions.html @@ -1,94 +1,10 @@ - - + + - - frequently asked questions - + + -
-
-
-
- -

Boost Exception

-
- - - -

Frequently Asked Questions

-
-

What is the cost of calling boost::throw_exception?

-

The cost is that boost::exception is added as a base of the exception emitted by boost::throw_exception (unless the passed type already derives from boost::exception.)

-

Calling boost::throw_exception does not cause dynamic memory allocations.

-

What is the cost of BOOST_THROW_EXCEPTION?

-

In addition to calling boost::throw_exception, BOOST_THROW_EXCEPTION invokes __FILE__ and __LINE__ macros. The space required to store the information is already included in sizeof(boost::exception).

-

Calling BOOST_THROW_EXCEPTION does not cause dynamic memory allocations.

-

Should I use boost::throw_exception or BOOST_THROW_EXCEPTION or just throw?

-

The benefit of calling boost::throw_exception instead of using throw directly is that it ensures that the emitted exception derives from boost::exception and that it is compatible with boost::current_exception.

-

The BOOST_THROW_EXCEPTION macro also results in a call to boost::throw_exception, but in addition it records in the exception object the __FILE__ and __LINE__ of the throw, as well as the pretty name of the function that throws. This enables boost::diagnostic_information to compose a more useful, if not user-friendly message.

-

Typical use of boost::diagnostic_information is:

-
catch(...)
-    {
-    std::cerr <<
-        "Unexpected exception, diagnostic information follows:\n" <<
-        current_exception_diagnostic_information();
-    }
-

This is a possible message it may display -- the information in the first line is only available if BOOST_THROW_EXCEPTION was used to throw:

-
example_io.cpp(70): Throw in function class boost::shared_ptr<struct _iobuf> __cdecl my_fopen(const char *,const char *)
-Dynamic exception type: class boost::exception_detail::clone_impl<class fopen_error>
-std::exception::what: example_io error
-[struct boost::errinfo_api_function_ *] = fopen
-[struct boost::errinfo_errno_ *] = 2, "No such file or directory"
-[struct boost::errinfo_file_name_ *] = tmp1.txt
-[struct boost::errinfo_file_open_mode_ *] = rb
-

In some development environments, the first line in that message can be clicked to show the location of the throw in the debugger, so it's easy to set a break point and run again to see the unexpected throw in the context of its call stack.

-

Why doesn't boost::exception derive from std::exception?

-

Despite that virtual inheritance should be used in deriving from base exception types, quite often exception types (including the ones defined in the standard library) don't derive from std::exception virtually.

-

If boost::exception derives from std::exception, using the enable_error_info function with such user-defined types would introduce dangerous ambiguity which would break all catch(std::exception &) statements.

-

Of course, boost::exception should not be used to replace std::exception as a base type in exception type hierarchies. Instead, it should be included as a virtual base, in addition to std::exception (which should probably also be derived virtually.)

-

Why is boost::exception abstract?

-

To prevent exception-neutral contexts from erroneously erasing the type of the original exception when adding error_info to an active exception object:

-
catch( boost::exception & e )
-    {
-    e << foo_info(foo);
-    throw e; //Compile error: boost::exception is abstract
-    }
-

The correct code is:

-
catch( boost::exception & e )
-    {
-    e << foo_info(foo);
-    throw; //Okay, re-throwing the original exception object.
-    }
-

Why use operator<< overload for adding info to exceptions?

-

Before throwing an object of type that derives from boost::exception, it is often desirable to add one or more error_info objects in it. The syntactic sugar provided by operator<< allows this to be done directly in a throw expression:

-
throw error() << foo_info(foo) << bar_info(bar);
-

Why is operator<< allowed to throw?

-

This question is referring to the following issue. Consider this throw statement example:

-
throw file_open_error() << file_name(fn);
-

The intention here is to throw a file_open_error, however if operator<< fails to copy the std::string contained in the file_name error_info wrapper, a std::bad_alloc could propagate instead. This behavior seems undesirable to some programmers.

-

Bjarne Stroustrup, The C++ Programming Language, 3rd Edition, page 371:

-

"Throwing an exception requires an object to throw. A C++ implementation is required to have enough spare memory to be able to throw bad_alloc in case of memory exhaustion. However, it is possible that throwing some other exception will cause memory exhaustion."

-

Therefore, the language itself does not guarantee that an attempt to throw an exception is guaranteed to throw an object of the specified type; propagating a std::bad_alloc seems to be a possibility even outside of the scope of Boost Exception.

-

-See also: Boost Exception | Motivation -
- - - - -
-
-
+

Redirecting to index.html#frequently_asked_questions...

diff --git a/doc/functions.html b/doc/functions.html index c9271ff..5686ce9 100644 --- a/doc/functions.html +++ b/doc/functions.html @@ -1,66 +1,10 @@ - - + + - - Functions - + + - +

Redirecting to index.html#functions...

diff --git a/doc/get_error_info.html b/doc/get_error_info.html index 73c6770..d37e4a6 100644 --- a/doc/get_error_info.html +++ b/doc/get_error_info.html @@ -1,63 +1,10 @@ - - + + - - get_error_info - + + -
-
-
-
- -

Boost Exception

-
- - - -

get_error_info

-
-
namespace
-boost
-    {
-    template <class ErrorInfo,class E>
-    typename ErrorInfo::error_info::value_type const * get_error_info( E const & x );
-    
-    template <class ErrorInfo,class E>
-    typename ErrorInfo::error_info::value_type * get_error_info( E & x );
-    }
-

Requirements:

-
  • ErrorInfo must be an instance of the error_info template.
  • -
  • E must be polymorphic.
  • -
-

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 null.
  • -
  • Otherwise, the returned pointer points to the stored value (use operator<< to store values in exception objects.) When x is destroyed, any pointers returned by get_error_info become invalid.
  • -
-

Throws:

-

Nothing.

-

Note:

-

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

-
- - - - -
-
-
+

Redirecting to index.html#get_error_info...

diff --git a/doc/headers.html b/doc/headers.html index c2f6c28..3ef1d92 100644 --- a/doc/headers.html +++ b/doc/headers.html @@ -1,62 +1,10 @@ - - + + - - Headers - + + - +

Redirecting to index.html#synopsis...

diff --git a/doc/html/rouge-github.css b/doc/html/rouge-github.css new file mode 100644 index 0000000..b126f17 --- /dev/null +++ b/doc/html/rouge-github.css @@ -0,0 +1,199 @@ +.highlight table td { padding: 5px; } +.highlight table pre { margin: 0; } +.highlight .cm { + color: #999988; + font-style: italic; +} +.highlight .cp { + color: #999999; + font-weight: bold; +} +.highlight .c1 { + color: #999988; + font-style: italic; +} +.highlight .cs { + color: #999999; + font-weight: bold; + font-style: italic; +} +.highlight .c, .highlight .cd { + color: #999988; + font-style: italic; +} +.highlight .err { +} +.highlight .gd { + color: #000000; + background-color: #ffdddd; +} +.highlight .ge { + color: #000000; + font-style: italic; +} +.highlight .gr { + color: #aa0000; +} +.highlight .gh { + color: #999999; +} +.highlight .gi { + color: #000000; + background-color: #ddffdd; +} +.highlight .go { + color: #888888; +} +.highlight .gp { + color: #555555; +} +.highlight .gs { + font-weight: bold; +} +.highlight .gu { + color: #aaaaaa; +} +.highlight .gt { + color: #aa0000; +} +.highlight .kc { + font-weight: bold; +} +.highlight .kd { + font-weight: bold; +} +.highlight .kn { + font-weight: bold; +} +.highlight .kp { + font-weight: bold; +} +.highlight .kr { + font-weight: bold; +} +.highlight .kt { + color: #445588; + font-weight: bold; +} +.highlight .k, .highlight .kv { + font-weight: bold; +} +.highlight .mf { + color: #009999; +} +.highlight .mh { + color: #009999; +} +.highlight .il { + color: #009999; +} +.highlight .mi { + color: #009999; +} +.highlight .mo { + color: #009999; +} +.highlight .m, .highlight .mb, .highlight .mx { + color: #009999; +} +.highlight .sb { + color: #d14; +} +.highlight .sc { + color: #d14; +} +.highlight .sd { + color: #d14; +} +.highlight .s2 { + color: #d14; +} +.highlight .se { + color: #d14; +} +.highlight .sh { + color: #d14; +} +.highlight .si { + color: #d14; +} +.highlight .sx { + color: #d14; +} +.highlight .sr { + color: #009926; +} +.highlight .s1 { + color: #d14; +} +.highlight .ss { + color: #990073; +} +.highlight .s { + color: #d14; +} +.highlight .na { + color: #008080; +} +.highlight .bp { + color: #999999; +} +.highlight .nb { + color: #0086B3; +} +.highlight .nc { + color: #445588; + font-weight: bold; +} +.highlight .no { + color: #008080; +} +.highlight .nd { + color: #3c5d5d; + font-weight: bold; +} +.highlight .ni { + color: #800080; +} +.highlight .ne { + color: #990000; + font-weight: bold; +} +.highlight .nf { + color: #990000; + font-weight: bold; +} +.highlight .nl { + color: #990000; + font-weight: bold; +} +.highlight .nn { + color: #555555; +} +.highlight .nt { + color: #000080; +} +.highlight .vc { + color: #008080; +} +.highlight .vg { + color: #008080; +} +.highlight .vi { + color: #008080; +} +.highlight .nv { + color: #008080; +} +.highlight .ow { + font-weight: bold; +} +.highlight .o { + font-weight: bold; +} +.highlight .o { + font-weight: bold; +} +.highlight .w { + color: #bbbbbb; +} diff --git a/doc/html/skin.png b/doc/html/skin.png new file mode 100644 index 0000000..23540cc Binary files /dev/null and b/doc/html/skin.png differ diff --git a/doc/html/zajo-dark.css b/doc/html/zajo-dark.css new file mode 100644 index 0000000..374ef39 --- /dev/null +++ b/doc/html/zajo-dark.css @@ -0,0 +1,479 @@ +/* Asciidoctor default stylesheet | MIT License | http://asciidoctor.org */ +/* Uncomment @import statement below to use as custom stylesheet */ +/*@import "https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700";*/ + +/* Zajo's custom font import. The rest of the customizations are at the bottom of this css file, which is otherwise kept unchanged */ +@import "https://fonts.googleapis.com/css?family=Anonymous+Pro|Istok+Web|Quicksand|Smooch+Sans|Poiret+One"; + +article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block} +audio,canvas,video{display:inline-block} +audio:not([controls]){display:none;height:0} +script{display:none!important} +html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%} +a{background:transparent} +a:focus{outline:thin dotted} +a:active,a:hover{outline:0} +h1{font-size:2em;margin:.67em 0} +abbr[title]{border-bottom:1px dotted} +b,strong{font-weight:bold} +dfn{font-style:italic} +hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0} +mark{background:#ff0;color:#000} +code,kbd,pre,samp{font-family:monospace;font-size:1em} +pre{white-space:pre-wrap} +q{quotes:"\201C" "\201D" "\2018" "\2019"} +small{font-size:80%} +sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline} +sup{top:-.5em} +sub{bottom:-.25em} +img{border:0} +svg:not(:root){overflow:hidden} +figure{margin:0} +fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em} +legend{border:0;padding:0} +button,input,select,textarea{font-family:inherit;font-size:100%;margin:0} +button,input{line-height:normal} +button,select{text-transform:none} +button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer} +button[disabled],html input[disabled]{cursor:default} +input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0} +button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0} +textarea{overflow:auto;vertical-align:top} +table{border-collapse:collapse;border-spacing:0} +*,*::before,*::after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box} +html,body{font-size:100%} +body{background:#fff;color:rgba(0,0,0,.8);padding:0;margin:0;font-family:"Noto Serif","DejaVu Serif",serif;font-weight:400;font-style:normal;line-height:1;position:relative;cursor:auto;tab-size:4;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased} +a:hover{cursor:pointer} +img,object,embed{max-width:100%;height:auto} +object,embed{height:100%} +img{-ms-interpolation-mode:bicubic} +.left{float:left!important} +.right{float:right!important} +.text-left{text-align:left!important} +.text-right{text-align:right!important} +.text-center{text-align:center!important} +.text-justify{text-align:justify!important} +.hide{display:none} +img,object,svg{display:inline-block;vertical-align:middle} +textarea{height:auto;min-height:50px} +select{width:100%} +.center{margin-left:auto;margin-right:auto} +.stretch{width:100%} +.subheader,.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{line-height:1.45;color:#7a2518;font-weight:400;margin-top:0;margin-bottom:.25em} +div,dl,dt,dd,ul,ol,li,h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6,pre,form,p,blockquote,th,td{margin:0;padding:0;direction:ltr} +a{color:#2156a5;text-decoration:underline;line-height:inherit} +a:hover,a:focus{color:#1d4b8f} +a img{border:none} +p{font-family:inherit;font-weight:400;font-size:1em;line-height:1.6;margin-bottom:1.25em;text-rendering:optimizeLegibility} +p aside{font-size:.875em;line-height:1.35;font-style:italic} +h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{font-family:"Open Sans","DejaVu Sans",sans-serif;font-weight:300;font-style:normal;color:#ba3925;text-rendering:optimizeLegibility;margin-top:1em;margin-bottom:.5em;line-height:1.0125em} +h1 small,h2 small,h3 small,#toctitle small,.sidebarblock>.content>.title small,h4 small,h5 small,h6 small{font-size:60%;color:#e99b8f;line-height:0} +h1{font-size:2.125em} +h2{font-size:1.6875em} +h3,#toctitle,.sidebarblock>.content>.title{font-size:1.375em} +h4,h5{font-size:1.125em} +h6{font-size:1em} +hr{border:solid #dddddf;border-width:1px 0 0;clear:both;margin:1.25em 0 1.1875em;height:0} +em,i{font-style:italic;line-height:inherit} +strong,b{font-weight:bold;line-height:inherit} +small{font-size:60%;line-height:inherit} +code{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;font-weight:400;color:rgba(0,0,0,.9)} +ul,ol,dl{font-size:1em;line-height:1.6;margin-bottom:1.25em;list-style-position:outside;font-family:inherit} +ul,ol{margin-left:1.5em} +ul li ul,ul li ol{margin-left:1.25em;margin-bottom:0;font-size:1em} +ul.square li ul,ul.circle li ul,ul.disc li ul{list-style:inherit} +ul.square{list-style-type:square} +ul.circle{list-style-type:circle} +ul.disc{list-style-type:disc} +ol li ul,ol li ol{margin-left:1.25em;margin-bottom:0} +dl dt{margin-bottom:.3125em;font-weight:bold} +dl dd{margin-bottom:1.25em} +abbr,acronym{text-transform:uppercase;font-size:90%;color:rgba(0,0,0,.8);border-bottom:1px dotted #ddd;cursor:help} +abbr{text-transform:none} +blockquote{margin:0 0 1.25em;padding:.5625em 1.25em 0 1.1875em;border-left:1px solid #ddd} +blockquote cite{display:block;font-size:.9375em;color:rgba(0,0,0,.6)} +blockquote cite::before{content:"\2014 \0020"} +blockquote cite a,blockquote cite a:visited{color:rgba(0,0,0,.6)} +blockquote,blockquote p{line-height:1.6;color:rgba(0,0,0,.85)} +@media screen and (min-width:768px){h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2} +h1{font-size:2.75em} +h2{font-size:2.3125em} +h3,#toctitle,.sidebarblock>.content>.title{font-size:1.6875em} +h4{font-size:1.4375em}} +table{background:#fff;margin-bottom:1.25em;border:solid 1px #dedede} +table thead,table tfoot{background:#f7f8f7} +table thead tr th,table thead tr td,table tfoot tr th,table tfoot tr td{padding:.5em .625em .625em;font-size:inherit;color:rgba(0,0,0,.8);text-align:left} +table tr th,table tr td{padding:.5625em .625em;font-size:inherit;color:rgba(0,0,0,.8)} +table tr.even,table tr.alt,table tr:nth-of-type(even){background:#f8f8f7} +table thead tr th,table tfoot tr th,table tbody tr td,table tr td,table tfoot tr td{display:table-cell;line-height:1.6} +h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2;word-spacing:-.05em} +h1 strong,h2 strong,h3 strong,#toctitle strong,.sidebarblock>.content>.title strong,h4 strong,h5 strong,h6 strong{font-weight:400} +.clearfix::before,.clearfix::after,.float-group::before,.float-group::after{content:" ";display:table} +.clearfix::after,.float-group::after{clear:both} +*:not(pre)>code{font-size:.9375em;font-style:normal!important;letter-spacing:0;padding:.1em .5ex;word-spacing:-.15em;background-color:#f7f7f8;-webkit-border-radius:4px;border-radius:4px;line-height:1.45;text-rendering:optimizeSpeed;word-wrap:break-word} +*:not(pre)>code.nobreak{word-wrap:normal} +*:not(pre)>code.nowrap{white-space:nowrap} +pre,pre>code{line-height:1.45;color:rgba(0,0,0,.9);font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;font-weight:400;text-rendering:optimizeSpeed} +em em{font-style:normal} +strong strong{font-weight:400} +.keyseq{color:rgba(51,51,51,.8)} +kbd{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;display:inline-block;color:rgba(0,0,0,.8);font-size:.65em;line-height:1.45;background-color:#f7f7f7;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em white inset;box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em #fff inset;margin:0 .15em;padding:.2em .5em;vertical-align:middle;position:relative;top:-.1em;white-space:nowrap} +.keyseq kbd:first-child{margin-left:0} +.keyseq kbd:last-child{margin-right:0} +.menuseq,.menuref{color:#000} +.menuseq b:not(.caret),.menuref{font-weight:inherit} +.menuseq{word-spacing:-.02em} +.menuseq b.caret{font-size:1.25em;line-height:.8} +.menuseq i.caret{font-weight:bold;text-align:center;width:.45em} +b.button::before,b.button::after{position:relative;top:-1px;font-weight:400} +b.button::before{content:"[";padding:0 3px 0 2px} +b.button::after{content:"]";padding:0 2px 0 3px} +p a>code:hover{color:rgba(0,0,0,.9)} +#header,#content,#footnotes,#footer{width:100%;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;max-width:62.5em;*zoom:1;position:relative;padding-left:.9375em;padding-right:.9375em} +#header::before,#header::after,#content::before,#content::after,#footnotes::before,#footnotes::after,#footer::before,#footer::after{content:" ";display:table} +#header::after,#content::after,#footnotes::after,#footer::after{clear:both} +#content{margin-top:1.25em} +#content::before{content:none} +#header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0} +#header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf} +#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} +#header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-flow:row wrap;-webkit-flex-flow:row wrap;flex-flow:row wrap} +#header .details span:first-child{margin-left:-.125em} +#header .details span.email a{color:rgba(0,0,0,.85)} +#header .details br{display:none} +#header .details br+span::before{content:"\00a0\2013\00a0"} +#header .details br+span.author::before{content:"\00a0\22c5\00a0";color:rgba(0,0,0,.85)} +#header .details br+span#revremark::before{content:"\00a0|\00a0"} +#header #revnumber{text-transform:capitalize} +#header #revnumber::after{content:"\00a0"} +#content>h1:first-child:not([class]){color:rgba(0,0,0,.85);border-bottom:1px solid #dddddf;padding-bottom:8px;margin-top:0;padding-top:1rem;margin-bottom:1.25rem} +#toc{border-bottom:1px solid #e7e7e9;padding-bottom:.5em} +#toc>ul{margin-left:.125em} +#toc ul.sectlevel0>li>a{font-style:italic} +#toc ul.sectlevel0 ul.sectlevel1{margin:.5em 0} +#toc ul{font-family:"Open Sans","DejaVu Sans",sans-serif;list-style-type:none} +#toc li{line-height:1.3334;margin-top:.3334em} +#toc a{text-decoration:none} +#toc a:active{text-decoration:underline} +#toctitle{color:#7a2518;font-size:1.2em} +@media screen and (min-width:768px){#toctitle{font-size:1.375em} +body.toc2{padding-left:15em;padding-right:0} +#toc.toc2{margin-top:0!important;background-color:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto} +#toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em} +#toc.toc2>ul{font-size:.9em;margin-bottom:0} +#toc.toc2 ul ul{margin-left:0;padding-left:1em} +#toc.toc2 ul.sectlevel0 ul.sectlevel1{padding-left:0;margin-top:.5em;margin-bottom:.5em} +body.toc2.toc-right{padding-left:0;padding-right:15em} +body.toc2.toc-right #toc.toc2{border-right-width:0;border-left:1px solid #e7e7e9;left:auto;right:0}} +@media screen and (min-width:1280px){body.toc2{padding-left:22em;padding-right:0} +#toc.toc2{width:22em} +#toc.toc2 #toctitle{font-size:1.375em} +#toc.toc2>ul{font-size:.95em} +#toc.toc2 ul ul{padding-left:1.25em} +body.toc2.toc-right{padding-left:0;padding-right:22em}} +#content #toc{border-style:solid;border-width:1px;border-color:#e0e0dc;margin-bottom:1.25em;padding:1.25em;background:#f8f8f7;-webkit-border-radius:4px;border-radius:4px} +#content #toc>:first-child{margin-top:0} +#content #toc>:last-child{margin-bottom:0} +#footer{max-width:100%;background-color:rgba(0,0,0,.8);padding:1.25em} +#footer-text{color:rgba(255,255,255,.8);line-height:1.44} +#content{margin-bottom:.625em} +.sect1{padding-bottom:.625em} +@media screen and (min-width:768px){#content{margin-bottom:1.25em} +.sect1{padding-bottom:1.25em}} +.sect1:last-child{padding-bottom:0} +.sect1+.sect1{border-top:1px solid #e7e7e9} +#content h1>a.anchor,h2>a.anchor,h3>a.anchor,#toctitle>a.anchor,.sidebarblock>.content>.title>a.anchor,h4>a.anchor,h5>a.anchor,h6>a.anchor{position:absolute;z-index:1001;width:1.5ex;margin-left:-1.5ex;display:block;text-decoration:none!important;visibility:hidden;text-align:center;font-weight:400} +#content h1>a.anchor::before,h2>a.anchor::before,h3>a.anchor::before,#toctitle>a.anchor::before,.sidebarblock>.content>.title>a.anchor::before,h4>a.anchor::before,h5>a.anchor::before,h6>a.anchor::before{content:"\00A7";font-size:.85em;display:block;padding-top:.1em} +#content h1:hover>a.anchor,#content h1>a.anchor:hover,h2:hover>a.anchor,h2>a.anchor:hover,h3:hover>a.anchor,#toctitle:hover>a.anchor,.sidebarblock>.content>.title:hover>a.anchor,h3>a.anchor:hover,#toctitle>a.anchor:hover,.sidebarblock>.content>.title>a.anchor:hover,h4:hover>a.anchor,h4>a.anchor:hover,h5:hover>a.anchor,h5>a.anchor:hover,h6:hover>a.anchor,h6>a.anchor:hover{visibility:visible} +#content h1>a.link,h2>a.link,h3>a.link,#toctitle>a.link,.sidebarblock>.content>.title>a.link,h4>a.link,h5>a.link,h6>a.link{color:#ba3925;text-decoration:none} +#content h1>a.link:hover,h2>a.link:hover,h3>a.link:hover,#toctitle>a.link:hover,.sidebarblock>.content>.title>a.link:hover,h4>a.link:hover,h5>a.link:hover,h6>a.link:hover{color:#a53221} +.audioblock,.imageblock,.literalblock,.listingblock,.stemblock,.videoblock{margin-bottom:1.25em} +.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{text-rendering:optimizeLegibility;text-align:left;font-family:"Noto Serif","DejaVu Serif",serif;font-size:1rem;font-style:italic} +table.tableblock.fit-content>caption.title{white-space:nowrap;width:0} +.paragraph.lead>p,#preamble>.sectionbody>[class="paragraph"]:first-of-type p{font-size:1.21875em;line-height:1.6;color:rgba(0,0,0,.85)} +table.tableblock #preamble>.sectionbody>[class="paragraph"]:first-of-type p{font-size:inherit} +.admonitionblock>table{border-collapse:separate;border:0;background:none;width:100%} +.admonitionblock>table td.icon{text-align:center;width:80px} +.admonitionblock>table td.icon img{max-width:none} +.admonitionblock>table td.icon .title{font-weight:bold;font-family:"Open Sans","DejaVu Sans",sans-serif;text-transform:uppercase} +.admonitionblock>table td.content{padding-left:1.125em;padding-right:1.25em;border-left:1px solid #dddddf;color:rgba(0,0,0,.6)} +.admonitionblock>table td.content>:last-child>:last-child{margin-bottom:0} +.exampleblock>.content{border-style:solid;border-width:1px;border-color:#e6e6e6;margin-bottom:1.25em;padding:1.25em;background:#fff;-webkit-border-radius:4px;border-radius:4px} +.exampleblock>.content>:first-child{margin-top:0} +.exampleblock>.content>:last-child{margin-bottom:0} +.sidebarblock{border-style:solid;border-width:1px;border-color:#e0e0dc;margin-bottom:1.25em;padding:1.25em;background:#f8f8f7;-webkit-border-radius:4px;border-radius:4px} +.sidebarblock>:first-child{margin-top:0} +.sidebarblock>:last-child{margin-bottom:0} +.sidebarblock>.content>.title{color:#7a2518;margin-top:0;text-align:center} +.exampleblock>.content>:last-child>:last-child,.exampleblock>.content .olist>ol>li:last-child>:last-child,.exampleblock>.content .ulist>ul>li:last-child>:last-child,.exampleblock>.content .qlist>ol>li:last-child>:last-child,.sidebarblock>.content>:last-child>:last-child,.sidebarblock>.content .olist>ol>li:last-child>:last-child,.sidebarblock>.content .ulist>ul>li:last-child>:last-child,.sidebarblock>.content .qlist>ol>li:last-child>:last-child{margin-bottom:0} +.literalblock pre,.listingblock pre:not(.highlight),.listingblock pre[class="highlight"],.listingblock pre[class^="highlight "],.listingblock pre.CodeRay,.listingblock pre.prettyprint{background:#f7f7f8} +.sidebarblock .literalblock pre,.sidebarblock .listingblock pre:not(.highlight),.sidebarblock .listingblock pre[class="highlight"],.sidebarblock .listingblock pre[class^="highlight "],.sidebarblock .listingblock pre.CodeRay,.sidebarblock .listingblock pre.prettyprint{background:#f2f1f1} +.literalblock pre,.literalblock pre[class],.listingblock pre,.listingblock pre[class]{-webkit-border-radius:4px;border-radius:4px;word-wrap:break-word;overflow-x:auto;padding:1em;font-size:.8125em} +@media screen and (min-width:768px){.literalblock pre,.literalblock pre[class],.listingblock pre,.listingblock pre[class]{font-size:.90625em}} +@media screen and (min-width:1280px){.literalblock pre,.literalblock pre[class],.listingblock pre,.listingblock pre[class]{font-size:1em}} +.literalblock pre.nowrap,.literalblock pre.nowrap pre,.listingblock pre.nowrap,.listingblock pre.nowrap pre{white-space:pre;word-wrap:normal} +.literalblock.output pre{color:#f7f7f8;background-color:rgba(0,0,0,.9)} +.listingblock pre.highlightjs{padding:0} +.listingblock pre.highlightjs>code{padding:1em;-webkit-border-radius:4px;border-radius:4px} +.listingblock pre.prettyprint{border-width:0} +.listingblock>.content{position:relative} +.listingblock code[data-lang]::before{display:none;content:attr(data-lang);position:absolute;font-size:.75em;top:.425rem;right:.5rem;line-height:1;text-transform:uppercase;color:#999} +.listingblock:hover code[data-lang]::before{display:block} +.listingblock.terminal pre .command::before{content:attr(data-prompt);padding-right:.5em;color:#999} +.listingblock.terminal pre .command:not([data-prompt])::before{content:"$"} +table.pyhltable{border-collapse:separate;border:0;margin-bottom:0;background:none} +table.pyhltable td{vertical-align:top;padding-top:0;padding-bottom:0;line-height:1.45} +table.pyhltable td.code{padding-left:.75em;padding-right:0} +pre.pygments .lineno,table.pyhltable td:not(.code){color:#999;padding-left:0;padding-right:.5em;border-right:1px solid #dddddf} +pre.pygments .lineno{display:inline-block;margin-right:.25em} +table.pyhltable .linenodiv{background:none!important;padding-right:0!important} +.quoteblock{margin:0 1em 1.25em 1.5em;display:table} +.quoteblock>.title{margin-left:-1.5em;margin-bottom:.75em} +.quoteblock blockquote,.quoteblock p{color:rgba(0,0,0,.85);font-size:1.15rem;line-height:1.75;word-spacing:.1em;letter-spacing:0;font-style:italic;text-align:justify} +.quoteblock blockquote{margin:0;padding:0;border:0} +.quoteblock blockquote::before{content:"\201c";float:left;font-size:2.75em;font-weight:bold;line-height:.6em;margin-left:-.6em;color:#7a2518;text-shadow:0 1px 2px rgba(0,0,0,.1)} +.quoteblock blockquote>.paragraph:last-child p{margin-bottom:0} +.quoteblock .attribution{margin-top:.75em;margin-right:.5ex;text-align:right} +.verseblock{margin:0 1em 1.25em} +.verseblock pre{font-family:"Open Sans","DejaVu Sans",sans;font-size:1.15rem;color:rgba(0,0,0,.85);font-weight:300;text-rendering:optimizeLegibility} +.verseblock pre strong{font-weight:400} +.verseblock .attribution{margin-top:1.25rem;margin-left:.5ex} +.quoteblock .attribution,.verseblock .attribution{font-size:.9375em;line-height:1.45;font-style:italic} +.quoteblock .attribution br,.verseblock .attribution br{display:none} +.quoteblock .attribution cite,.verseblock .attribution cite{display:block;letter-spacing:-.025em;color:rgba(0,0,0,.6)} +.quoteblock.abstract blockquote::before,.quoteblock.excerpt blockquote::before,.quoteblock .quoteblock blockquote::before{display:none} +.quoteblock.abstract blockquote,.quoteblock.abstract p,.quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{line-height:1.6;word-spacing:0} +.quoteblock.abstract{margin:0 1em 1.25em;display:block} +.quoteblock.abstract>.title{margin:0 0 .375em;font-size:1.15em;text-align:center} +.quoteblock.excerpt,.quoteblock .quoteblock{margin:0 0 1.25em;padding:0 0 .25em 1em;border-left:.25em solid #dddddf} +.quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{color:inherit;font-size:1.0625rem} +.quoteblock.excerpt .attribution,.quoteblock .quoteblock .attribution{color:inherit;text-align:left;margin-right:0} +table.tableblock{max-width:100%;border-collapse:separate} +p.tableblock:last-child{margin-bottom:0} +td.tableblock>.content{margin-bottom:-1.25em} +table.tableblock,th.tableblock,td.tableblock{border:0 solid #dedede} +table.grid-all>thead>tr>.tableblock,table.grid-all>tbody>tr>.tableblock{border-width:0 1px 1px 0} +table.grid-all>tfoot>tr>.tableblock{border-width:1px 1px 0 0} +table.grid-cols>*>tr>.tableblock{border-width:0 1px 0 0} +table.grid-rows>thead>tr>.tableblock,table.grid-rows>tbody>tr>.tableblock{border-width:0 0 1px} +table.grid-rows>tfoot>tr>.tableblock{border-width:1px 0 0} +table.grid-all>*>tr>.tableblock:last-child,table.grid-cols>*>tr>.tableblock:last-child{border-right-width:0} +table.grid-all>tbody>tr:last-child>.tableblock,table.grid-all>thead:last-child>tr>.tableblock,table.grid-rows>tbody>tr:last-child>.tableblock,table.grid-rows>thead:last-child>tr>.tableblock{border-bottom-width:0} +table.frame-all{border-width:1px} +table.frame-sides{border-width:0 1px} +table.frame-topbot,table.frame-ends{border-width:1px 0} +table.stripes-all tr,table.stripes-odd tr:nth-of-type(odd){background:#f8f8f7} +table.stripes-none tr,table.stripes-odd tr:nth-of-type(even){background:none} +th.halign-left,td.halign-left{text-align:left} +th.halign-right,td.halign-right{text-align:right} +th.halign-center,td.halign-center{text-align:center} +th.valign-top,td.valign-top{vertical-align:top} +th.valign-bottom,td.valign-bottom{vertical-align:bottom} +th.valign-middle,td.valign-middle{vertical-align:middle} +table thead th,table tfoot th{font-weight:bold} +tbody tr th{display:table-cell;line-height:1.6;background:#f7f8f7} +tbody tr th,tbody tr th p,tfoot tr th,tfoot tr th p{color:rgba(0,0,0,.8);font-weight:bold} +p.tableblock>code:only-child{background:none;padding:0} +p.tableblock{font-size:1em} +td>div.verse{white-space:pre} +ol{margin-left:1.75em} +ul li ol{margin-left:1.5em} +dl dd{margin-left:1.125em} +dl dd:last-child,dl dd:last-child>:last-child{margin-bottom:0} +ol>li p,ul>li p,ul dd,ol dd,.olist .olist,.ulist .ulist,.ulist .olist,.olist .ulist{margin-bottom:.625em} +ul.checklist,ul.none,ol.none,ul.no-bullet,ol.no-bullet,ol.unnumbered,ul.unstyled,ol.unstyled{list-style-type:none} +ul.no-bullet,ol.no-bullet,ol.unnumbered{margin-left:.625em} +ul.unstyled,ol.unstyled{margin-left:0} +ul.checklist{margin-left:.625em} +ul.checklist li>p:first-child>.fa-square-o:first-child,ul.checklist li>p:first-child>.fa-check-square-o:first-child{width:1.25em;font-size:.8em;position:relative;bottom:.125em} +ul.checklist li>p:first-child>input[type="checkbox"]:first-child{margin-right:.25em} +ul.inline{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-flow:row wrap;-webkit-flex-flow:row wrap;flex-flow:row wrap;list-style:none;margin:0 0 .625em -1.25em} +ul.inline>li{margin-left:1.25em} +.unstyled dl dt{font-weight:400;font-style:normal} +ol.arabic{list-style-type:decimal} +ol.decimal{list-style-type:decimal-leading-zero} +ol.loweralpha{list-style-type:lower-alpha} +ol.upperalpha{list-style-type:upper-alpha} +ol.lowerroman{list-style-type:lower-roman} +ol.upperroman{list-style-type:upper-roman} +ol.lowergreek{list-style-type:lower-greek} +.hdlist>table,.colist>table{border:0;background:none} +.hdlist>table>tbody>tr,.colist>table>tbody>tr{background:none} +td.hdlist1,td.hdlist2{vertical-align:top;padding:0 .625em} +td.hdlist1{font-weight:bold;padding-bottom:1.25em} +.literalblock+.colist,.listingblock+.colist{margin-top:-.5em} +.colist td:not([class]):first-child{padding:.4em .75em 0;line-height:1;vertical-align:top} +.colist td:not([class]):first-child img{max-width:none} +.colist td:not([class]):last-child{padding:.25em 0} +.thumb,.th{line-height:0;display:inline-block;border:solid 4px #fff;-webkit-box-shadow:0 0 0 1px #ddd;box-shadow:0 0 0 1px #ddd} +.imageblock.left{margin:.25em .625em 1.25em 0} +.imageblock.right{margin:.25em 0 1.25em .625em} +.imageblock>.title{margin-bottom:0} +.imageblock.thumb,.imageblock.th{border-width:6px} +.imageblock.thumb>.title,.imageblock.th>.title{padding:0 .125em} +.image.left,.image.right{margin-top:.25em;margin-bottom:.25em;display:inline-block;line-height:0} +.image.left{margin-right:.625em} +.image.right{margin-left:.625em} +a.image{text-decoration:none;display:inline-block} +a.image object{pointer-events:none} +sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super} +sup.footnote a,sup.footnoteref a{text-decoration:none} +sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline} +#footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em} +#footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0} +#footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em} +#footnotes .footnote a:first-of-type{font-weight:bold;text-decoration:none;margin-left:-1.05em} +#footnotes .footnote:last-of-type{margin-bottom:0} +#content #footnotes{margin-top:-.625em;margin-bottom:0;padding:.75em 0} +.gist .file-data>table{border:0;background:#fff;width:100%;margin-bottom:0} +.gist .file-data>table td.line-data{width:99%} +div.unbreakable{page-break-inside:avoid} +.big{font-size:larger} +.small{font-size:smaller} +.underline{text-decoration:underline} +.overline{text-decoration:overline} +.line-through{text-decoration:line-through} +.aqua{color:#00bfbf} +.aqua-background{background-color:#00fafa} +.black{color:#000} +.black-background{background-color:#000} +.blue{color:#0000bf} +.blue-background{background-color:#0000fa} +.fuchsia{color:#bf00bf} +.fuchsia-background{background-color:#fa00fa} +.gray{color:#606060} +.gray-background{background-color:#7d7d7d} +.green{color:#006000} +.green-background{background-color:#007d00} +.lime{color:#00bf00} +.lime-background{background-color:#00fa00} +.maroon{color:#600000} +.maroon-background{background-color:#7d0000} +.navy{color:#000060} +.navy-background{background-color:#00007d} +.olive{color:#606000} +.olive-background{background-color:#7d7d00} +.purple{color:#600060} +.purple-background{background-color:#7d007d} +.red{color:#bf0000} +.red-background{background-color:#fa0000} +.silver{color:#909090} +.silver-background{background-color:#bcbcbc} +.teal{color:#006060} +.teal-background{background-color:#007d7d} +.white{color:#bfbfbf} +.white-background{background-color:#fafafa} +.yellow{color:#bfbf00} +.yellow-background{background-color:#fafa00} +span.icon>.fa{cursor:default} +a span.icon>.fa{cursor:inherit} +.admonitionblock td.icon [class^="fa icon-"]{font-size:2.5em;text-shadow:1px 1px 2px rgba(0,0,0,.5);cursor:default} +.admonitionblock td.icon .icon-note::before{content:"\f05a";color:#19407c} +.admonitionblock td.icon .icon-tip::before{content:"\f0eb";text-shadow:1px 1px 2px rgba(155,155,0,.8);color:#111} +.admonitionblock td.icon .icon-warning::before{content:"\f071";color:#bf6900} +.admonitionblock td.icon .icon-caution::before{content:"\f06d";color:#bf3400} +.admonitionblock td.icon .icon-important::before{content:"\f06a";color:#bf0000} +.conum[data-value]{display:inline-block;color:#fff!important;background-color:rgba(0,0,0,.8);-webkit-border-radius:100px;border-radius:100px;text-align:center;font-size:.75em;width:1.67em;height:1.67em;line-height:1.67em;font-family:"Open Sans","DejaVu Sans",sans-serif;font-style:normal;font-weight:bold} +.conum[data-value] *{color:#fff!important} +.conum[data-value]+b{display:none} +.conum[data-value]::after{content:attr(data-value)} +pre .conum[data-value]{position:relative;top:-.125em} +b.conum *{color:inherit!important} +.conum:not([data-value]):empty{display:none} +dt,th.tableblock,td.content,div.footnote{text-rendering:optimizeLegibility} +h1,h2,p,td.content,span.alt{letter-spacing:-.01em} +p strong,td.content strong,div.footnote strong{letter-spacing:-.005em} +p,blockquote,dt,td.content,span.alt{font-size:1.0625rem} +p{margin-bottom:1.25rem} +.sidebarblock p,.sidebarblock dt,.sidebarblock td.content,p.tableblock{font-size:1em} +.exampleblock>.content{background-color:#fffef7;border-color:#e0e0dc;-webkit-box-shadow:0 1px 4px #e0e0dc;box-shadow:0 1px 4px #e0e0dc} +.print-only{display:none!important} +@page{margin:1.25cm .75cm} +@media print{*{-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:none!important} +html{font-size:80%} +a{color:inherit!important;text-decoration:underline!important} +a.bare,a[href^="#"],a[href^="mailto:"]{text-decoration:none!important} +a[href^="http:"]:not(.bare)::after,a[href^="https:"]:not(.bare)::after{content:"(" attr(href) ")";display:inline-block;font-size:.875em;padding-left:.25em} +abbr[title]::after{content:" (" attr(title) ")"} +pre,blockquote,tr,img,object,svg{page-break-inside:avoid} +thead{display:table-header-group} +svg{max-width:100%} +p,blockquote,dt,td.content{font-size:1em;orphans:3;widows:3} +h2,h3,#toctitle,.sidebarblock>.content>.title{page-break-after:avoid} +#toc,.sidebarblock,.exampleblock>.content{background:none!important} +#toc{border-bottom:1px solid #dddddf!important;padding-bottom:0!important} +body.book #header{text-align:center} +body.book #header>h1:first-child{border:0!important;margin:2.5em 0 1em} +body.book #header .details{border:0!important;display:block;padding:0!important} +body.book #header .details span:first-child{margin-left:0!important} +body.book #header .details br{display:block} +body.book #header .details br+span::before{content:none!important} +body.book #toc{border:0!important;text-align:left!important;padding:0!important;margin:0!important} +body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-break-before:always} +.listingblock code[data-lang]::before{display:block} +#footer{padding:0 .9375em} +.hide-on-print{display:none!important} +.print-only{display:block!important} +.hide-for-print{display:none!important} +.show-for-print{display:inherit!important}} +@media print,amzn-kf8{#header>h1:first-child{margin-top:1.25rem} +.sect1{padding:0!important} +.sect1+.sect1{border:0} +#footer{background:none} +#footer-text{color:rgba(0,0,0,.6);font-size:.9em}} +@media amzn-kf8{#header,#content,#footnotes,#footer{padding:0}} + +/* Zajo's customizations applied on top of the standard asciidoctor css above */ +h1{font-size:4em} +h2{font-size:1.74em} +h3,#toctitle,.sidebarblock>.content>.title{font-size:1.5em} +h4{font-size:1.2em} +h5{font-size:1em} +h6{font-size:1em} +#toc {text-align:left} +#toc ul code{font-size:111%} +#toc a:hover code {color:#F69220} +a:focus{outline:0} +.colist td{color:rgba(255,255,255,.67)} +body{text-align:left; background:#202020;color:rgba(255,255,255,.67);padding:0;margin:0;font-family:"Istok Web","DejaVu Serif",serif;font-weight:400;font-style:normal;line-height:1;position:relative;cursor:auto;tab-size:4;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased} +.subheader,.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{line-height:1.45;color:#a0a0a0;font-weight:400;margin-top:0;margin-bottom:.25em} +.literalblock pre,.listingblock pre:not(.highlight),.listingblock pre[class="highlight"],.listingblock pre[class^="highlight "],.listingblock pre.CodeRay,.listingblock pre.prettyprint{background:#101010} +table{background:#202020;margin-bottom:1.25em;border:solid 1px #dedede} +table tr th,table tr td{padding:.5625em .625em;font-size:inherit;color:rgba(255,255,255,.67)} +table tr.even,table tr.alt,table tr:nth-of-type(even){background:#202020} +table thead tr th,table thead tr td,table tfoot tr th,table tfoot tr td{color:rgba(255,255,255,.67)} +th{background-color:#404040} +a{color:#FFFFFF;text-decoration:underline;line-height:inherit} +a:hover{color:#F69220} +a:focus{color:#FFFFFF} +h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{font-family:"Quicksand","DejaVu Sans",sans-serif;font-weight:300;font-style:normal;color:#F69220;text-rendering:optimizeLegibility;margin-top:1em;margin-bottom:.5em;line-height:1.4em} +code{font-family:"Anonymous Pro","DejaVu Sans Mono",monospace;font-weight:400;color:black} +*:not(pre)>code{font-size:1.0em;font-style:normal!important;letter-spacing:0;padding:0 0;word-spacing:-.15em;background-color:transparent;-webkit-border-radius:0;border-radius:0;line-height:1.45;text-rendering:optimizeLegibility;word-wrap:break-word;color:white} +pre,pre>code{line-height:1.45;color:rgba(255,255,255,.67);font-family:"Anonymous Pro","DejaVu Sans Mono",monospace;font-weight:400;text-rendering:optimizeLegibility;font-size:1.05em;background-color:#101010} +a:not(pre)>code:hover {color:#F69220} +kbd{font-family:"Anonymous Pro","DejaVu Sans Mono",monospace;display:inline-block;color:rgba(0,0,0,.8);font-size:.65em;line-height:1.45;background-color:#f7f7f7;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em white inset;box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em #fff inset;margin:0 .15em;padding:.2em .5em;vertical-align:middle;position:relative;top:-.1em;white-space:nowrap} +h1 code{color:#F69220; font-size:113%} +h2 code{color:#F69220; font-size:113%} +h3 code{color:#F69220; font-size:113%} +h4 code{color:#F69220; font-size:113%} +h5 code{color:#F69220; font-size:113%} +#header>h1:first-child{font-family:"Smooch Sans";color:#F69220;margin-top:2.25rem;margin-bottom:0} +#author{color:#a366ff} +#toc ul{font-family:"Quicksand","DejaVu Sans",sans-serif;list-style-type:none} +#toc a:hover{color:#F69220} +#toc.toc2{background-color:#404040} +.admonitionblock td.icon .icon-note::before{content:"\f05a";color:#F69220} +.admonitionblock td.icon .icon-tip::before{content:"\f0eb";color:#F69220;text-shadow:none} +.admonitionblock td.icon .icon-warning::before{content:"\f071";color:#a366ff} +.admonitionblock td.icon .icon-caution::before{content:"\f06d";color:#a366ff} +.admonitionblock td.icon .icon-important::before{content:"\f06a";color:#a366ff} +.admonitionblock>table td.content{padding-left:1.125em;padding-right:1.25em;border-left:1px solid #dddddf;color:rgba(255,255,255,.67)} +.conum[data-value]{display:inline-block;color:black!important;background-color:#d9d9d9;-webkit-border-radius:100px;border-radius:100px;text-align:center;font-size:.75em;width:1.67em;height:1.67em;line-height:1.67em;font-family:"Open Sans","DejaVu Sans",sans-serif;font-style:normal;font-weight:bold} +.exampleblock>.content{background-color:#404040;border-color:#e0e0dc;-webkit-box-shadow:0 1px 4px #e0e0dc;box-shadow:0 1px 4px #e0e0dc} +.quoteblock {background-color:#404040} +.quoteblock blockquote,.quoteblock p{color:rgba(255,255,255,.67);font-size:1.15rem;line-height:1.75;word-spacing:.1em;letter-spacing:0;font-style:italic;text-align:justify;background-color:#404040} +.quoteblock blockquote::before{margin-left:-.8em;color:#F69220} +.quoteblock blockquote{font-family:"Istok Web","DejaVu Serif"; font-size:1.0625rem; padding:0.5em} +.quoteblock .attribution{padding-top:.75ex;margin-top:0;margin-right:0;padding-right:.5ex;text-align:right;background-color:#202020} +.text-right{margin-top:-1em} +.subtle-note{width:75%;margin-left:auto;text-align:right;font-style:italic} \ No newline at end of file diff --git a/doc/html/zajo-light.css b/doc/html/zajo-light.css new file mode 100644 index 0000000..b762a1b --- /dev/null +++ b/doc/html/zajo-light.css @@ -0,0 +1,469 @@ +/* Asciidoctor default stylesheet | MIT License | http://asciidoctor.org */ +/* Uncomment @import statement below to use as custom stylesheet */ +/*@import "https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700";*/ + +/* Zajo's custom font import. The rest of the customizations are at the bottom of this css file, which is otherwise kept unchanged */ +@import "https://fonts.googleapis.com/css?family=Anonymous+Pro|Istok+Web|Quicksand|Smooch+Sans|Poiret+One"; + +article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block} +audio,canvas,video{display:inline-block} +audio:not([controls]){display:none;height:0} +script{display:none!important} +html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%} +a{background:transparent} +a:focus{outline:thin dotted} +a:active,a:hover{outline:0} +h1{font-size:2em;margin:.67em 0} +abbr[title]{border-bottom:1px dotted} +b,strong{font-weight:bold} +dfn{font-style:italic} +hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0} +mark{background:#ff0;color:#000} +code,kbd,pre,samp{font-family:monospace;font-size:1em} +pre{white-space:pre-wrap} +q{quotes:"\201C" "\201D" "\2018" "\2019"} +small{font-size:80%} +sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline} +sup{top:-.5em} +sub{bottom:-.25em} +img{border:0} +svg:not(:root){overflow:hidden} +figure{margin:0} +fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em} +legend{border:0;padding:0} +button,input,select,textarea{font-family:inherit;font-size:100%;margin:0} +button,input{line-height:normal} +button,select{text-transform:none} +button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer} +button[disabled],html input[disabled]{cursor:default} +input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0} +button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0} +textarea{overflow:auto;vertical-align:top} +table{border-collapse:collapse;border-spacing:0} +*,*::before,*::after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box} +html,body{font-size:100%} +body{background:#fff;color:rgba(0,0,0,.8);padding:0;margin:0;font-family:"Noto Serif","DejaVu Serif",serif;font-weight:400;font-style:normal;line-height:1;position:relative;cursor:auto;tab-size:4;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased} +a:hover{cursor:pointer} +img,object,embed{max-width:100%;height:auto} +object,embed{height:100%} +img{-ms-interpolation-mode:bicubic} +.left{float:left!important} +.right{float:right!important} +.text-left{text-align:left!important} +.text-right{text-align:right!important} +.text-center{text-align:center!important} +.text-justify{text-align:justify!important} +.hide{display:none} +img,object,svg{display:inline-block;vertical-align:middle} +textarea{height:auto;min-height:50px} +select{width:100%} +.center{margin-left:auto;margin-right:auto} +.stretch{width:100%} +.subheader,.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{line-height:1.45;color:#7a2518;font-weight:400;margin-top:0;margin-bottom:.25em} +div,dl,dt,dd,ul,ol,li,h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6,pre,form,p,blockquote,th,td{margin:0;padding:0;direction:ltr} +a{color:#2156a5;text-decoration:underline;line-height:inherit} +a:hover,a:focus{color:#1d4b8f} +a img{border:none} +p{font-family:inherit;font-weight:400;font-size:1em;line-height:1.6;margin-bottom:1.25em;text-rendering:optimizeLegibility} +p aside{font-size:.875em;line-height:1.35;font-style:italic} +h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{font-family:"Open Sans","DejaVu Sans",sans-serif;font-weight:300;font-style:normal;color:#ba3925;text-rendering:optimizeLegibility;margin-top:1em;margin-bottom:.5em;line-height:1.0125em} +h1 small,h2 small,h3 small,#toctitle small,.sidebarblock>.content>.title small,h4 small,h5 small,h6 small{font-size:60%;color:#e99b8f;line-height:0} +h1{font-size:2.125em} +h2{font-size:1.6875em} +h3,#toctitle,.sidebarblock>.content>.title{font-size:1.375em} +h4,h5{font-size:1.125em} +h6{font-size:1em} +hr{border:solid #dddddf;border-width:1px 0 0;clear:both;margin:1.25em 0 1.1875em;height:0} +em,i{font-style:italic;line-height:inherit} +strong,b{font-weight:bold;line-height:inherit} +small{font-size:60%;line-height:inherit} +code{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;font-weight:400;color:rgba(0,0,0,.9)} +ul,ol,dl{font-size:1em;line-height:1.6;margin-bottom:1.25em;list-style-position:outside;font-family:inherit} +ul,ol{margin-left:1.5em} +ul li ul,ul li ol{margin-left:1.25em;margin-bottom:0;font-size:1em} +ul.square li ul,ul.circle li ul,ul.disc li ul{list-style:inherit} +ul.square{list-style-type:square} +ul.circle{list-style-type:circle} +ul.disc{list-style-type:disc} +ol li ul,ol li ol{margin-left:1.25em;margin-bottom:0} +dl dt{margin-bottom:.3125em;font-weight:bold} +dl dd{margin-bottom:1.25em} +abbr,acronym{text-transform:uppercase;font-size:90%;color:rgba(0,0,0,.8);border-bottom:1px dotted #ddd;cursor:help} +abbr{text-transform:none} +blockquote{margin:0 0 1.25em;padding:.5625em 1.25em 0 1.1875em;border-left:1px solid #ddd} +blockquote cite{display:block;font-size:.9375em;color:rgba(0,0,0,.6)} +blockquote cite::before{content:"\2014 \0020"} +blockquote cite a,blockquote cite a:visited{color:rgba(0,0,0,.6)} +blockquote,blockquote p{line-height:1.6;color:rgba(0,0,0,.85)} +@media screen and (min-width:768px){h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2} +h1{font-size:2.75em} +h2{font-size:2.3125em} +h3,#toctitle,.sidebarblock>.content>.title{font-size:1.6875em} +h4{font-size:1.4375em}} +table{background:#fff;margin-bottom:1.25em;border:solid 1px #dedede} +table thead,table tfoot{background:#f7f8f7} +table thead tr th,table thead tr td,table tfoot tr th,table tfoot tr td{padding:.5em .625em .625em;font-size:inherit;color:rgba(0,0,0,.8);text-align:left} +table tr th,table tr td{padding:.5625em .625em;font-size:inherit;color:rgba(0,0,0,.8)} +table tr.even,table tr.alt,table tr:nth-of-type(even){background:#f8f8f7} +table thead tr th,table tfoot tr th,table tbody tr td,table tr td,table tfoot tr td{display:table-cell;line-height:1.6} +h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2;word-spacing:-.05em} +h1 strong,h2 strong,h3 strong,#toctitle strong,.sidebarblock>.content>.title strong,h4 strong,h5 strong,h6 strong{font-weight:400} +.clearfix::before,.clearfix::after,.float-group::before,.float-group::after{content:" ";display:table} +.clearfix::after,.float-group::after{clear:both} +*:not(pre)>code{font-size:.9375em;font-style:normal!important;letter-spacing:0;padding:.1em .5ex;word-spacing:-.15em;background-color:#f7f7f8;-webkit-border-radius:4px;border-radius:4px;line-height:1.45;text-rendering:optimizeSpeed;word-wrap:break-word} +*:not(pre)>code.nobreak{word-wrap:normal} +*:not(pre)>code.nowrap{white-space:nowrap} +pre,pre>code{line-height:1.45;color:rgba(0,0,0,.9);font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;font-weight:400;text-rendering:optimizeSpeed} +em em{font-style:normal} +strong strong{font-weight:400} +.keyseq{color:rgba(51,51,51,.8)} +kbd{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;display:inline-block;color:rgba(0,0,0,.8);font-size:.65em;line-height:1.45;background-color:#f7f7f7;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em white inset;box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em #fff inset;margin:0 .15em;padding:.2em .5em;vertical-align:middle;position:relative;top:-.1em;white-space:nowrap} +.keyseq kbd:first-child{margin-left:0} +.keyseq kbd:last-child{margin-right:0} +.menuseq,.menuref{color:#000} +.menuseq b:not(.caret),.menuref{font-weight:inherit} +.menuseq{word-spacing:-.02em} +.menuseq b.caret{font-size:1.25em;line-height:.8} +.menuseq i.caret{font-weight:bold;text-align:center;width:.45em} +b.button::before,b.button::after{position:relative;top:-1px;font-weight:400} +b.button::before{content:"[";padding:0 3px 0 2px} +b.button::after{content:"]";padding:0 2px 0 3px} +p a>code:hover{color:rgba(0,0,0,.9)} +#header,#content,#footnotes,#footer{width:100%;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;max-width:62.5em;*zoom:1;position:relative;padding-left:.9375em;padding-right:.9375em} +#header::before,#header::after,#content::before,#content::after,#footnotes::before,#footnotes::after,#footer::before,#footer::after{content:" ";display:table} +#header::after,#content::after,#footnotes::after,#footer::after{clear:both} +#content{margin-top:1.25em} +#content::before{content:none} +#header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0} +#header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf} +#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} +#header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-flow:row wrap;-webkit-flex-flow:row wrap;flex-flow:row wrap} +#header .details span:first-child{margin-left:-.125em} +#header .details span.email a{color:rgba(0,0,0,.85)} +#header .details br{display:none} +#header .details br+span::before{content:"\00a0\2013\00a0"} +#header .details br+span.author::before{content:"\00a0\22c5\00a0";color:rgba(0,0,0,.85)} +#header .details br+span#revremark::before{content:"\00a0|\00a0"} +#header #revnumber{text-transform:capitalize} +#header #revnumber::after{content:"\00a0"} +#content>h1:first-child:not([class]){color:rgba(0,0,0,.85);border-bottom:1px solid #dddddf;padding-bottom:8px;margin-top:0;padding-top:1rem;margin-bottom:1.25rem} +#toc{border-bottom:1px solid #e7e7e9;padding-bottom:.5em} +#toc>ul{margin-left:.125em} +#toc ul.sectlevel0>li>a{font-style:italic} +#toc ul.sectlevel0 ul.sectlevel1{margin:.5em 0} +#toc ul{font-family:"Open Sans","DejaVu Sans",sans-serif;list-style-type:none} +#toc li{line-height:1.3334;margin-top:.3334em} +#toc a{text-decoration:none} +#toc a:active{text-decoration:underline} +#toctitle{color:#7a2518;font-size:1.2em} +@media screen and (min-width:768px){#toctitle{font-size:1.375em} +body.toc2{padding-left:15em;padding-right:0} +#toc.toc2{margin-top:0!important;background-color:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto} +#toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em} +#toc.toc2>ul{font-size:.9em;margin-bottom:0} +#toc.toc2 ul ul{margin-left:0;padding-left:1em} +#toc.toc2 ul.sectlevel0 ul.sectlevel1{padding-left:0;margin-top:.5em;margin-bottom:.5em} +body.toc2.toc-right{padding-left:0;padding-right:15em} +body.toc2.toc-right #toc.toc2{border-right-width:0;border-left:1px solid #e7e7e9;left:auto;right:0}} +@media screen and (min-width:1280px){body.toc2{padding-left:22em;padding-right:0} +#toc.toc2{width:22em} +#toc.toc2 #toctitle{font-size:1.375em} +#toc.toc2>ul{font-size:.95em} +#toc.toc2 ul ul{padding-left:1.25em} +body.toc2.toc-right{padding-left:0;padding-right:22em}} +#content #toc{border-style:solid;border-width:1px;border-color:#e0e0dc;margin-bottom:1.25em;padding:1.25em;background:#f8f8f7;-webkit-border-radius:4px;border-radius:4px} +#content #toc>:first-child{margin-top:0} +#content #toc>:last-child{margin-bottom:0} +#footer{max-width:100%;background-color:rgba(0,0,0,.8);padding:1.25em} +#footer-text{color:rgba(255,255,255,.8);line-height:1.44} +#content{margin-bottom:.625em} +.sect1{padding-bottom:.625em} +@media screen and (min-width:768px){#content{margin-bottom:1.25em} +.sect1{padding-bottom:1.25em}} +.sect1:last-child{padding-bottom:0} +.sect1+.sect1{border-top:1px solid #e7e7e9} +#content h1>a.anchor,h2>a.anchor,h3>a.anchor,#toctitle>a.anchor,.sidebarblock>.content>.title>a.anchor,h4>a.anchor,h5>a.anchor,h6>a.anchor{position:absolute;z-index:1001;width:1.5ex;margin-left:-1.5ex;display:block;text-decoration:none!important;visibility:hidden;text-align:center;font-weight:400} +#content h1>a.anchor::before,h2>a.anchor::before,h3>a.anchor::before,#toctitle>a.anchor::before,.sidebarblock>.content>.title>a.anchor::before,h4>a.anchor::before,h5>a.anchor::before,h6>a.anchor::before{content:"\00A7";font-size:.85em;display:block;padding-top:.1em} +#content h1:hover>a.anchor,#content h1>a.anchor:hover,h2:hover>a.anchor,h2>a.anchor:hover,h3:hover>a.anchor,#toctitle:hover>a.anchor,.sidebarblock>.content>.title:hover>a.anchor,h3>a.anchor:hover,#toctitle>a.anchor:hover,.sidebarblock>.content>.title>a.anchor:hover,h4:hover>a.anchor,h4>a.anchor:hover,h5:hover>a.anchor,h5>a.anchor:hover,h6:hover>a.anchor,h6>a.anchor:hover{visibility:visible} +#content h1>a.link,h2>a.link,h3>a.link,#toctitle>a.link,.sidebarblock>.content>.title>a.link,h4>a.link,h5>a.link,h6>a.link{color:#ba3925;text-decoration:none} +#content h1>a.link:hover,h2>a.link:hover,h3>a.link:hover,#toctitle>a.link:hover,.sidebarblock>.content>.title>a.link:hover,h4>a.link:hover,h5>a.link:hover,h6>a.link:hover{color:#a53221} +.audioblock,.imageblock,.literalblock,.listingblock,.stemblock,.videoblock{margin-bottom:1.25em} +.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{text-rendering:optimizeLegibility;text-align:left;font-family:"Noto Serif","DejaVu Serif",serif;font-size:1rem;font-style:italic} +table.tableblock.fit-content>caption.title{white-space:nowrap;width:0} +.paragraph.lead>p,#preamble>.sectionbody>[class="paragraph"]:first-of-type p{font-size:1.21875em;line-height:1.6;color:rgba(0,0,0,.85)} +table.tableblock #preamble>.sectionbody>[class="paragraph"]:first-of-type p{font-size:inherit} +.admonitionblock>table{border-collapse:separate;border:0;background:none;width:100%} +.admonitionblock>table td.icon{text-align:center;width:80px} +.admonitionblock>table td.icon img{max-width:none} +.admonitionblock>table td.icon .title{font-weight:bold;font-family:"Open Sans","DejaVu Sans",sans-serif;text-transform:uppercase} +.admonitionblock>table td.content{padding-left:1.125em;padding-right:1.25em;border-left:1px solid #dddddf;color:rgba(0,0,0,.6)} +.admonitionblock>table td.content>:last-child>:last-child{margin-bottom:0} +.exampleblock>.content{border-style:solid;border-width:1px;border-color:#e6e6e6;margin-bottom:1.25em;padding:1.25em;background:#fff;-webkit-border-radius:4px;border-radius:4px} +.exampleblock>.content>:first-child{margin-top:0} +.exampleblock>.content>:last-child{margin-bottom:0} +.sidebarblock{border-style:solid;border-width:1px;border-color:#e0e0dc;margin-bottom:1.25em;padding:1.25em;background:#f8f8f7;-webkit-border-radius:4px;border-radius:4px} +.sidebarblock>:first-child{margin-top:0} +.sidebarblock>:last-child{margin-bottom:0} +.sidebarblock>.content>.title{color:#7a2518;margin-top:0;text-align:center} +.exampleblock>.content>:last-child>:last-child,.exampleblock>.content .olist>ol>li:last-child>:last-child,.exampleblock>.content .ulist>ul>li:last-child>:last-child,.exampleblock>.content .qlist>ol>li:last-child>:last-child,.sidebarblock>.content>:last-child>:last-child,.sidebarblock>.content .olist>ol>li:last-child>:last-child,.sidebarblock>.content .ulist>ul>li:last-child>:last-child,.sidebarblock>.content .qlist>ol>li:last-child>:last-child{margin-bottom:0} +.literalblock pre,.listingblock pre:not(.highlight),.listingblock pre[class="highlight"],.listingblock pre[class^="highlight "],.listingblock pre.CodeRay,.listingblock pre.prettyprint{background:#f7f7f8} +.sidebarblock .literalblock pre,.sidebarblock .listingblock pre:not(.highlight),.sidebarblock .listingblock pre[class="highlight"],.sidebarblock .listingblock pre[class^="highlight "],.sidebarblock .listingblock pre.CodeRay,.sidebarblock .listingblock pre.prettyprint{background:#f2f1f1} +.literalblock pre,.literalblock pre[class],.listingblock pre,.listingblock pre[class]{-webkit-border-radius:4px;border-radius:4px;word-wrap:break-word;overflow-x:auto;padding:1em;font-size:.8125em} +@media screen and (min-width:768px){.literalblock pre,.literalblock pre[class],.listingblock pre,.listingblock pre[class]{font-size:.90625em}} +@media screen and (min-width:1280px){.literalblock pre,.literalblock pre[class],.listingblock pre,.listingblock pre[class]{font-size:1em}} +.literalblock pre.nowrap,.literalblock pre.nowrap pre,.listingblock pre.nowrap,.listingblock pre.nowrap pre{white-space:pre;word-wrap:normal} +.literalblock.output pre{color:#f7f7f8;background-color:rgba(0,0,0,.9)} +.listingblock pre.highlightjs{padding:0} +.listingblock pre.highlightjs>code{padding:1em;-webkit-border-radius:4px;border-radius:4px} +.listingblock pre.prettyprint{border-width:0} +.listingblock>.content{position:relative} +.listingblock code[data-lang]::before{display:none;content:attr(data-lang);position:absolute;font-size:.75em;top:.425rem;right:.5rem;line-height:1;text-transform:uppercase;color:#999} +.listingblock:hover code[data-lang]::before{display:block} +.listingblock.terminal pre .command::before{content:attr(data-prompt);padding-right:.5em;color:#999} +.listingblock.terminal pre .command:not([data-prompt])::before{content:"$"} +table.pyhltable{border-collapse:separate;border:0;margin-bottom:0;background:none} +table.pyhltable td{vertical-align:top;padding-top:0;padding-bottom:0;line-height:1.45} +table.pyhltable td.code{padding-left:.75em;padding-right:0} +pre.pygments .lineno,table.pyhltable td:not(.code){color:#999;padding-left:0;padding-right:.5em;border-right:1px solid #dddddf} +pre.pygments .lineno{display:inline-block;margin-right:.25em} +table.pyhltable .linenodiv{background:none!important;padding-right:0!important} +.quoteblock{margin:0 1em 1.25em 1.5em;display:table} +.quoteblock>.title{margin-left:-1.5em;margin-bottom:.75em} +.quoteblock blockquote,.quoteblock p{color:rgba(0,0,0,.85);font-size:1.15rem;line-height:1.75;word-spacing:.1em;letter-spacing:0;font-style:italic;text-align:justify} +.quoteblock blockquote{margin:0;padding:0;border:0} +.quoteblock blockquote::before{content:"\201c";float:left;font-size:2.75em;font-weight:bold;line-height:.6em;margin-left:-.6em;color:#7a2518;text-shadow:0 1px 2px rgba(0,0,0,.1)} +.quoteblock blockquote>.paragraph:last-child p{margin-bottom:0} +.quoteblock .attribution{margin-top:.75em;margin-right:.5ex;text-align:right} +.verseblock{margin:0 1em 1.25em} +.verseblock pre{font-family:"Open Sans","DejaVu Sans",sans;font-size:1.15rem;color:rgba(0,0,0,.85);font-weight:300;text-rendering:optimizeLegibility} +.verseblock pre strong{font-weight:400} +.verseblock .attribution{margin-top:1.25rem;margin-left:.5ex} +.quoteblock .attribution,.verseblock .attribution{font-size:.9375em;line-height:1.45;font-style:italic} +.quoteblock .attribution br,.verseblock .attribution br{display:none} +.quoteblock .attribution cite,.verseblock .attribution cite{display:block;letter-spacing:-.025em;color:rgba(0,0,0,.6)} +.quoteblock.abstract blockquote::before,.quoteblock.excerpt blockquote::before,.quoteblock .quoteblock blockquote::before{display:none} +.quoteblock.abstract blockquote,.quoteblock.abstract p,.quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{line-height:1.6;word-spacing:0} +.quoteblock.abstract{margin:0 1em 1.25em;display:block} +.quoteblock.abstract>.title{margin:0 0 .375em;font-size:1.15em;text-align:center} +.quoteblock.excerpt,.quoteblock .quoteblock{margin:0 0 1.25em;padding:0 0 .25em 1em;border-left:.25em solid #dddddf} +.quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{color:inherit;font-size:1.0625rem} +.quoteblock.excerpt .attribution,.quoteblock .quoteblock .attribution{color:inherit;text-align:left;margin-right:0} +table.tableblock{max-width:100%;border-collapse:separate} +p.tableblock:last-child{margin-bottom:0} +td.tableblock>.content{margin-bottom:-1.25em} +table.tableblock,th.tableblock,td.tableblock{border:0 solid #dedede} +table.grid-all>thead>tr>.tableblock,table.grid-all>tbody>tr>.tableblock{border-width:0 1px 1px 0} +table.grid-all>tfoot>tr>.tableblock{border-width:1px 1px 0 0} +table.grid-cols>*>tr>.tableblock{border-width:0 1px 0 0} +table.grid-rows>thead>tr>.tableblock,table.grid-rows>tbody>tr>.tableblock{border-width:0 0 1px} +table.grid-rows>tfoot>tr>.tableblock{border-width:1px 0 0} +table.grid-all>*>tr>.tableblock:last-child,table.grid-cols>*>tr>.tableblock:last-child{border-right-width:0} +table.grid-all>tbody>tr:last-child>.tableblock,table.grid-all>thead:last-child>tr>.tableblock,table.grid-rows>tbody>tr:last-child>.tableblock,table.grid-rows>thead:last-child>tr>.tableblock{border-bottom-width:0} +table.frame-all{border-width:1px} +table.frame-sides{border-width:0 1px} +table.frame-topbot,table.frame-ends{border-width:1px 0} +table.stripes-all tr,table.stripes-odd tr:nth-of-type(odd){background:#f8f8f7} +table.stripes-none tr,table.stripes-odd tr:nth-of-type(even){background:none} +th.halign-left,td.halign-left{text-align:left} +th.halign-right,td.halign-right{text-align:right} +th.halign-center,td.halign-center{text-align:center} +th.valign-top,td.valign-top{vertical-align:top} +th.valign-bottom,td.valign-bottom{vertical-align:bottom} +th.valign-middle,td.valign-middle{vertical-align:middle} +table thead th,table tfoot th{font-weight:bold} +tbody tr th{display:table-cell;line-height:1.6;background:#f7f8f7} +tbody tr th,tbody tr th p,tfoot tr th,tfoot tr th p{color:rgba(0,0,0,.8);font-weight:bold} +p.tableblock>code:only-child{background:none;padding:0} +p.tableblock{font-size:1em} +td>div.verse{white-space:pre} +ol{margin-left:1.75em} +ul li ol{margin-left:1.5em} +dl dd{margin-left:1.125em} +dl dd:last-child,dl dd:last-child>:last-child{margin-bottom:0} +ol>li p,ul>li p,ul dd,ol dd,.olist .olist,.ulist .ulist,.ulist .olist,.olist .ulist{margin-bottom:.625em} +ul.checklist,ul.none,ol.none,ul.no-bullet,ol.no-bullet,ol.unnumbered,ul.unstyled,ol.unstyled{list-style-type:none} +ul.no-bullet,ol.no-bullet,ol.unnumbered{margin-left:.625em} +ul.unstyled,ol.unstyled{margin-left:0} +ul.checklist{margin-left:.625em} +ul.checklist li>p:first-child>.fa-square-o:first-child,ul.checklist li>p:first-child>.fa-check-square-o:first-child{width:1.25em;font-size:.8em;position:relative;bottom:.125em} +ul.checklist li>p:first-child>input[type="checkbox"]:first-child{margin-right:.25em} +ul.inline{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-flow:row wrap;-webkit-flex-flow:row wrap;flex-flow:row wrap;list-style:none;margin:0 0 .625em -1.25em} +ul.inline>li{margin-left:1.25em} +.unstyled dl dt{font-weight:400;font-style:normal} +ol.arabic{list-style-type:decimal} +ol.decimal{list-style-type:decimal-leading-zero} +ol.loweralpha{list-style-type:lower-alpha} +ol.upperalpha{list-style-type:upper-alpha} +ol.lowerroman{list-style-type:lower-roman} +ol.upperroman{list-style-type:upper-roman} +ol.lowergreek{list-style-type:lower-greek} +.hdlist>table,.colist>table{border:0;background:none} +.hdlist>table>tbody>tr,.colist>table>tbody>tr{background:none} +td.hdlist1,td.hdlist2{vertical-align:top;padding:0 .625em} +td.hdlist1{font-weight:bold;padding-bottom:1.25em} +.literalblock+.colist,.listingblock+.colist{margin-top:-.5em} +.colist td:not([class]):first-child{padding:.4em .75em 0;line-height:1;vertical-align:top} +.colist td:not([class]):first-child img{max-width:none} +.colist td:not([class]):last-child{padding:.25em 0} +.thumb,.th{line-height:0;display:inline-block;border:solid 4px #fff;-webkit-box-shadow:0 0 0 1px #ddd;box-shadow:0 0 0 1px #ddd} +.imageblock.left{margin:.25em .625em 1.25em 0} +.imageblock.right{margin:.25em 0 1.25em .625em} +.imageblock>.title{margin-bottom:0} +.imageblock.thumb,.imageblock.th{border-width:6px} +.imageblock.thumb>.title,.imageblock.th>.title{padding:0 .125em} +.image.left,.image.right{margin-top:.25em;margin-bottom:.25em;display:inline-block;line-height:0} +.image.left{margin-right:.625em} +.image.right{margin-left:.625em} +a.image{text-decoration:none;display:inline-block} +a.image object{pointer-events:none} +sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super} +sup.footnote a,sup.footnoteref a{text-decoration:none} +sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline} +#footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em} +#footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0} +#footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em} +#footnotes .footnote a:first-of-type{font-weight:bold;text-decoration:none;margin-left:-1.05em} +#footnotes .footnote:last-of-type{margin-bottom:0} +#content #footnotes{margin-top:-.625em;margin-bottom:0;padding:.75em 0} +.gist .file-data>table{border:0;background:#fff;width:100%;margin-bottom:0} +.gist .file-data>table td.line-data{width:99%} +div.unbreakable{page-break-inside:avoid} +.big{font-size:larger} +.small{font-size:smaller} +.underline{text-decoration:underline} +.overline{text-decoration:overline} +.line-through{text-decoration:line-through} +.aqua{color:#00bfbf} +.aqua-background{background-color:#00fafa} +.black{color:#000} +.black-background{background-color:#000} +.blue{color:#0000bf} +.blue-background{background-color:#0000fa} +.fuchsia{color:#bf00bf} +.fuchsia-background{background-color:#fa00fa} +.gray{color:#606060} +.gray-background{background-color:#7d7d7d} +.green{color:#006000} +.green-background{background-color:#007d00} +.lime{color:#00bf00} +.lime-background{background-color:#00fa00} +.maroon{color:#600000} +.maroon-background{background-color:#7d0000} +.navy{color:#000060} +.navy-background{background-color:#00007d} +.olive{color:#606000} +.olive-background{background-color:#7d7d00} +.purple{color:#600060} +.purple-background{background-color:#7d007d} +.red{color:#bf0000} +.red-background{background-color:#fa0000} +.silver{color:#909090} +.silver-background{background-color:#bcbcbc} +.teal{color:#006060} +.teal-background{background-color:#007d7d} +.white{color:#bfbfbf} +.white-background{background-color:#fafafa} +.yellow{color:#bfbf00} +.yellow-background{background-color:#fafa00} +span.icon>.fa{cursor:default} +a span.icon>.fa{cursor:inherit} +.admonitionblock td.icon [class^="fa icon-"]{font-size:2.5em;text-shadow:1px 1px 2px rgba(0,0,0,.5);cursor:default} +.admonitionblock td.icon .icon-note::before{content:"\f05a";color:#19407c} +.admonitionblock td.icon .icon-tip::before{content:"\f0eb";text-shadow:1px 1px 2px rgba(155,155,0,.8);color:#111} +.admonitionblock td.icon .icon-warning::before{content:"\f071";color:#bf6900} +.admonitionblock td.icon .icon-caution::before{content:"\f06d";color:#bf3400} +.admonitionblock td.icon .icon-important::before{content:"\f06a";color:#bf0000} +.conum[data-value]{display:inline-block;color:#fff!important;background-color:rgba(0,0,0,.8);-webkit-border-radius:100px;border-radius:100px;text-align:center;font-size:.75em;width:1.67em;height:1.67em;line-height:1.67em;font-family:"Open Sans","DejaVu Sans",sans-serif;font-style:normal;font-weight:bold} +.conum[data-value] *{color:#fff!important} +.conum[data-value]+b{display:none} +.conum[data-value]::after{content:attr(data-value)} +pre .conum[data-value]{position:relative;top:-.125em} +b.conum *{color:inherit!important} +.conum:not([data-value]):empty{display:none} +dt,th.tableblock,td.content,div.footnote{text-rendering:optimizeLegibility} +h1,h2,p,td.content,span.alt{letter-spacing:-.01em} +p strong,td.content strong,div.footnote strong{letter-spacing:-.005em} +p,blockquote,dt,td.content,span.alt{font-size:1.0625rem} +p{margin-bottom:1.25rem} +.sidebarblock p,.sidebarblock dt,.sidebarblock td.content,p.tableblock{font-size:1em} +.exampleblock>.content{background-color:#fffef7;border-color:#e0e0dc;-webkit-box-shadow:0 1px 4px #e0e0dc;box-shadow:0 1px 4px #e0e0dc} +.print-only{display:none!important} +@page{margin:1.25cm .75cm} +@media print{*{-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:none!important} +html{font-size:80%} +a{color:inherit!important;text-decoration:underline!important} +a.bare,a[href^="#"],a[href^="mailto:"]{text-decoration:none!important} +a[href^="http:"]:not(.bare)::after,a[href^="https:"]:not(.bare)::after{content:"(" attr(href) ")";display:inline-block;font-size:.875em;padding-left:.25em} +abbr[title]::after{content:" (" attr(title) ")"} +pre,blockquote,tr,img,object,svg{page-break-inside:avoid} +thead{display:table-header-group} +svg{max-width:100%} +p,blockquote,dt,td.content{font-size:1em;orphans:3;widows:3} +h2,h3,#toctitle,.sidebarblock>.content>.title{page-break-after:avoid} +#toc,.sidebarblock,.exampleblock>.content{background:none!important} +#toc{border-bottom:1px solid #dddddf!important;padding-bottom:0!important} +body.book #header{text-align:center} +body.book #header>h1:first-child{border:0!important;margin:2.5em 0 1em} +body.book #header .details{border:0!important;display:block;padding:0!important} +body.book #header .details span:first-child{margin-left:0!important} +body.book #header .details br{display:block} +body.book #header .details br+span::before{content:none!important} +body.book #toc{border:0!important;text-align:left!important;padding:0!important;margin:0!important} +body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-break-before:always} +.listingblock code[data-lang]::before{display:block} +#footer{padding:0 .9375em} +.hide-on-print{display:none!important} +.print-only{display:block!important} +.hide-for-print{display:none!important} +.show-for-print{display:inherit!important}} +@media print,amzn-kf8{#header>h1:first-child{margin-top:1.25rem} +.sect1{padding:0!important} +.sect1+.sect1{border:0} +#footer{background:none} +#footer-text{color:rgba(0,0,0,.6);font-size:.9em}} +@media amzn-kf8{#header,#content,#footnotes,#footer{padding:0}} + +/* Zajo's customizations applied on top of the standard asciidoctor css above */ +h1{font-size:4em} +h2{font-size:1.74em} +h3,#toctitle,.sidebarblock>.content>.title{font-size:1.5em} +h4{font-size:1.2em} +h5{font-size:1em} +h6{font-size:1em} +#toc {text-align:left} +#toc ul code{font-size:111%} +#toc a:hover code {color:#4101a7} +a:focus{outline:0} +.colist td{color:rgba(0,0,0,.67)} +body{text-align:left; background:#fff;color:rgba(0,0,0,.67);padding:0;margin:0;font-family:"Istok Web","DejaVu Serif",serif;font-weight:400;font-style:normal;line-height:1;position:relative;cursor:auto;tab-size:4;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased} +.subheader,.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{line-height:1.45;color:#a0a0a0;font-weight:400;margin-top:0;margin-bottom:.25em} +a{color:#000000;text-decoration:underline;line-height:inherit} +a:hover{color:#4101a7} +a:focus{color:#000000} +h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{font-family:"Quicksand","DejaVu Sans",sans-serif;font-weight:300;font-style:normal;color:#4101a7;text-rendering:optimizeLegibility;margin-top:1em;margin-bottom:.5em;line-height:1.4em} +code{font-family:"Anonymous Pro","DejaVu Sans Mono",monospace;font-weight:400;color:black} +*:not(pre)>code{font-size:1.0em;font-style:normal!important;letter-spacing:0;padding:0 0;word-spacing:-.15em;background-color:transparent;-webkit-border-radius:0;border-radius:0;line-height:1.45;text-rendering:optimizeLegibility;word-wrap:break-word} +pre,pre>code{line-height:1.45;color:rgba(0,0,0,.9);font-family:"Anonymous Pro","DejaVu Sans Mono",monospace;font-weight:400;text-rendering:optimizeLegibility;font-size:1.05em;background-color:#f7f8f7} +a:not(pre)>code:hover {color:#4101a7} +kbd{font-family:"Anonymous Pro","DejaVu Sans Mono",monospace;display:inline-block;color:rgba(0,0,0,.8);font-size:.65em;line-height:1.45;background-color:#f7f7f7;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em white inset;box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em #fff inset;margin:0 .15em;padding:.2em .5em;vertical-align:middle;position:relative;top:-.1em;white-space:nowrap} +h1 code{color:#4101a7; font-size:113%} +h2 code{color:#4101a7; font-size:113%} +h3 code{color:#4101a7; font-size:113%} +h4 code{color:#4101a7; font-size:113%} +h5 code{color:#4101a7; font-size:113%} +#header>h1:first-child{font-family:"Smooch Sans";color:#ff5100;margin-top:2.25rem;margin-bottom:0} +#author{color: #4101a7;} +#toc ul{font-family:"Quicksand","DejaVu Sans",sans-serif;list-style-type:none} +#toc a:hover{color:#4101a7} +#toc.toc2{background-color:#f7f8f7} +.admonitionblock td.icon .icon-note::before{content:"\f05a";color:#606060} +.admonitionblock td.icon .icon-tip::before{content:"\f0eb";color:#606060;text-shadow:none} +.admonitionblock td.icon .icon-warning::before{content:"\f071";color:#ff5100} +.admonitionblock td.icon .icon-caution::before{content:"\f06d";color:#ff5100} +.admonitionblock td.icon .icon-important::before{content:"\f06a";color:#ff5100} +.conum[data-value]{display:inline-block;color:#fff!important;background-color:#606060;-webkit-border-radius:100px;border-radius:100px;text-align:center;font-size:.75em;width:1.67em;height:1.67em;line-height:1.67em;font-family:"Open Sans","DejaVu Sans",sans-serif;font-style:normal;font-weight:bold} +.exampleblock>.content{background-color:#ffffff;border-color:#e0e0dc;-webkit-box-shadow:0 1px 4px #e0e0dc;box-shadow:0 1px 4px #e0e0dc} +.quoteblock blockquote::before{margin-left:-.8em;color:#4101a7} +.quoteblock blockquote{font-family:"Istok Web","DejaVu Serif"; font-size:1.0625rem; padding:0.5em} +.text-right{margin-top:-1em} +.subtle-note{width:75%;margin-left:auto;text-align:right;font-style:italic} \ No newline at end of file diff --git a/doc/macros.html b/doc/macros.html index 27f4cae..b14f481 100644 --- a/doc/macros.html +++ b/doc/macros.html @@ -1,43 +1,10 @@ - - + + - - Macros - + + -
-
-
-
- -

Boost Exception

-
- - - -

-See also: Boost Exception -
- - - - -
-
-
+

Redirecting to index.html#macros...

diff --git a/doc/motivation.html b/doc/motivation.html index 3fae5bf..111c681 100644 --- a/doc/motivation.html +++ b/doc/motivation.html @@ -1,141 +1,10 @@ - - + + - - Motivation - + + -
-
-
-
- -

Boost Exception

-
- - - -

Motivation

-
-

Traditionally, when using exceptions to report failures, the throw site:

-
  • creates an exception object of the appropriate type, and
  • -
  • stuffs it with data relevant to the detected error.
  • -
-

A higher context in the program contains a catch statement which:

-
  • selects failures based on exception types, and
  • -
  • inspects exception objects for data required to deal with the problem.
  • -
-

The main issue with this "traditional" approach is that often, the data available at the point of the throw is insufficient for the catch site to handle the failure.

-

Here is an example of a catch statement:

-
catch( file_read_error & e )
-    {
-    std::cerr << e.file_name();
-    }
-

And here is a possible matching throw:

-
void
-read_file( FILE * f )
-    {
-    ....
-    size_t nr=fread(buf,1,count,f);
-    if( ferror(f) )
-        throw file_read_error(???);
-    ....
-    }
-

Clearly, the problem is that the handler requires a file name but the read_file function does not have a file name to put in the exception object; all it has is a FILE pointer!

-

In an attempt to deal with this problem, we could modify read_file to accept a file name:

-
void
-read_file( FILE * f, char const * name )
-    {
-    ....
-    size_t nr=fread(buf,1,count,f);
-    if( ferror(f) )
-        throw file_read_error(name);
-    ....
-    }
-

This is not a real solution: it simply shifts the burden of supplying a file name to the immediate caller of the read_file function.

-

In general, the data required to handle a given library-emitted exception depends on the program that links to it. Many contexts between the throw and the catch may have relevant information which must be transported to the exception handler.

-

Exception wrapping

-

The idea of exception wrapping is to catch an exception from a lower level function (such as the read_file function above), and throw a new exception object that contains the original exception (and also carries a file name.) This method seems to be particularly popular with C++ programmers with Java background.

-

Exception wrapping leads to the following problems:

-
  • To wrap an exception object it must be copied, which may result in slicing.
  • -
  • Wrapping is practically impossible to use in generic contexts.
  • -
-

The second point is actually special case of violating the exception neutrality principle. Most contexts in a program can not handle exceptions; such contexts should not interfere with the process of exception handling.

-

The boost::exception solution

-
  • Simply derive your exception types from boost::exception.
  • -
  • Confidently limit the throw site to provide only data that is available naturally.
  • -
  • Use exception-neutral contexts between the throw and the catch to augment exceptions with more relevant data as they bubble up.
  • -
-

For example, in the throw statement below we only add the errno code, since this is the only failure-relevant information available in this context:

-
struct exception_base: virtual std::exception, virtual boost::exception { };
-struct io_error: virtual exception_base { };
-struct file_read_error: virtual io_error { };
-
-typedef boost::error_info<struct tag_errno_code,int> errno_code;
-
-void
-read_file( FILE * f )
-    {
-    ....
-    size_t nr=fread(buf,1,count,f);
-    if( ferror(f) )
-        throw file_read_error() << errno_code(errno);
-    ....
-    }
-

In a higher exception-neutral context, we add the file name to any exception that derives from boost::exception:

-
typedef boost::error_info<struct tag_file_name,std::string> file_name;
-
-....
-try
-    {
-    if( FILE * fp=fopen("foo.txt","rt") )
-        {
-        shared_ptr<FILE> f(fp,fclose);
-        ....
-        read_file(fp); //throws types deriving from boost::exception
-        do_something();
-        ....
-        }
-    else
-        throw file_open_error() << errno_code(errno);
-    }
-catch( boost::exception & e )
-    {
-    e << file_name("foo.txt");
-    throw;
-    }
-

Finally here is how the handler retrieves data from exceptions that derive from boost::exception:

-
catch( io_error & e )
-    {
-    std::cerr << "I/O Error!\n";
-
-    if( std::string const * fn=get_error_info<file_name>(e) )
-        std::cerr << "File name: " << *fn << "\n";
-
-    if( int const * c=get_error_info<errno_code>(e) )
-        std::cerr << "OS says: " << strerror(*c) << "\n";
-    }
-

In addition, boost::diagnostic_information can be used to compose an automatic (if not user-friendly) message that contains all of the error_info objects added to a boost::exception. This is useful for inclusion in logs and other diagnostic objects.

-
- - - - -
-
-
+

Redirecting to index.html#motivation...

diff --git a/doc/original_exception_type.html b/doc/original_exception_type.html index 5c5b56e..fcb66f8 100644 --- a/doc/original_exception_type.html +++ b/doc/original_exception_type.html @@ -1,49 +1,10 @@ - - + + - - original_exception_type - + + -
-
-
-
- -

Boost Exception

-
- - - -

original_exception_type

-
-

#include <boost/exception_ptr.hpp>

-
namespace
-boost
-    {
-    typedef error_info<struct tag_original_exception_type,std::type_info const *> original_exception_type;
-    }
-

This error_info typedef is used by current_exception if it defaults to returning an exception_ptr that refers to an object of type unknown_exception, to record in it the std::type_info of the original exception object.

-
- - - - -
-
-
+

Redirecting to index.html#original_exception_type...

diff --git a/doc/rethrow_exception.html b/doc/rethrow_exception.html index e335e35..6bed198 100644 --- a/doc/rethrow_exception.html +++ b/doc/rethrow_exception.html @@ -1,52 +1,10 @@ - - + + - - rethrow_exception - + + -
-
-
-
- -

Boost Exception

-
- - - -

rethrow_exception

-
-

#include <boost/exception_ptr.hpp>

-
namespace
-boost
-    {
-    void rethrow_exception( exception_ptr const & ep );
-    }
-

Precondition:

-

ep shall not be null.

-

Throws:

-

The exception to which ep refers.

-
- - - - -
-
-
+

Redirecting to index.html#rethrow_exception...

diff --git a/doc/rouge-github.css b/doc/rouge-github.css new file mode 100644 index 0000000..b126f17 --- /dev/null +++ b/doc/rouge-github.css @@ -0,0 +1,199 @@ +.highlight table td { padding: 5px; } +.highlight table pre { margin: 0; } +.highlight .cm { + color: #999988; + font-style: italic; +} +.highlight .cp { + color: #999999; + font-weight: bold; +} +.highlight .c1 { + color: #999988; + font-style: italic; +} +.highlight .cs { + color: #999999; + font-weight: bold; + font-style: italic; +} +.highlight .c, .highlight .cd { + color: #999988; + font-style: italic; +} +.highlight .err { +} +.highlight .gd { + color: #000000; + background-color: #ffdddd; +} +.highlight .ge { + color: #000000; + font-style: italic; +} +.highlight .gr { + color: #aa0000; +} +.highlight .gh { + color: #999999; +} +.highlight .gi { + color: #000000; + background-color: #ddffdd; +} +.highlight .go { + color: #888888; +} +.highlight .gp { + color: #555555; +} +.highlight .gs { + font-weight: bold; +} +.highlight .gu { + color: #aaaaaa; +} +.highlight .gt { + color: #aa0000; +} +.highlight .kc { + font-weight: bold; +} +.highlight .kd { + font-weight: bold; +} +.highlight .kn { + font-weight: bold; +} +.highlight .kp { + font-weight: bold; +} +.highlight .kr { + font-weight: bold; +} +.highlight .kt { + color: #445588; + font-weight: bold; +} +.highlight .k, .highlight .kv { + font-weight: bold; +} +.highlight .mf { + color: #009999; +} +.highlight .mh { + color: #009999; +} +.highlight .il { + color: #009999; +} +.highlight .mi { + color: #009999; +} +.highlight .mo { + color: #009999; +} +.highlight .m, .highlight .mb, .highlight .mx { + color: #009999; +} +.highlight .sb { + color: #d14; +} +.highlight .sc { + color: #d14; +} +.highlight .sd { + color: #d14; +} +.highlight .s2 { + color: #d14; +} +.highlight .se { + color: #d14; +} +.highlight .sh { + color: #d14; +} +.highlight .si { + color: #d14; +} +.highlight .sx { + color: #d14; +} +.highlight .sr { + color: #009926; +} +.highlight .s1 { + color: #d14; +} +.highlight .ss { + color: #990073; +} +.highlight .s { + color: #d14; +} +.highlight .na { + color: #008080; +} +.highlight .bp { + color: #999999; +} +.highlight .nb { + color: #0086B3; +} +.highlight .nc { + color: #445588; + font-weight: bold; +} +.highlight .no { + color: #008080; +} +.highlight .nd { + color: #3c5d5d; + font-weight: bold; +} +.highlight .ni { + color: #800080; +} +.highlight .ne { + color: #990000; + font-weight: bold; +} +.highlight .nf { + color: #990000; + font-weight: bold; +} +.highlight .nl { + color: #990000; + font-weight: bold; +} +.highlight .nn { + color: #555555; +} +.highlight .nt { + color: #000080; +} +.highlight .vc { + color: #008080; +} +.highlight .vg { + color: #008080; +} +.highlight .vi { + color: #008080; +} +.highlight .nv { + color: #008080; +} +.highlight .ow { + font-weight: bold; +} +.highlight .o { + font-weight: bold; +} +.highlight .o { + font-weight: bold; +} +.highlight .w { + color: #bbbbbb; +} diff --git a/doc/skin.png b/doc/skin.png new file mode 100644 index 0000000..23540cc Binary files /dev/null and b/doc/skin.png differ diff --git a/doc/source/boost-exception.reno b/doc/source/boost-exception.reno deleted file mode 100644 index a14d855..0000000 --- a/doc/source/boost-exception.reno +++ /dev/null @@ -1,15372 +0,0 @@ - - 1 - - reno_project - - - - - - 2 - - reno_config - - - - ../..;../../../../boost - - - .*\.(cpp|hpp|h)$ - - - - - - - 3 - - reno_layer_map - - - - 7 - - default - - 4 - - reno_layer - - - - 75 - - - 0 - - 5 - - reno_context - - - - - - 2 - AEDDD2FA4F47CEBD99444F1054D85AB8132748CF38D6634503D62E9C8AD5FE68 - 1378637100 - 292 - 368 - 892C0239798B84BA2E80DAA70BBEB7BE0B6086A1D0829D0E1937EC1D19E3FF20 - 3349881047 - 89 - 197 - - - - - 0 - ../../../../boost/exception/errinfo_api_function.hpp - 0 - 0 - - - - - <string>errinfo_api_function</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 6 - - reno_context - - - - - - 0 - - - - - 1 - - - - - <string>boost exception</string> - - - boost-exception - - - - - 1 - 2 - (:include include:) - - - - 0 - - 7 - - reno_context - - - - - - 1 - FFF4359EFC66EE6AA729B641F38B4020A55E83A1C099BCA59B1CA9A9875E7F79 - 366628170 - 236 - 323 - - - - - 0 - ../../../../boost/exception/errinfo_file_handle.hpp - 0 - 0 - - - - - <string>boost/exception/errinfo_file_handle.hpp</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 8 - - reno_context - - - - - - 0 - - - - - 1 - - - - - <string>Types</string> - - - types - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 9 - - reno_context - - - - - - 3 - 9516640DF38FC07A649AA4CAF21D4C4A6D6C2DF2B00E608F8D1C653C8D85E58B - 406646287 - 956 - 564 - 8F508F9E7187AEA0E35A268B6F7B8E8A6C6588CCA01A2F3C5BBF1010699D8270 - 1555404133 - 578 - 372 - 38B566F2C6678B8724D18086A6F76E077DC2ADC1BB69A4B83BF0A2C3B7D31B50 - 2218658069 - 31 - 143 - - - - - 0 - ../../../../boost/exception/detail/error_info_impl.hpp - 0 - 0 - - - - - <string>error_info::value_type</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 10 - - reno_context - - - - - - 0 - - - - - 1 - - - - - <string>Functions</string> - - - functions - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 11 - - reno_context - - - - - - 1 - BF7B46FEFA4E2DED7D652BFD40E94DD0B225ADA8D35E28FF4216F72812589835 - 422843600 - 756 - 543 - - - - - 0 - ../../../../boost/exception/all.hpp - 0 - 0 - - - - - <string>boost/exception/all.hpp</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 12 - - reno_context - - - - - - 2 - ADCD0B47BEBAA82DE5FDCACB0E9E8FF900527566EF9865ECD8C08B62067B4C66 - 1181168733 - 14302 - 1027 - 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4 - 2078296250 - 305 - 1066 - - - - - 0 - ../../../../boost/exception/detail/exception_ptr.hpp - 0 - 0 - - - - - <string>copy_exception</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 13 - - reno_context - - - - - - 3 - 2F10A76F9BA78353597A5E6F1373E8188DE7AEFDCE29BFD0105527B64B37D00E - 1041541496 - 4693 - 1606 - 4FDA7B607488BB202B2AB72C17983031070085FB6B616F2B77320088BE08EB62 - 98930276 - 3714 - 26 - 28B2A7701322B20C8CF5D6074F9019FBEA2FB02F1A13E83632AA76C431798777 - 1206384617 - 3087 - 628 - - - - - 0 - ../../../../boost/exception/diagnostic_information.hpp - 0 - 0 - - - - - <string>diagnostic_information</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 14 - - reno_context - - - - - - 2 - 790A065B0168021FAD180E996254E3CDBC0360D22D3FCB83C143416663D85402 - 1376868984 - 262 - 323 - 83E18B98A15DEF9418E38218D221D10DC093B915D630B51974CCD23A6E1EDC44 - 849683856 - 98 - 158 - - - - - 0 - ../../../../boost/exception/errinfo_nested_exception.hpp - 0 - 0 - - - - - <string>errinfo_nested_exception</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 15 - - reno_context - - - - - - 1 - E0BE7EFCD5550582AB95C9EEDA6E68CA0F89B19838DA61876D42161E1EA4AE71 - 2587249979 - 233 - 323 - - - - - 0 - ../../../../boost/exception/errinfo_at_line.hpp - 0 - 0 - - - - - <string>boost/exception/errinfo_at_line.hpp</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 16 - - reno_context - - - - - - 2 - 15CF5BD93D20D62D659C11A69330B06E408398EA488BEF1FD45437AADCDB424E - 1232553666 - 214 - 345 - 6262783847165581298EC9500031E6B7A97B2751A9CEF67C4794121A78142C58 - 3676119191 - 90 - 118 - - - - - 0 - ../../../../boost/exception/errinfo_file_handle.hpp - 0 - 0 - - - - - <string>errinfo_file_handle</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 17 - - reno_context - - - - - - 0 - - - - - 1 - - - - - <string>frequently asked questions</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 18 - - reno_context - - - - - - 2 - 9A4ECF9A49A73AED83C1565CB8C67AE1519E8AFE6818F968B4C4733CB9E86CEF - 1615599655 - 68 - 321 - 34F0583BC8DE767CE2D79721E1F956895E43E5397473B1050F59BE7E26C773DB - 805836816 - 66 - 1 - - - - - 0 - ../../../../boost/exception/error_info.hpp - 0 - 0 - - - - - <string>boost/exception/error_info.hpp</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 19 - - reno_context - - - - - - 3 - C6DDF7D02A058403B7BD295CF1561F167D92B7DA1DAC4EBE9F801955264180EB - 1656366188 - 5040 - 767 - 507B2DA4184DD6A38FC6099F6454CDC96604C0C7B2C06A2955C78452F66526F8 - 457758605 - 3872 - 889 - 38AA79D330846BE1CF17285796F34A9DBB5A7E995963A55F9B46EB1DA6314610 - 542483318 - 573 - 3084 - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - - <string>exception/operator<<</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 20 - - reno_context - - - - - - 3 - 3EC508EAC996E7C8D4B1DDF49BF0B32096F8DEFD1BD1CD7FABBF0E0938255CA4 - 1239321455 - 12162 - 543 - 97095C7B5621CC7BAB278BE10B315FB44588DB1CF078F269E35499C0FD934AF0 - 2572216802 - 2505 - 4436 - A94129EFD6ABBDDCD4CFDB671821F7DA103B2EA4455CF39E783D333C236D1C41 - 1035445969 - 595 - 402 - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>exception::exception</string> - - - exception_constructors - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 21 - - reno_context - - - - - - 0 - - - - - 1 - - - - - <string>Synopsis</string> - - - synopsis - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 22 - - reno_context - - - - - - 1 - 8A5444CF9C854740F83F17EA2075478A983F7C0243DCE4E42551ECBF908C1392 - 4193409281 - 322 - 992 - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>configuration macros</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 23 - - reno_context - - - - - - 2 - ADCD0B47BEBAA82DE5FDCACB0E9E8FF900527566EF9865ECD8C08B62067B4C66 - 1181168733 - 14302 - 1027 - 10E31FFA267B250065A2630D0B7107862920D940AEA0A5499D5341A902AE01FF - 1524325002 - 368 - 13033 - - - - - 0 - ../../../../boost/exception/detail/exception_ptr.hpp - 0 - 0 - - - - - <string>rethrow_exception</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 24 - - reno_context - - - - - - 0 - - - - - 1 - - - - - <string>using virtual inheritance in exception types</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 25 - - reno_context - - - - - - 1 - 56C5A51DE37A6E893DA3B25D69DB65E4593C7803C6E34112E1F95C93D6037A82 - 275305396 - 5586 - 321 - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - - <string>boost/exception/info.hpp</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 26 - - reno_context - - - - - - 1 - 66E0BD9724AB83012F5B35D887E3313960DC0E69B94E0C03CA1F3C85A0D84A5C - 2883671483 - 311 - 306 - - - - - 0 - ../../example/logging.cpp - 0 - 0 - - - - - <string>diagnostic information</string> - - - tutorial_diagnostic_information - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 27 - - reno_context - - - - - - 2 - 1B4417301AE3C0338C22E6D497391F51ABD459E521E7DFCE59A6EEC1372D33C2 - 202224383 - 1766 - 616 - E0A17503B42EE12F31548A7D20F89916D734CE88B30A1BF6F9FC2D1F83A8B6F4 - 3410340567 - 1734 - 26 - - - - - 0 - ../../../../boost/exception/info_tuple.hpp - 0 - 0 - - - - - <string>tuple/operator<<</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 28 - - reno_context - - - - - - 1 - 3B52D5850D9664639CCF1D22FBD52F2EB99087BED704C3FE07FE185B38C0DD09 - 676740550 - 15108 - 321 - - - - - 0 - ../../../../boost/exception/detail/exception_ptr.hpp - 0 - 0 - - - - - <string>boost/exception_ptr.hpp</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 29 - - reno_context - - - - - - 2 - ADCD0B47BEBAA82DE5FDCACB0E9E8FF900527566EF9865ECD8C08B62067B4C66 - 1181168733 - 14302 - 1027 - EEDBDE62A278D2AF428D9D1ED2ABCFF06163BACD91E12DD033565C7043354B89 - 246173488 - 248 - 1396 - - - - - 0 - ../../../../boost/exception/detail/exception_ptr.hpp - 0 - 0 - - - - - <string>original_exception_type</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 30 - - reno_context - - - - - - 0 - - - - - 1 - - - - - <string>transporting of exceptions between threads</string> - - - tutorial_exception_ptr - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 31 - - reno_context - - - - - - 1 - FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717 - 2229778754 - 631 - 319 - - - - - 0 - ../../example/cloning_2.cpp - 0 - 0 - - - - - <string>cloning and re-throwing an exception</string> - - - cloning_and_rethrowing - - - - - 0 - - - - 0 - - 32 - - reno_context - - - - - - 2 - 3EC508EAC996E7C8D4B1DDF49BF0B32096F8DEFD1BD1CD7FABBF0E0938255CA4 - 1239321455 - 12162 - 543 - DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 - 1137981799 - 192 - 11964 - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>enable_current_exception</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 33 - - reno_context - - - - - - 1 - 197F3960CFF5CBDEF7BDA8D0DE60948A5328F229C6710FEDE656530A3116B29B - 742102996 - 475 - 1316 - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>BOOST_THROW_EXCEPTION</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 34 - - reno_context - - - - - - 2 - 3EC508EAC996E7C8D4B1DDF49BF0B32096F8DEFD1BD1CD7FABBF0E0938255CA4 - 1239321455 - 12162 - 543 - 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E - 765399792 - 77 - 7076 - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>exception::~exception</string> - - - exception_destructor - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 35 - - reno_context - - - - - - 0 - - - - - 1 - - - - - <string>Headers</string> - - - headers - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 36 - - reno_context - - - - - - 0 - - - - - 1 - - - - - <string>boost/exception/enable_current_exception.hpp</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 37 - - reno_context - - - - - - 1 - 422CF2A57EA6763FBD2F319C4CDD8DD5ADF4493C699B50653015A362F71D4500 - 1282485161 - 2161 - 321 - - - - - 0 - ../../../../boost/exception/info_tuple.hpp - 0 - 0 - - - - - <string>boost/exception/info_tuple.hpp</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 38 - - reno_context - - - - - - 2 - 2F10A76F9BA78353597A5E6F1373E8188DE7AEFDCE29BFD0105527B64B37D00E - 1041541496 - 4693 - 1606 - 20B46D7510ED9F1F40CF3A80C97AE430628745D26173DE91E3D6CB6CEABDAA58 - 2572596214 - 659 - 4028 - - - - - 0 - ../../../../boost/exception/diagnostic_information.hpp - 0 - 0 - - - - - <string>diagnostic_information_what</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 39 - - reno_context - - - - - - 1 - F971041F60D19AFB8AA50440BC2A911633E5826FDED7B3E1CFC90D241D880C32 - 931174095 - 3062 - 95 - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>boost/throw_exception.hpp</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 40 - - reno_context - - - - - - 1 - 979343A73CAA7601AF159E6240A03038F47940F71F6DE85D6BA648B179921C35 - 2321681356 - 939 - 321 - - - - - 0 - ../../../../boost/exception/errinfo_errno.hpp - 0 - 0 - - - - - <string>boost/exception/errinfo_errno.hpp</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 41 - - reno_context - - - - - - 2 - 21027A2B73C9AA6FF083752A952D63BBA9B5FD68A3C8915965A7184EA62A5D61 - 1523356166 - 537 - 623 - 24256E1CE56594FB38D0630858B8947191827CFC57771E8727A6A56F76207454 - 665917505 - 66 - 26 - - - - - 0 - ../../../../boost/exception/errinfo_errno.hpp - 0 - 0 - - - - - <string>errinfo_errno</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 42 - - reno_context - - - - - - 1 - F2E44174DE588C19C0172D82AD61322E6B6578ADBE2A631C6C8059CB84396D97 - 670214046 - 684 - 321 - - - - - 0 - ../../../../boost/exception/current_exception_cast.hpp - 0 - 0 - - - - - <string>boost/exception/current_exception_cast.hpp</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 43 - - reno_context - - - - - - 1 - 756A81C65A938BEEAD9B576707145748A3DB3BF767CC77ADD5AACD549373856A - 904132245 - 744 - 363 - - - - - 0 - ../../example/info_tuple.cpp - 0 - 0 - - - - - <string>adding grouped data to exceptions</string> - - - grouping_data - - - - - 0 - - - - 0 - - 44 - - reno_context - - - - - - 1 - 4EDD3DF2332B6D9D22AC9AD90B850ACC715A24DD466E675014CBED25C63C255F - 4175717823 - 328 - 323 - - - - - 0 - ../../../../boost/exception/errinfo_type_info_name.hpp - 0 - 0 - - - - - <string>boost/exception/errinfo_type_info_name.hpp</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 45 - - reno_context - - - - - - 0 - - - - - 1 - - - - - <string>exception types as simple semantic tags</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 46 - - reno_context - - - - - - 1 - 91CF203512705C8B2CDCBCD1439821CBF93CFC1A4C2EA2CA91F38DAA3F7720B2 - 1769665510 - 1558 - 352 - - - - - 0 - ../../example/errinfos.cpp - 0 - 0 - - - - - <string>errinfos example</string> - - - - - - - - 0 - - - - 0 - - 47 - - reno_context - - - - - - 2 - 8A8FAA48FF123031D5E51D50BC96D0AAC468112838058976B85AC6EED4A25C57 - 4201574956 - 763 - 833 - AEA5C07CF015DDE792E061003F669239E7AADBD24BE554EB26706AD9B28B8C89 - 2503775994 - 472 - 285 - - - - - 0 - ../../../../boost/exception/diagnostic_information.hpp - 0 - 0 - - - - - <string>current_exception_diagnostic_information</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 48 - - reno_context - - - - - - 2 - 307034E20863A00923777A60D9495B4076B7F917D5B97203025299060F0833E0 - 3948311309 - 396 - 344 - F8ED2052577830AC0C515EC5932BB14445DD5DA714782281FCDB1776961FECB1 - 3880328768 - 82 - 308 - - - - - 0 - ../../../../boost/exception/errinfo_file_name.hpp - 0 - 0 - - - - - <string>errinfo_file_name</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 49 - - reno_context - - - - - - 0 - - - - - 1 - - - - - <string>transporting of arbitrary data to the catch site</string> - - - tutorial_transporting_data - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 50 - - reno_context - - - - - - 1 - 3EC508EAC996E7C8D4B1DDF49BF0B32096F8DEFD1BD1CD7FABBF0E0938255CA4 - 1239321455 - 12162 - 543 - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>boost/exception/exception.hpp</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 51 - - reno_context - - - - - - 1 - D32E0E4334CE0236B6EDB0EAC484B2DD595860E9FD53701EB5646D62C6A45D4E - 1054670543 - 866 - 306 - - - - - 0 - ../../example/error_info_2.cpp - 0 - 0 - - - - - <string>adding of arbitrary data to active exception objects</string> - - - adding_data_later - - - - - 0 - - - - 0 - - 52 - - reno_context - - - - - - 3 - 9516640DF38FC07A649AA4CAF21D4C4A6D6C2DF2B00E608F8D1C653C8D85E58B - 406646287 - 956 - 564 - 8F508F9E7187AEA0E35A268B6F7B8E8A6C6588CCA01A2F3C5BBF1010699D8270 - 1555404133 - 578 - 372 - 98B33BE76679E3A4831241335CD5DFF6F634429F36BABF96C1D4DC2296C5ECC5 - 1584672077 - 208 - 259 - - - - - 0 - ../../../../boost/exception/detail/error_info_impl.hpp - 0 - 0 - - - - - <string>error_info::value</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 53 - - reno_context - - - - - - 2 - 3EC508EAC996E7C8D4B1DDF49BF0B32096F8DEFD1BD1CD7FABBF0E0938255CA4 - 1239321455 - 12162 - 543 - 96DA9A7E983733685FB1D74C8ABF58EA409CCA42F8522A9775E15BC0C93DB87B - 3668840260 - 2638 - 4436 - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>exception</string> - - - - - - - - 1 - 2 - (:include include:) ---- !!!See Also: (:pagelist link="backlink" except_tags="exception member noalso" mod="w" fmt="h":) - - - - 0 - - 54 - - reno_context - - - - - - 2 - 9516640DF38FC07A649AA4CAF21D4C4A6D6C2DF2B00E608F8D1C653C8D85E58B - 406646287 - 956 - 564 - 8F508F9E7187AEA0E35A268B6F7B8E8A6C6588CCA01A2F3C5BBF1010699D8270 - 1555404133 - 578 - 372 - - - - - 0 - ../../../../boost/exception/detail/error_info_impl.hpp - 0 - 0 - - - - - <string>error_info</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 55 - - reno_context - - - - - - 2 - C6DDF7D02A058403B7BD295CF1561F167D92B7DA1DAC4EBE9F801955264180EB - 1656366188 - 5040 - 767 - 6E325144EF4F41FA3A225EB30729101382C4E99B3D6160E307311E4B4E641010 - 1097215175 - 161 - 422 - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - - <string>error_info::error_info</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 56 - - reno_context - - - - - - 1 - 790A065B0168021FAD180E996254E3CDBC0360D22D3FCB83C143416663D85402 - 1376868984 - 262 - 323 - - - - - 0 - ../../../../boost/exception/errinfo_nested_exception.hpp - 0 - 0 - - - - - <string>boost/exception/errinfo_nested_exception.hpp</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 57 - - reno_context - - - - - - 0 - - - - - 1 - - - - - <string>Motivation</string> - - - motivation - - - - - 7 - 2 - (:include include:) (:auto also explicit=" - 1 - - 0 - - -45 - - - 2 - - 1 - - 0 - - 58 - - reno_context - - - - - - 1 - C95CEF2E9D0BAA1E950509471062916DB849A46A19F7692BA478030E79B338EB - 1917376632 - 706 - 408 - - - - - 0 - ../../example/enable_error_info.cpp - 0 - 0 - - - - - <string>integrating boost exception in existing exception class hierarchies</string> - - - tutorial_enable_error_info - - - - - 2 - - 1 - - 0 - - -17 - - - 2 - ":) - - - - 0 - - -58 - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 59 - - reno_context - - - - - - 1 - 21A43755562CB78B3FFCC49F66B457C1FCD659EE98F25BBFA8DDE453EB89DF0E - 2576704708 - 337 - 323 - - - - - 0 - ../../../../boost/exception/errinfo_api_function.hpp - 0 - 0 - - - - - <string>boost/exception/errinfo_api_function.hpp</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 60 - - reno_context - - - - - - 1 - 4D7009F0868C1DF4898EC6ECF9AD2CFEA98E8653B01B066106761807405D4C22 - 1416707852 - 3107 - 543 - - - - - 0 - ../../../../boost/exception/get_error_info.hpp - 0 - 0 - - - - - <string>boost/exception/get_error_info.hpp</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 61 - - reno_context - - - - - - 0 - - - - - 1 - - - - - <string>Macros</string> - - - macros - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 62 - - reno_context - - - - - - 3 - ADCD0B47BEBAA82DE5FDCACB0E9E8FF900527566EF9865ECD8C08B62067B4C66 - 1181168733 - 14302 - 1027 - 2482DDAF6A7E31CF75E93B993C86D9814A0B8899B68E555B23D411BD195FE270 - 1574307697 - 8349 - 4068 - 7E162EB263369C2C485D5F69CA1A4FADD3EEBC6EB78CE7A767A8615885178079 - 1179386730 - 5404 - 2935 - - - - - 0 - ../../../../boost/exception/detail/exception_ptr.hpp - 0 - 0 - - - - - <string>current_exception</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 63 - - reno_context - - - - - - 2 - 3EC508EAC996E7C8D4B1DDF49BF0B32096F8DEFD1BD1CD7FABBF0E0938255CA4 - 1239321455 - 12162 - 543 - F3FB15CD82336271C6E875BC620385322777D16F0B7C233300783CE35710CCBF - 3292878997 - 282 - 9470 - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - - <string>enable_error_info</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 64 - - reno_context - - - - - - 1 - 0CA48A4674CA9C409FF164D9A1B261FB48B0916C0EA387DF2F00DC4637E769BD - 348807582 - 6078 - 321 - - - - - 0 - ../../../../boost/exception/diagnostic_information.hpp - 0 - 0 - - - - - <string>boost/exception/diagnostic_information.hpp</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 65 - - reno_context - - - - - - 1 - 27ED18F9B6131B084FEF0C9F932B7027AF449E378B5FD7973CD6642263FCAF27 - 2867102400 - 404 - 307 - - - - - 0 - ../../example/cloning_1.cpp - 0 - 0 - - - - - <string>using enable_current_exception at the time of the throw</string> - - - using_enable_cloning - - - - - 0 - - - - 0 - - 66 - - reno_context - - - - - - 1 - 66EFC83C830F0B00D0C9399B475099072E2674B3C694F9152645A33E3D7AC303 - 561674611 - 417 - 323 - - - - - 0 - ../../../../boost/exception/errinfo_file_name.hpp - 0 - 0 - - - - - <string>boost/exception/errinfo_file_name.hpp</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 67 - - reno_context - - - - - - 2 - FD7792C2929DD7B6BD613636FD0C574D002286E33811BA109B57B9C4D790D340 - 1830643656 - 1244 - 1793 - BAE73EEDFF4059A7561888B4BA054DFA033F0967727630270F2C0D4EB918B88D - 3168166030 - 1222 - 21 - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - - <string>throw_exception</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 68 - - reno_context - - - - - - 2 - D58AD357499A5A09FB5D12397CFFC2FFD412AC8A307ABB59C9BC53ACCA3B959D - 2209414553 - 2926 - 724 - 49F40FF20D66B205C908A8F10BC61DE1BC571E4917A5BD0B4115E3F7FE3923FA - 638776689 - 2894 - 26 - - - - - 0 - ../../../../boost/exception/get_error_info.hpp - 0 - 0 - - - - - <string>get_error_info</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 69 - - reno_context - - - - - - 2 - ADCD0B47BEBAA82DE5FDCACB0E9E8FF900527566EF9865ECD8C08B62067B4C66 - 1181168733 - 14302 - 1027 - 1D5E771272B020A105B69E186517499873571F62AFF9D48F130C952CFAA12FA3 - 2841506107 - 891 - 173 - - - - - 0 - ../../../../boost/exception/detail/exception_ptr.hpp - 0 - 0 - - - - - <string>exception_ptr</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 70 - - reno_context - - - - - - 2 - EEA69AA1E84CB2B7C903A3F4C236D0A233D03DBA4BA1D3B97D959918F3B30E09 - 2728032055 - 406 - 344 - EE695B95A2499B66980754857E184776F1DE7224372A5F5153B6DF94E621A89B - 1009590890 - 92 - 308 - - - - - 0 - ../../../../boost/exception/errinfo_file_open_mode.hpp - 0 - 0 - - - - - <string>errinfo_file_open_mode</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 71 - - reno_context - - - - - - 2 - 6FB85B536F965F137409D5B5D34786DCBF0B9957A7C251D271B717A1156B823D - 1090406464 - 362 - 543 - D16DAEA8B1792A019AF7FCA362FDC6EFD381AF4C43C076A01C029ECE51F994A6 - 3172941848 - 330 - 26 - - - - - 0 - ../../../../boost/exception/current_exception_cast.hpp - 0 - 0 - - - - - <string>current_exception_cast</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 72 - - reno_context - - - - - - 1 - DB156E6A8ACB9FB90C8FB110FC25A5FEB14A619F82EEC47FF913373592E5CC3E - 240075319 - 6209 - 412 - - - - - 0 - ../../example/example_io.cpp - 0 - 0 - - - - - <string>diagnostic_information example</string> - - - - - - - - 0 - - - - 0 - - 73 - - reno_context - - - - - - 2 - E0BE7EFCD5550582AB95C9EEDA6E68CA0F89B19838DA61876D42161E1EA4AE71 - 2587249979 - 233 - 323 - 92AB508A6B1C2A62CB2ACED423BD04BB5A471674B5A51BFC1E6FB1F5C92AF9AA - 2372475309 - 70 - 157 - - - - - 0 - ../../../../boost/exception/errinfo_at_line.hpp - 0 - 0 - - - - - <string>errinfo_at_line</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 74 - - reno_context - - - - - - 0 - - - - - 1 - - - - - <string>page index</string> - - - page_idx - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 75 - - reno_context - - - - - - 1 - 977045132A532A0071B0B53F737D85367CE9A331402F96790E45B3B6F2FC88A6 - 1875939463 - 529 - 382 - - - - - 0 - ../../example/error_info_1.cpp - 0 - 0 - - - - - <string>adding of arbitrary data at the point of the throw</string> - - - adding_data_at_throw - - - - - 0 - - - - 0 - - 76 - - reno_context - - - - - - 1 - DE766B811244919E8E1EA54FC747A8487BCE57F1AB592932640FC90428B617A5 - 414875037 - 427 - 323 - - - - - 0 - ../../../../boost/exception/errinfo_file_open_mode.hpp - 0 - 0 - - - - - <string>boost/exception/errinfo_file_open_mode.hpp</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 77 - - reno_context - - - - - - 3 - ADCD0B47BEBAA82DE5FDCACB0E9E8FF900527566EF9865ECD8C08B62067B4C66 - 1181168733 - 14302 - 1027 - 97DB2EDAA38019314BA1A582664F8950F5208310F14BAB94E1880AE2C5F00CD4 - 3076716310 - 959 - 2974 - 1760DA943E0DCAE6DDB000F3C08D6E6F5F8AEDBBEAC7CAA84A2ED60BFA4B0E1A - 702729709 - 815 - 145 - - - - - 0 - ../../../../boost/exception/detail/exception_ptr.hpp - 0 - 0 - - - - - <string>unknown_exception</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 78 - - reno_context - - - - - - 0 - - - - - 1 - - - - - <string>boost/exception/enable_error_info.hpp</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - 0 - - 79 - - reno_context - - - - - - 2 - 126A895281064E2195458B8A47CD73DB7E3BE3608F250925E07AF4230CBDDE1D - 4231421785 - 307 - 344 - 16179B125E2BC6D993FBE4BA5E9A96DBAE43CA1443C7D281B659D020B6725983 - 1126376090 - 92 - 209 - - - - - 0 - ../../../../boost/exception/errinfo_type_info_name.hpp - 0 - 0 - - - - - <string>errinfo_type_info_name</string> - - - - - - - - 1 - 2 - (:include include:) (:auto also:) - - - - - - - def - - 80 - - reno_layer - - - - 75 - - - 0 - - -5 - - - 5 - 2 - [@typedef (:link - 1 - - 0 - - -54 - - - 2 - :)<struct errinfo_api_function_,char const *> (:link - 1 - - 0 - - -5 - - - 2 - :);@] - - - - 0 - - -6 - - - 0 - - - - 0 - - -7 - - - 0 - - - - 0 - - -8 - - - 0 - - - - 0 - - -9 - - - 0 - - - - 0 - - -10 - - - 0 - - - - 0 - - -11 - - - 0 - - - - 0 - - -12 - - - 0 - - - - 0 - - -13 - - - 0 - - - - 0 - - -14 - - - 7 - 2 - [@typedef (:link - 1 - - 0 - - -54 - - - 2 - :)<struct errinfo_nested_exception_,(:link - 1 - - 0 - - -69 - - - 2 - :)> (:link - 1 - - 0 - - -14 - - - 2 - :);@] - - - - 0 - - -15 - - - 0 - - - - 0 - - -16 - - - 5 - 2 - [@typedef (:link - 1 - - 0 - - -54 - - - 2 - :)<struct errinfo_file_handle_,weak_ptr<FILE> > (:link - 1 - - 0 - - -16 - - - 2 - :);@] - - - - 0 - - -17 - - - 0 - - - - 0 - - -18 - - - 0 - - - - 0 - - -19 - - - 0 - - - - 0 - - -20 - - - 0 - - - - 0 - - -21 - - - 0 - - - - 0 - - -22 - - - 0 - - - - 0 - - -23 - - - 0 - - - - 0 - - -24 - - - 0 - - - - 0 - - -25 - - - 0 - - - - 0 - - -26 - - - 0 - - - - 0 - - -27 - - - 0 - - - - 0 - - -28 - - - 0 - - - - 0 - - -29 - - - 0 - - - - 0 - - -30 - - - 0 - - - - 0 - - -31 - - - 0 - - - - 0 - - -32 - - - 0 - - - - 0 - - -33 - - - 0 - - - - 0 - - -34 - - - 0 - - - - 0 - - -35 - - - 0 - - - - 0 - - -36 - - - 0 - - - - 0 - - -37 - - - 0 - - - - 0 - - -38 - - - 0 - - - - 0 - - -39 - - - 0 - - - - 0 - - -40 - - - 0 - - - - 0 - - -41 - - - 5 - 2 - [@typedef - 1 - - 0 - - -54 - - - 2 - <struct errinfo_errno_,int> - 1 - - 0 - - -41 - - - 2 - ;@] - - - - 0 - - -42 - - - 0 - - - - 0 - - -43 - - - 0 - - - - 0 - - -44 - - - 0 - - - - 0 - - -45 - - - 0 - - - - 0 - - -46 - - - 0 - - - - 0 - - -47 - - - 0 - - - - 0 - - -48 - - - 5 - 2 - [@typedef (:link - 1 - - 0 - - -54 - - - 2 - :)<struct errinfo_file_name_,std::string> (:link - 1 - - 0 - - -48 - - - 2 - :);@] - - - - 0 - - -49 - - - 0 - - - - 0 - - -50 - - - 0 - - - - 0 - - -51 - - - 0 - - - - 0 - - -52 - - - 0 - - - - 0 - - -53 - - - 7 - 2 - [@class (:link - 1 - - 0 - - -53 - - - 2 - :) { protected: (:include - 1 - - 0 - - -20 - - - 2 - decl pre_indent="4":) (:include - 1 - - 0 - - -34 - - - 2 - decl pre_indent="4":) };@] - - - - 0 - - -54 - - - 9 - 2 - [@template <class Tag,class T> class (:link - 1 - - 0 - - -54 - - - 2 - :) { public: (:include - 1 - - 0 - - -9 - - - 2 - decl pre_indent="4":) (:include - 1 - - 0 - - -55 - - - 2 - decl pre_indent="4":) (:include - 1 - - 0 - - -52 - - - 2 - decl pre_indent="4":) };@] - - - - 0 - - -55 - - - 0 - - - - 0 - - -56 - - - 0 - - - - 0 - - -57 - - - 0 - - - - 0 - - -58 - - - 0 - - - - 0 - - -59 - - - 0 - - - - 0 - - -60 - - - 0 - - - - 0 - - -61 - - - 0 - - - - 0 - - -62 - - - 0 - - - - 0 - - -63 - - - 0 - - - - 0 - - -64 - - - 0 - - - - 0 - - -65 - - - 0 - - - - 0 - - -66 - - - 0 - - - - 0 - - -67 - - - 0 - - - - 0 - - -68 - - - 0 - - - - 0 - - -69 - - - 0 - - - - 0 - - -70 - - - 5 - 2 - [@typedef - 1 - - 0 - - -54 - - - 2 - <struct errinfo_file_open_mode_,std::string> - 1 - - 0 - - -70 - - - 2 - ;@] - - - - 0 - - -71 - - - 0 - - - - 0 - - -72 - - - 0 - - - - 0 - - -73 - - - 5 - 2 - [@typedef (:link - 1 - - 0 - - -54 - - - 2 - :)<struct errinfo_at_line_,int> (:link - 1 - - 0 - - -73 - - - 2 - :);@] - - - - 0 - - -74 - - - 0 - - - - 0 - - -75 - - - 0 - - - - 0 - - -76 - - - 0 - - - - 0 - - -77 - - - 0 - - - - 0 - - -78 - - - 0 - - - - 0 - - -79 - - - 5 - 2 - [@typedef - 1 - - 0 - - -54 - - - 2 - <struct errinfo_type_info_name_,std::string> - 1 - - 0 - - -79 - - - 2 - ;@] - - - - - - - api - - 81 - - reno_layer - - - - 75 - - - 0 - - -5 - - - 0 - - - - 0 - - -6 - - - 0 - - - - 0 - - -7 - - - 3 - 2 - [@(:include - 1 - - 0 - - -16 - - - 2 - def:)@] - - - - 0 - - -8 - - - 0 - - - - 0 - - -9 - - - 0 - - - - 0 - - -10 - - - 0 - - - - 0 - - -11 - - - 33 - 2 - [@#include <(:link - 1 - - 0 - - -64 - - - 2 - :)> #include <(:link - 1 - - 0 - - -18 - - - 2 - :)> #include <(:link - 1 - - 0 - - -50 - - - 2 - :)> #include <(:link - 1 - - 0 - - -60 - - - 2 - :)> #include <(:link - 1 - - 0 - - -25 - - - 2 - :)> #include <(:link - 1 - - 0 - - -37 - - - 2 - :)> #include <(:link - 1 - - 0 - - -59 - - - 2 - :)> #include <(:link - 1 - - 0 - - -15 - - - 2 - :)> #include <(:link - 1 - - 0 - - -40 - - - 2 - :)> #include <(:link - 1 - - 0 - - -7 - - - 2 - :)> #include <(:link - 1 - - 0 - - -66 - - - 2 - :)> #include <(:link - 1 - - 0 - - -76 - - - 2 - :)> #include <(:link - 1 - - 0 - - -44 - - - 2 - :)> #ifndef (:link - 1 - - 0 - - -22 - - - 2 - |BOOST_NO_EXCEPTIONS:) #include <(:link - 1 - - 0 - - -56 - - - 2 - :)> #include <(:link - 1 - - 0 - - -28 - - - 2 - :)> #endif@] - - - - 0 - - -12 - - - 0 - - - - 0 - - -13 - - - 0 - - - - 0 - - -14 - - - 0 - - - - 0 - - -15 - - - 3 - 2 - [@(:include - 1 - - 0 - - -73 - - - 2 - def:)@] - - - - 0 - - -16 - - - 0 - - - - 0 - - -17 - - - 0 - - - - 0 - - -18 - - - 3 - 2 - [@(:include - 1 - - 0 - - -54 - - - 2 - decl:)@] - - - - 0 - - -19 - - - 0 - - - - 0 - - -20 - - - 0 - - - - 0 - - -21 - - - 0 - - - - 0 - - -22 - - - 0 - - - - 0 - - -23 - - - 0 - - - - 0 - - -24 - - - 0 - - - - 0 - - -25 - - - 5 - 2 - [@(:include - 1 - - 0 - - -54 - - - 2 - def:) (:include - 1 - - 0 - - -19 - - - 2 - decl:)@] - - - - 0 - - -26 - - - 0 - - - - 0 - - -27 - - - 0 - - - - 0 - - -28 - - - 13 - 2 - [@(:include - 1 - - 0 - - -77 - - - 2 - decl:) (:include - 1 - - 0 - - -29 - - - 2 - decl:) (:include - 1 - - 0 - - -69 - - - 2 - decl:) (:include - 1 - - 0 - - -12 - - - 2 - decl:) (:include - 1 - - 0 - - -62 - - - 2 - decl:) (:include - 1 - - 0 - - -23 - - - 2 - decl:)@] - - - - 0 - - -29 - - - 0 - - - - 0 - - -30 - - - 0 - - - - 0 - - -31 - - - 0 - - - - 0 - - -32 - - - 0 - - - - 0 - - -33 - - - 0 - - - - 0 - - -34 - - - 0 - - - - 0 - - -35 - - - 0 - - - - 0 - - -36 - - - 3 - 2 - [@(:include - 1 - - 0 - - -32 - - - 2 - decl:)@] - - - - 0 - - -37 - - - 3 - 2 - [@(:include - 1 - - 0 - - -27 - - - 2 - decl:)@] - - - - 0 - - -38 - - - 0 - - - - 0 - - -39 - - - 5 - 2 - [@(:include - 1 - - 0 - - -33 - - - 2 - decl:) namespace boost { (:include - 1 - - 0 - - -67 - - - 2 - decl:) }@] - - - - 0 - - -40 - - - 3 - 2 - [@(:include - 1 - - 0 - - -41 - - - 2 - def:)@] - - - - 0 - - -41 - - - 0 - - - - 0 - - -42 - - - 3 - 2 - [@(:include - 1 - - 0 - - -71 - - - 2 - decl:)@] - - - - 0 - - -43 - - - 0 - - - - 0 - - -44 - - - 3 - 2 - [@(:include - 1 - - 0 - - -79 - - - 2 - def:)@] - - - - 0 - - -45 - - - 0 - - - - 0 - - -46 - - - 0 - - - - 0 - - -47 - - - 0 - - - - 0 - - -48 - - - 0 - - - - 0 - - -49 - - - 0 - - - - 0 - - -50 - - - 11 - 2 - [@(:include - 1 - - 0 - - -53 - - - 2 - def:) (:include - 1 - - 0 - - -54 - - - 2 - decl:) typedef (:link - 1 - - 0 - - -54 - - - 2 - :)<struct throw_function_,char const *> throw_function; typedef (:link - 1 - - 0 - - -54 - - - 2 - :)<struct throw_file_,char const *> throw_file; typedef (:link - 1 - - 0 - - -54 - - - 2 - :)<struct throw_line_,int> throw_line;@] - - - - 0 - - -51 - - - 0 - - - - 0 - - -52 - - - 0 - - - - 0 - - -53 - - - 0 - - - - 0 - - -54 - - - 0 - - - - 0 - - -55 - - - 0 - - - - 0 - - -56 - - - 3 - 2 - [@(:include - 1 - - 0 - - -14 - - - 2 - def:)@] - - - - 0 - - -57 - - - 0 - - - - 0 - - -58 - - - 0 - - - - 0 - - -59 - - - 3 - 2 - [@(:include - 1 - - 0 - - -5 - - - 2 - def:)@] - - - - 0 - - -60 - - - 3 - 2 - [@(:include - 1 - - 0 - - -68 - - - 2 - decl:)@] - - - - 0 - - -61 - - - 0 - - - - 0 - - -62 - - - 0 - - - - 0 - - -63 - - - 0 - - - - 0 - - -64 - - - 7 - 2 - [@(:include - 1 - - 0 - - -13 - - - 2 - decl:) (:include - 1 - - 0 - - -38 - - - 2 - decl:) (:include - 1 - - 0 - - -47 - - - 2 - decl:)@] - - - - 0 - - -65 - - - 0 - - - - 0 - - -66 - - - 3 - 2 - [@(:include - 1 - - 0 - - -48 - - - 2 - def:)@] - - - - 0 - - -67 - - - 0 - - - - 0 - - -68 - - - 0 - - - - 0 - - -69 - - - 0 - - - - 0 - - -70 - - - 0 - - - - 0 - - -71 - - - 0 - - - - 0 - - -72 - - - 0 - - - - 0 - - -73 - - - 0 - - - - 0 - - -74 - - - 0 - - - - 0 - - -75 - - - 0 - - - - 0 - - -76 - - - 3 - 2 - [@(:include - 1 - - 0 - - -70 - - - 2 - def:)@] - - - - 0 - - -77 - - - 0 - - - - 0 - - -78 - - - 3 - 2 - [@(:include - 1 - - 0 - - -63 - - - 2 - decl:)@] - - - - 0 - - -79 - - - 0 - - - - - - - decl - - 82 - - reno_layer - - - - 75 - - - 0 - - -5 - - - 0 - - - - 0 - - -6 - - - 0 - - - - 0 - - -7 - - - 0 - - - - 0 - - -8 - - - 0 - - - - 0 - - -9 - - - 3 - 2 - [@typedef T (:link - 1 - - 0 - - -9 - - - 2 - mod="m":);@] - - - - 0 - - -10 - - - 0 - - - - 0 - - -11 - - - 0 - - - - 0 - - -12 - - - 5 - 2 - [@template <class T> (:link - 1 - - 0 - - -69 - - - 2 - :) (:link - 1 - - 0 - - -12 - - - 2 - :)( T const & e );@] - - - - 0 - - -13 - - - 7 - 2 - [@template <class E> std::string (:link - 1 - - 0 - - -13 - - - 2 - :)( E const & e, bool verbose=true ); std::string (:link - 1 - - 0 - - -13 - - - 2 - :)( (:link - 1 - - 0 - - -69 - - - 2 - :) const & p, bool verbose=true );@] - - - - 0 - - -14 - - - 0 - - - - 0 - - -15 - - - 0 - - - - 0 - - -16 - - - 0 - - - - 0 - - -17 - - - 0 - - - - 0 - - -18 - - - 0 - - - - 0 - - -19 - - - 5 - 2 - [@template <class E, class Tag, class T> E const & (:link - 1 - - 0 - - -19 - - - 2 - mod="/":)( E const & x, (:link - 1 - - 0 - - -54 - - - 2 - :)<Tag,T> const & v );@] - - - - 0 - - -20 - - - 7 - 2 - [@(:link - 1 - - 0 - - -20 - - - 2 - mod="m":)(); (:link - 1 - - 0 - - -20 - - - 2 - mod="m":)( (:link - 1 - - 0 - - -53 - - - 2 - :) const & x );@] - - - - 0 - - -21 - - - 0 - - - - 0 - - -22 - - - 0 - - - - 0 - - -23 - - - 5 - 2 - [@void (:link - 1 - - 0 - - -23 - - - 2 - :)( (:link - 1 - - 0 - - -69 - - - 2 - :) const & ep ); - - - - 0 - - -24 - - - 0 - - - - 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 - - -54 - - - 2 - :)<Tag1,T1>, ..., (:link - 1 - - 0 - - -54 - - - 2 - :)<TagN,TN> > const & v );@] - - - - 0 - - -28 - - - 0 - - - - 0 - - -29 - - - 5 - 2 - [@typedef (:link - 1 - - 0 - - -54 - - - 2 - :)<struct tag_original_exception_type,std::type_info const *> - 1 - - 0 - - -29 - - - 2 - ;@] - - - - 0 - - -30 - - - 0 - - - - 0 - - -31 - - - 0 - - - - 0 - - -32 - - - 3 - 2 - [@template <class T> ---unspecified--- (:link - 1 - - 0 - - -32 - - - 2 - :)( T const & e );@] - - - - 0 - - -33 - - - 21 - 2 - [@#if !defined( BOOST_EXCEPTION_DISABLE ) #include <(:link - 1 - - 0 - - -50 - - - 2 - :)> #include <boost/current_function.hpp> #define (:link - 1 - - 0 - - -33 - - - 2 - :)(x)\ ::boost::(:link - 1 - - 0 - - -67 - - - 2 - :)( ::boost::(:link - 1 - - 0 - - -63 - - - 2 - :)(x) <<\ ::boost::(:link - 1 - - 0 - - -50 - - - 2 - |throw_function:)((:link - 1 - - 0 - - -22 - - - 2 - |BOOST_THROW_EXCEPTION_CURRENT_FUNCTION:)) <<\ ::boost::(:link - 1 - - 0 - - -50 - - - 2 - |throw_file:)(__FILE__) <<\ ::boost::(:link - 1 - - 0 - - -50 - - - 2 - |throw_line:)((int)__LINE__) ) #else #define (:link - 1 - - 0 - - -33 - - - 2 - :)(x) ::boost::(:link - 1 - - 0 - - -67 - - - 2 - :)(x) #endif@] - - - - 0 - - -34 - - - 3 - 2 - [@(:link - 1 - - 0 - - -34 - - - 2 - mod="m":)();@] - - - - 0 - - -35 - - - 0 - - - - 0 - - -36 - - - 0 - - - - 0 - - -37 - - - 0 - - - - 0 - - -38 - - - 5 - 2 - [@char const * (:link - 1 - - 0 - - -38 - - - 2 - :)( boost::(:link - 1 - - 0 - - -53 - - - 2 - :) const & e, bool verbose=true ) throw();@] - - - - 0 - - -39 - - - 0 - - - - 0 - - -40 - - - 0 - - - - 0 - - -41 - - - 0 - - - - 0 - - -42 - - - 0 - - - - 0 - - -43 - - - 0 - - - - 0 - - -44 - - - 0 - - - - 0 - - -45 - - - 0 - - - - 0 - - -46 - - - 0 - - - - 0 - - -47 - - - 3 - 2 - [@std::string (:link - 1 - - 0 - - -47 - - - 2 - :)();@] - - - - 0 - - -48 - - - 0 - - - - 0 - - -49 - - - 0 - - - - 0 - - -50 - - - 0 - - - - 0 - - -51 - - - 0 - - - - 0 - - -52 - - - 9 - 2 - [@(:link - 1 - - 0 - - -9 - - - 2 - mod="m":) const & (:link - 1 - - 0 - - -52 - - - 2 - mod="m":)() const; (:link - 1 - - 0 - - -9 - - - 2 - mod="m":) & (:link - 1 - - 0 - - -52 - - - 2 - mod="m":)();@] - - - - 0 - - -53 - - - 3 - 2 - [@class (:link - 1 - - 0 - - -53 - - - 2 - :);@] - - - - 0 - - -54 - - - 3 - 2 - [@template <class Tag,class T> class (:link - 1 - - 0 - - -54 - - - 2 - :);@] - - - - 0 - - -55 - - - 5 - 2 - [@(:link - 1 - - 0 - - -55 - - - 2 - mod="m":)( (:link - 1 - - 0 - - -9 - - - 2 - mod="m":) const & v );@] - - - - 0 - - -56 - - - 0 - - - - 0 - - -57 - - - 0 - - - - 0 - - -58 - - - 0 - - - - 0 - - -59 - - - 0 - - - - 0 - - -60 - - - 0 - - - - 0 - - -61 - - - 0 - - - - 0 - - -62 - - - 5 - 2 - [@(:link - 1 - - 0 - - -69 - - - 2 - :) (:link - 1 - - 0 - - -62 - - - 2 - :)();@] - - - - 0 - - -63 - - - 3 - 2 - [@template <class T> ---unspecified--- (:link - 1 - - 0 - - -63 - - - 2 - :)( T const & x );@] - - - - 0 - - -64 - - - 0 - - - - 0 - - -65 - - - 0 - - - - 0 - - -66 - - - 0 - - - - 0 - - -67 - - - 5 - 2 - [@#ifdef BOOST_NO_EXCEPTIONS void (:link - 1 - - 0 - - -67 - - - 2 - :)( std::exception const & e ); // user defined #else template <class E> void (:link - 1 - - 0 - - -67 - - - 2 - :)( E const & e ); #endif@] - - - - 0 - - -68 - - - 1 - 2 - [@template <class ErrorInfo,class E> typename ErrorInfo::(:link error_info::value_type mod="m":) const * (:link get_error_info:)( E const & x ); template <class ErrorInfo,class E> typename ErrorInfo::(:link error_info::value_type mod="m":) * (:link get_error_info:)( E & x );@] - - - - 0 - - -69 - - - 3 - 2 - [@typedef ---unspecified--- (:link - 1 - - 0 - - -69 - - - 2 - :);@] - - - - 0 - - -70 - - - 0 - - - - 0 - - -71 - - - 3 - 2 - [@template <class E> E * - 1 - - 0 - - -71 - - - 2 - ();@] - - - - 0 - - -72 - - - 0 - - - - 0 - - -73 - - - 0 - - - - 0 - - -74 - - - 0 - - - - 0 - - -75 - - - 0 - - - - 0 - - -76 - - - 0 - - - - 0 - - -77 - - - 5 - 2 - [@class (:link - 1 - - 0 - - -77 - - - 2 - :): public std::exception public boost:: - 1 - - 0 - - -53 - - - 2 - { ---unspecified--- };@] - - - - 0 - - -78 - - - 0 - - - - 0 - - -79 - - - 0 - - - - - - - include - - 83 - - reno_layer - - - - 75 - - - 0 - - -5 - - - 7 - 2 - (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard (:link - 1 - - 0 - - -54 - - - 2 - :) instance for transporting the name of a relevant API function (which does not use exceptions to report errors) in exceptions deriving from boost::(:link - 1 - - 0 - - -53 - - - 2 - :). !!!Example: (:include - 1 - - 0 - - -46 - - - 2 - :) - - - - 0 - - -6 - - - 69 - 2 - !!Introduction The purpose of Boost Exception is to ease the design of exception class hierarchies and to help write exception handling and error reporting code. It supports transporting of arbitrary data to the catch site, which is otherwise tricky due to the no-throw requirements (15.5.1) for exception types. Data can be added to any exception object, either directly in the throw-expression (15.1), or at a later time as the exception object propagates up the call stack. The ability to add data to exception objects after they have been passed to throw is important, because often some of the information needed to handle an exception is unavailable in the context where the failure is detected. Boost Exception also supports (:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:)-style (:link - 1 - - 0 - - -30 - - - 2 - |copying:) of exception objects, implemented non-intrusively and automatically by the boost::(:link - 1 - - 0 - - -67 - - - 2 - :) function. !!Contents #(:link - 1 - - 0 - - -57 - - - 2 - :) #Tutorial ##(:link - 1 - - 0 - - -49 - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -58 - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -30 - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -45 - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -24 - - - 2 - mod="w":) ##(:link - 1 - - 0 - - -26 - - - 2 - mod="w":) #Documentation ##Class (:link - 1 - - 0 - - -53 - - - 2 - :) ##Throwing Exceptions ###(:link - 1 - - 0 - - -33 - - - 2 - :) ###(:link - 1 - - 0 - - -67 - - - 2 - :) ##Transporting of Arbitrary Data to the Catch Site ###(:link - 1 - - 0 - - -54 - - - 2 - :) ###(:link - 1 - - 0 - - -19 - - - 2 - :) ###(:link - 1 - - 0 - - -27 - - - 2 - :) ###(:link - 1 - - 0 - - -68 - - - 2 - :) ###(:link - 1 - - 0 - - -63 - - - 2 - :) ##(:link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html|N2179:) Transporting of Exceptions between Threads ###(:link - 1 - - 0 - - -69 - - - 2 - :) ###(:link - 1 - - 0 - - -32 - - - 2 - :) ###(:link - 1 - - 0 - - -62 - - - 2 - :) ###(:link - 1 - - 0 - - -12 - - - 2 - :) ###(:link - 1 - - 0 - - -23 - - - 2 - :) ###(:link - 1 - - 0 - - -77 - - - 2 - :) ##Diagnostic Information ###(:link - 1 - - 0 - - -13 - - - 2 - :) ###(:link - 1 - - 0 - - -47 - - - 2 - :) ##(:link - 1 - - 0 - - -71 - - - 2 - :) #API ##(:link - 1 - - 0 - - -21 - - - 2 - :) ##(:link - 1 - - 0 - - -35 - - - 2 - :) ##(:link - 1 - - 0 - - -8 - - - 2 - :) ##(:link - 1 - - 0 - - -10 - - - 2 - :) ##(:link - 1 - - 0 - - -61 - - - 2 - :) ##(:link - 1 - - 0 - - -22 - - - 2 - mod="w":) #(:link - 1 - - 0 - - -17 - - - 2 - mod="w":) #(:link - 1 - - 0 - - -74 - - - 2 - mod="w":) !!!Acknowledgements Thanks to Peter Dimov for his continuing help. Also thanks to Tobias Schwinger, Tom Brinkman, Pavel Vozenilek and everyone who participated in the review process. - - - - 0 - - -7 - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - 0 - - -8 - - - 1 - 2 - (:auto !!:) (:pagelist fmt="index" tags="type":) - - - - 0 - - -9 - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Definition: The expression - 1 - - 0 - - -54 - - - 2 - <Tag,T>::(:link - 1 - - 0 - - -9 - - - 2 - mod="m":) evaluates to T. - - - - 0 - - -10 - - - 1 - 2 - (:auto !!:) (:pagelist fmt="index" tags="function":) - - - - 0 - - -11 - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - 0 - - -12 - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Effects: As if [@try { throw - 1 - - 0 - - -32 - - - 2 - (e); } catch(...) { return (:link - 1 - - 0 - - -62 - - - 2 - :)(); }@] - - - - 0 - - -13 - - - 39 - 2 - (:auto !!!:) (:include synopsis:) !!!!Returns: A string value that contains varying amount of diagnostic information about the passed object: * If E can be statically converted to either boost::(:link - 1 - - 0 - - -53 - - - 2 - :) or to std::exception, dynamic_cast is used to access both the boost::(:link - 1 - - 0 - - -53 - - - 2 - :) and std::exception subobjects of e; otherwise, the boost::(:link - 1 - - 0 - - -13 - - - 2 - :) template is not available. * The returned value contains the string representations of all (:link - 1 - - 0 - - -54 - - - 2 - :) objects stored in the boost::(:link - 1 - - 0 - - -53 - - - 2 - :) subobject through (:link - 1 - - 0 - - -19 - - - 2 - mod="/":). * In addition, if verbose is true, it contains other diagnostic information relevant to the exception, including the string returned by std::exception::what(). The string representation of each (:link - 1 - - 0 - - -54 - - - 2 - :) object is deduced by an unqualified call to to_string(x), where x is of type (:link - 1 - - 0 - - -54 - - - 2 - :)<Tag,T>, for which Boost Exception defines a generic overload. It converts x.(:link - 1 - - 0 - - -52 - - - 2 - mod="m":)() to string, attempting to bind (at the time the (:link - 1 - - 0 - - -54 - - - 2 - :)<Tag,T> template is instantiated) the following functions in order: #Unqualified call to to_string(x.(:link - 1 - - 0 - - -52 - - - 2 - mod="m":)()) (the return value is expected to be of type std::string.) #Unqualified call to s << x.(:link - 1 - - 0 - - -52 - - - 2 - mod="m":)(), where s is a std::ostringstream. The first successfully bound function is used at the time (:link - 1 - - 0 - - -13 - - - 2 - :) is called; if both overload resolutions are unsuccessful, the system is unable to convert the (:link - 1 - - 0 - - -54 - - - 2 - :) object to string, and ''an unspecified stub string value is used without issuing a compile error.'' The (:link - 1 - - 0 - - -69 - - - 2 - :) overload of (:link - 1 - - 0 - - -13 - - - 2 - :) is equivalent to: [@if( p ) try { (:link - 1 - - 0 - - -23 - - - 2 - :)(p); } catch(...) { return (:link - 1 - - 0 - - -47 - - - 2 - :)(verbose); } else return <unspecified-string-value>;@] (:include - 1 - - 0 - - -72 - - - 2 - :) - - - - 0 - - -14 - - - 7 - 2 - (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard (:link - 1 - - 0 - - -54 - - - 2 - :) instance for transporting (in exceptions deriving from boost::(:link - 1 - - 0 - - -53 - - - 2 - :)) an - 1 - - 0 - - -69 - - - 2 - to an exception nested into another exception. - - - - 0 - - -15 - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - 0 - - -16 - - - 7 - 2 - (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard (:link - 1 - - 0 - - -54 - - - 2 - :) instance for transporting a relevant FILE pointer managed by a boost::shared_ptr<FILE> in exceptions deriving from boost::(:link - 1 - - 0 - - -53 - - - 2 - :). !!!Example: (:include - 1 - - 0 - - -46 - - - 2 - :) - - - - 0 - - -17 - - - 81 - 2 - (:auto !!:) !!!What is the cost of calling boost::throw_exception? The cost is that boost::(:link - 1 - - 0 - - -53 - - - 2 - :) is added as a base of the exception emitted by boost::(:link - 1 - - 0 - - -67 - - - 2 - :) (unless the passed type already derives from boost::(:link - 1 - - 0 - - -53 - - - 2 - :).) Calling boost::(:link - 1 - - 0 - - -67 - - - 2 - :) does not cause dynamic memory allocations. !!!What is the cost of BOOST_THROW_EXCEPTION? In addition to calling boost::(:link - 1 - - 0 - - -67 - - - 2 - :), - 1 - - 0 - - -33 - - - 2 - invokes __FILE__, __LINE__ and the (:link - 1 - - 0 - - -22 - - - 2 - |BOOST_THROW_EXCEPTION_CURRENT_FUNCTION:) macros. The space required to store the information is already included in sizeof(boost::(:link - 1 - - 0 - - -53 - - - 2 - :)). Calling - 1 - - 0 - - -33 - - - 2 - does not cause dynamic memory allocations. !!!Should I use boost::throw_exception or BOOST_THROW_EXCEPTION or just throw? The benefit of calling boost::(:link - 1 - - 0 - - -67 - - - 2 - :) instead of using throw directly is that it ensures that the emitted exception derives from boost::(:link - 1 - - 0 - - -53 - - - 2 - :) and that it is compatible with boost::(:link - 1 - - 0 - - -62 - - - 2 - :). The (:link - 1 - - 0 - - -33 - - - 2 - :) macro also results in a call to boost::(:link - 1 - - 0 - - -67 - - - 2 - :), but in addition it records in the exception object the __FILE__ and __LINE__ of the throw, as well as the pretty name of the function that throws. This enables boost::(:link - 1 - - 0 - - -13 - - - 2 - :) to compose a more useful, if not user-friendly message. Typical use of boost::(:link - 1 - - 0 - - -13 - - - 2 - :) is: [@catch(...) { std::cerr << "Unexpected exception, diagnostic information follows:\n" << - 1 - - 0 - - -47 - - - 2 - (); }@] This is a possible message it may display -- the information in the first line is only available if (:link - 1 - - 0 - - -33 - - - 2 - :) was used to throw: [@example_io.cpp(70): Throw in function class boost::shared_ptr<struct _iobuf> __cdecl my_fopen(const char *,const char *) Dynamic exception type: class boost::exception_detail::clone_impl<class fopen_error> std::exception::what: example_io error [struct boost::(:link - 1 - - 0 - - -5 - - - 2 - :)_ *] = fopen [struct boost::(:link - 1 - - 0 - - -41 - - - 2 - :)_ *] = 2, "No such file or directory" [struct boost::(:link - 1 - - 0 - - -48 - - - 2 - :)_ *] = tmp1.txt [struct boost::(:link - 1 - - 0 - - -70 - - - 2 - :)_ *] = rb@] In some development environments, the first line in that message can be clicked to show the location of the throw in the debugger, so it's easy to set a break point and run again to see the unexpected throw in the context of its call stack. !!!Why doesn't boost::exception derive from std::exception? Despite that (:link - 1 - - 0 - - -24 - - - 2 - |virtual inheritance should be used in deriving from base exception types:), quite often exception types (including the ones defined in the standard library) don't derive from std::exception virtually. If boost::(:link - 1 - - 0 - - -53 - - - 2 - :) derives from std::exception, using the (:link - 1 - - 0 - - -63 - - - 2 - :) function with such user-defined types would introduce dangerous ambiguity which would break all catch(std::exception &) statements. Of course, boost::(:link - 1 - - 0 - - -53 - - - 2 - :) should not be used to replace std::exception as a base type in exception type hierarchies. Instead, it should be included as a virtual base, in addition to std::exception (which should probably also be derived virtually.) !!!Why is boost::exception abstract? To prevent exception-neutral contexts from erroneously erasing the type of the original exception when adding (:link - 1 - - 0 - - -54 - - - 2 - :) to an active exception object: [@catch( boost::(:link - 1 - - 0 - - -53 - - - 2 - :) & e ) { e (:link - 1 - - 0 - - -19 - - - 2 - |<<:) foo_info(foo); throw e; //Compile error: boost::(:link - 1 - - 0 - - -53 - - - 2 - :) is abstract }@] The correct code is: [@catch( boost::(:link - 1 - - 0 - - -53 - - - 2 - :) & e ) { e (:link - 1 - - 0 - - -19 - - - 2 - |<<:) foo_info(foo); throw; //Okay, re-throwing the original exception object. }@] !!!Why use operator<< overload for adding info to exceptions? Before throwing an object of type that derives from boost::(:link - 1 - - 0 - - -53 - - - 2 - :), it is often desirable to add one or more (:link - 1 - - 0 - - -54 - - - 2 - :) objects in it. The syntactic sugar provided by (:link - 1 - - 0 - - -19 - - - 2 - mod="/":) allows this to be done directly in a throw expression: [@throw error() (:link - 1 - - 0 - - -19 - - - 2 - |<<:) foo_info(foo) (:link - 1 - - 0 - - -19 - - - 2 - |<<:) bar_info(bar);@] !!!Why is operator<< allowed to throw? This question is referring to the following issue. Consider this throw statement example: [@throw file_open_error() (:link - 1 - - 0 - - -19 - - - 2 - |<<:) file_name(fn);@] The intention here is to throw a file_open_error, however if (:link - 1 - - 0 - - -19 - - - 2 - mod="/":) fails to copy the std::string contained in the file_name (:link - 1 - - 0 - - -54 - - - 2 - :) wrapper, a std::bad_alloc could propagate instead. This behavior seems undesirable to some programmers. Bjarne Stroustrup, The C++ Programming Language, 3rd Edition, page 371: ->''"Throwing an exception requires an object to throw. A C++ implementation is required to have enough spare memory to be able to throw bad_alloc in case of memory exhaustion. However, it is possible that throwing some other exception will cause memory exhaustion."'' Therefore, the language itself does not guarantee that an attempt to throw an exception is guaranteed to throw an object of the specified type; propagating a std::bad_alloc seems to be a possibility even outside of the scope of Boost Exception. - - - - 0 - - -18 - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - 0 - - -19 - - - 7 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link - 1 - - 0 - - -53 - - - 2 - :), or a type that derives (indirectly) from boost::(:link - 1 - - 0 - - -53 - - - 2 - :). !!!!Postcondition: A copy of v is stored into x. If x already contains data of type (:link - 1 - - 0 - - -54 - - - 2 - :)<Tag,T>, that data is overwritten. Basic exception safety guarantee. !!!!Returns: x. (:include throws:) - - - - 0 - - -20 - - - 7 - 2 - (:auto !!!:) (:include decl:) !!!!Effects: * Default constructor: initializes an empty boost::(:link - 1 - - 0 - - -53 - - - 2 - :) object. * Copy constructor: initializes a boost::(:link - 1 - - 0 - - -53 - - - 2 - :) object which shares ownership with x of all data added through (:link - 1 - - 0 - - -19 - - - 2 - mod="/":), including data that is added at a future time. !!!!Throws: Nothing. - - - - 0 - - -21 - - - 77 - 2 - !!Synopsis List of documented definitions, declarations and includes by header file: `#include <(:link - 1 - - 0 - - -50 - - - 2 - :)> [@(:include - 1 - - 0 - - -50 - - - 2 - synopsis:)@] `#include <(:link - 1 - - 0 - - -18 - - - 2 - :)> [@(:include - 1 - - 0 - - -18 - - - 2 - synopsis:)@] `#include <(:link - 1 - - 0 - - -25 - - - 2 - :)> [@(:include - 1 - - 0 - - -25 - - - 2 - synopsis:)@] `#include <(:link - 1 - - 0 - - -37 - - - 2 - :)> [@(:include - 1 - - 0 - - -37 - - - 2 - synopsis:)@] `#include <(:link - 1 - - 0 - - -78 - - - 2 - :)> [@(:include - 1 - - 0 - - -78 - - - 2 - synopsis:)@] `#include <(:link - 1 - - 0 - - -64 - - - 2 - :)> [@(:include - 1 - - 0 - - -64 - - - 2 - synopsis:)@] `#include <(:link - 1 - - 0 - - -42 - - - 2 - :)> [@(:include - 1 - - 0 - - -42 - - - 2 - synopsis:)@] `#include <(:link - 1 - - 0 - - -28 - - - 2 - :)> [@(:include - 1 - - 0 - - -28 - - - 2 - synopsis:)@] `#include <(:link - 1 - - 0 - - -36 - - - 2 - :)> [@(:include - 1 - - 0 - - -36 - - - 2 - synopsis:)@] `#include <(:link - 1 - - 0 - - -39 - - - 2 - :)> [@(:include - 1 - - 0 - - -39 - - - 2 - synopsis:)@] `#include <(:link - 1 - - 0 - - -59 - - - 2 - :)> (:include - 1 - - 0 - - -59 - - - 2 - synopsis:) `#include <(:link - 1 - - 0 - - -15 - - - 2 - :)> (:include - 1 - - 0 - - -15 - - - 2 - synopsis:) `#include <(:link - 1 - - 0 - - -40 - - - 2 - :)> (:include - 1 - - 0 - - -40 - - - 2 - synopsis:) `#include <(:link - 1 - - 0 - - -7 - - - 2 - :)> (:include - 1 - - 0 - - -7 - - - 2 - synopsis:) `#include <(:link - 1 - - 0 - - -66 - - - 2 - :)> (:include - 1 - - 0 - - -66 - - - 2 - synopsis:) `#include <(:link - 1 - - 0 - - -76 - - - 2 - :)> (:include - 1 - - 0 - - -76 - - - 2 - synopsis:) `#include < - 1 - - 0 - - -56 - - - 2 - > (:include - 1 - - 0 - - -56 - - - 2 - synopsis:) `#include <(:link - 1 - - 0 - - -44 - - - 2 - :)> (:include - 1 - - 0 - - -44 - - - 2 - synopsis:) `#include <(:link - 1 - - 0 - - -11 - - - 2 - :)> (:include - 1 - - 0 - - -11 - - - 2 - synopsis:) - - - - 0 - - -22 - - - 21 - 2 - (:auto !!:) Boost Exception responds to the following configuration macros: '''BOOST_NO_RTTI'''\\ '''BOOST_NO_TYPEID''' The first macro prevents Boost Exception from using dynamic_cast and dynamic typeid. If the second macro is also defined, Boost Exception does not use static typeid either. There are no observable degrading effects on the library functionality, except for the following: ->By default, the (:link - 1 - - 0 - - -68 - - - 2 - :) function template can be called with any exception type. If BOOST_NO_RTTI is defined, (:link - 1 - - 0 - - -68 - - - 2 - :) can be used only with objects of type boost::(:link - 1 - - 0 - - -53 - - - 2 - :). !!!!Note: The library needs RTTI functionality. Disabling the language RTTI support enables an internal RTTI system, which may have more or less overhead depending on the platform. '''BOOST_EXCEPTION_DISABLE''' By default, (:link - 1 - - 0 - - -32 - - - 2 - :) and (:link - 1 - - 0 - - -63 - - - 2 - :) are integrated directly in the (:link - 1 - - 0 - - -67 - - - 2 - :) function. Defining BOOST_EXCEPTION_DISABLE disables this integration. Note that on some non-conformant compilers, for example MSVC 7.0 and older, as well as BCC, BOOST_EXCEPTION_DISABLE is implicitly defined in (:link - 1 - - 0 - - -39 - - - 2 - :). '''BOOST_NO_EXCEPTIONS''' This macro disables exception handling in Boost, forwarding all exceptions to a user-defined non-template version of boost::(:link - 1 - - 0 - - -67 - - - 2 - :). However, unless BOOST_EXCEPTION_DISABLE is also defined, users can still examine the exception object for any data added at the point of the throw, or use boost::(:link - 1 - - 0 - - -13 - - - 2 - :) (of course under BOOST_NO_EXCEPTIONS, the user-defined boost::throw_exception is not allowed to return to the caller.) '''BOOST_THROW_EXCEPTION_CURRENT_FUNCTION''' The - 1 - - 0 - - -33 - - - 2 - macro uses BOOST_THROW_EXCEPTION_CURRENT_FUNCTION to record the name of the current function in the exception object. Unless overridden by the user, BOOST_THROW_EXCEPTION_CURRENT_FUNCTION expands to BOOST_CURRENT_FUNCTION. - - - - 0 - - -23 - - - 1 - 2 - (:auto !!!:) (:include synopsis:) !!!!Precondition: ep shall not be null. !!!!Throws: The exception to which ep refers. - - - - 0 - - -24 - - - 5 - 2 - (:auto !!!:) Exception types should use virtual inheritance when deriving from other exception types. This insight is due to Andrew Koenig. Using virtual inheritance prevents ambiguity problems in the exception handler: [@#include <iostream> struct my_exc1 : std::exception { char const* what() const throw(); }; struct my_exc2 : std::exception { char const* what() const throw(); }; struct your_exc3 : my_exc1, my_exc2 {}; int main() { try { throw your_exc3(); } catch(std::exception const& e) {} catch(...) { std::cout << "whoops!" << std::endl; } }@] The program above outputs "whoops!" because the conversion to std::exception is ambiguous. The overhead introduced by virtual inheritance is always negligible in the context of exception handling. Note that virtual bases are initialized directly by the constructor of the most-derived-type (the type passed to the throw statement, in case of exceptions.) However, typically this detail is of no concern when boost::(:link - 1 - - 0 - - -53 - - - 2 - :) is used, because it enables exception types to be trivial structs with no members (there's nothing to initialize.) See (:link - 1 - - 0 - - -45 - - - 2 - mod="w":). - - - - 0 - - -25 - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - 0 - - -26 - - - 19 - 2 - (:auto !!:) Boost Exception provides a namespace-scope function (:link - 1 - - 0 - - -13 - - - 2 - :) which takes a boost::(:link - 1 - - 0 - - -53 - - - 2 - :). The returned string contains: *the string representation of all data objects added to the boost::(:link - 1 - - 0 - - -53 - - - 2 - :) through (:link - 1 - - 0 - - -19 - - - 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 - - -11 - - - 2 - :)> #include <iostream> void f(); //throws unknown types that derive from boost::(:link - 1 - - 0 - - -53 - - - 2 - :). void g() { try { f(); } catch( boost::(:link - 1 - - 0 - - -53 - - - 2 - :) & e ) { std::cerr << (:link - 1 - - 0 - - -13 - - - 2 - :)(e); } }@] (:include - 1 - - 0 - - -72 - - - 2 - :) - - - - 0 - - -27 - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: E must be boost::(:link - 1 - - 0 - - -53 - - - 2 - :), or a type that derives (indirectly) from boost::(:link - 1 - - 0 - - -53 - - - 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 - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - 0 - - -29 - - - 9 - 2 - (:auto !!!:) (:include synopsis:) This - 1 - - 0 - - -54 - - - 2 - typedef is used by - 1 - - 0 - - -62 - - - 2 - if it defaults to returning an - 1 - - 0 - - -69 - - - 2 - that refers to an object of type - 1 - - 0 - - -77 - - - 2 - , to record in it the std::type_info of the original exception object. - - - - 0 - - -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 - - -32 - - - 2 - :) at the time of the throw is required in order to use cloning. !!!!Note: All exceptions emitted by the familiar function boost::(:link - 1 - - 0 - - -67 - - - 2 - :) are guaranteed to derive from boost::(:link - 1 - - 0 - - -53 - - - 2 - :) and to support cloning. (:include - 1 - - 0 - - -65 - - - 2 - :) (:include - 1 - - 0 - - -31 - - - 2 - :) - - - - 0 - - -31 - - - 37 - 2 - (:auto !!!:) When you catch an exception, you can call (:link - 1 - - 0 - - -62 - - - 2 - :) to get an (:link - 1 - - 0 - - -69 - - - 2 - :) object: [@#include <(:link - 1 - - 0 - - -28 - - - 2 - :)> #include <boost/thread.hpp> #include <boost/bind.hpp> void do_work(); //throws cloning-enabled boost::(:link - 1 - - 0 - - -53 - - - 2 - :)s void worker_thread( boost::(:link - 1 - - 0 - - -69 - - - 2 - :) & error ) { try { do_work(); error = boost::(:link - 1 - - 0 - - -69 - - - 2 - :)(); } catch( ... ) { error = boost::(:link - 1 - - 0 - - -62 - - - 2 - :)(); } }@] In the above example, note that (:link - 1 - - 0 - - -62 - - - 2 - :) captures the original type of the exception object. The exception can be thrown again using the (:link - 1 - - 0 - - -23 - - - 2 - :) function: [@// ...continued void work() { boost::(:link - 1 - - 0 - - -69 - - - 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 - - -23 - - - 2 - :)(error); }@] Note that (:link - 1 - - 0 - - -62 - - - 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 - - -69 - - - 2 - :) points to an instance of std::bad_alloc, or * if (:link - 1 - - 0 - - -32 - - - 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 - - -69 - - - 2 - :) points to an instance of (:link - 1 - - 0 - - -77 - - - 2 - :). Regardless, the use of (:link - 1 - - 0 - - -62 - - - 2 - :) and (:link - 1 - - 0 - - -23 - - - 2 - :) in the above examples is well-formed. - - - - 0 - - -32 - - - 21 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: * T must be a class with an accessible no-throw copy constructor. * If T has any virtual base types, those types must have an accessible default constructor. !!!!Returns: An object of ''unspecified'' type which derives publicly from T. That is, the returned object can be intercepted by a catch(T &). !!!!Description: This function is designed to be used directly in a throw-expression to enable the (:link - 1 - - 0 - - -69 - - - 2 - :) support in Boost Exception. For example: [@class my_exception: public std::exception { }; .... throw boost::(:link - 1 - - 0 - - -32 - - - 2 - :)(my_exception());@] Unless (:link - 1 - - 0 - - -32 - - - 2 - :) is called at the time an exception object is used in a throw-expression, an attempt to copy it using (:link - 1 - - 0 - - -62 - - - 2 - :) may return an (:link - 1 - - 0 - - -69 - - - 2 - :) which refers to an instance of (:link - 1 - - 0 - - -77 - - - 2 - :). See (:link - 1 - - 0 - - -62 - - - 2 - :) for details. !!!!Note: Instead of using the throw keyword directly, it is preferable to call boost::(:link - 1 - - 0 - - -67 - - - 2 - :). This is guaranteed to throw an exception that derives from boost::(:link - 1 - - 0 - - -53 - - - 2 - :) and supports the (:link - 1 - - 0 - - -69 - - - 2 - :) functionality. - - - - 0 - - -33 - - - 7 - 2 - (:auto !!!:) (:include synopsis:) This macro takes an exception object, records the current function name, __FILE__ and __LINE__ in it, and forwards it to (:link - 1 - - 0 - - -67 - - - 2 - :). To recover this information at the catch site, use (:link - 1 - - 0 - - -68 - - - 2 - :); the information is also included in the message returned by (:link - 1 - - 0 - - -13 - - - 2 - :). - - - - 0 - - -34 - - - 3 - 2 - (:auto !!!:) (:include decl:) !!!!Effects: Frees all resources associated with a boost::(:link - 1 - - 0 - - -53 - - - 2 - :) object. !!!!Throws: Nothing. - - - - 0 - - -35 - - - 1 - 2 - (:auto !!:) (:pagelist tags="hpp" except_tags="noindex":) - - - - 0 - - -36 - - - 1 - 2 - (:auto !!!:) !!!Synopsis (:include synopsis:) - - - - 0 - - -37 - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - 0 - - -38 - - - 7 - 2 - (:auto !!!:) (:include synopsis:) The (:link - 1 - - 0 - - -38 - - - 2 - :) function is intended to be called from a user-defined std::exception::what() override. This allows diagnostic information to be returned as the what() string. !!!!Returns: A pointer to a zero-terminated buffer that contains a string similar to the std::string returned by the (:link - 1 - - 0 - - -13 - - - 2 - :) function, or null to indicate a failure. !!!!Throws: Nothing. !!!!Note: The returned pointer becomes invalid if any (:link - 1 - - 0 - - -54 - - - 2 - :) is modified or added to the exception object, or if another diagnostic information function is called. - - - - 0 - - -39 - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - 0 - - -40 - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - 0 - - -41 - - - 7 - 2 - (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard (:link - 1 - - 0 - - -54 - - - 2 - :) instance for transporting a relevant errno value in exceptions deriving from boost::(:link - 1 - - 0 - - -53 - - - 2 - :). !!!Example: (:include - 1 - - 0 - - -46 - - - 2 - :) - - - - 0 - - -42 - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - 0 - - -43 - - - 19 - 2 - (:auto !!!:) The code snippet below demonstrates how boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:) can be used to bundle the name of the function that failed, together with the reported errno so that they can be added to exception objects more conveniently together: [@#include <(:link - 1 - - 0 - - -37 - - - 2 - :)> #include <(:link - 1 - - 0 - - -66 - - - 2 - :)> #include <(:link - 1 - - 0 - - -59 - - - 2 - :)> #include <(:link - 1 - - 0 - - -40 - - - 2 - :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> #include <errno.h> typedef boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:)<boost::(:link - 1 - - 0 - - -5 - - - 2 - :),boost::(:link - 1 - - 0 - - -41 - - - 2 - :)> clib_failure; struct file_open_error: virtual boost::(:link - 1 - - 0 - - -53 - - - 2 - :) { }; boost::shared_ptr<FILE> file_open( char const * name, char const * mode ) { if( FILE * f=fopen(name,mode) ) return boost::shared_ptr<FILE>(f,fclose); else throw file_open_error() << boost::(:link - 1 - - 0 - - -48 - - - 2 - :)(name) << clib_failure("fopen",errno); }@] Note that the members of a boost::(:link http://www.boost.org/libs/tuple/doc/tuple_users_guide.html|tuple:) are stored separately in exception objects; they can only be retrieved individually, using (:link - 1 - - 0 - - -68 - - - 2 - :). - - - - 0 - - -44 - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - 0 - - -45 - - - 7 - 2 - (:auto !!!:) Deriving from boost::(:link - 1 - - 0 - - -53 - - - 2 - :) effectively decouples the semantics of a failure from the information that is relevant to each individual instance of reporting a failure with a given semantic. In other words: with boost::(:link - 1 - - 0 - - -53 - - - 2 - :), what data a given exception object transports depends primarily on the context in which failures are reported (not on its type.) Since exception types need no members, it becomes very natural to throw exceptions that derive from more than one type to indicate multiple appropriate semantics: [@struct exception_base: virtual std::exception, virtual boost::(:link - 1 - - 0 - - -53 - - - 2 - :) { }; struct io_error: virtual exception_base { }; struct file_error: virtual io_error { }; struct read_error: virtual io_error { }; struct file_read_error: virtual file_error, virtual read_error { };@] Using this approach, exception types become a simple tagging system for categorizing errors and selecting failures in exception handlers. - - - - 0 - - -46 - - - 37 - 2 - [@#include <(:link - 1 - - 0 - - -59 - - - 2 - :)> #include <(:link - 1 - - 0 - - -15 - - - 2 - :)> #include <(:link - 1 - - 0 - - -40 - - - 2 - :)> #include <(:link - 1 - - 0 - - -7 - - - 2 - :)> #include <(:link - 1 - - 0 - - -66 - - - 2 - :)> #include <(:link - 1 - - 0 - - -76 - - - 2 - :)> #include <(:link - 1 - - 0 - - -25 - - - 2 - :)> #include <(:link - 1 - - 0 - - -39 - - - 2 - :)> #include <boost/shared_ptr.hpp> #include <boost/weak_ptr.hpp> #include <stdio.h> #include <errno.h> #include <exception> struct error : virtual std::exception, virtual boost::(:link - 1 - - 0 - - -53 - - - 2 - :) { }; struct file_error : virtual error { }; struct file_open_error: virtual file_error { }; struct file_read_error: virtual file_error { }; boost::shared_ptr<FILE> open_file( char const * file, char const * mode ) { if( FILE * f=fopen(file,mode) ) return boost::shared_ptr<FILE>(f,fclose); else (:link - 1 - - 0 - - -33 - - - 2 - :)( file_open_error() << boost::(:link - 1 - - 0 - - -5 - - - 2 - :)("fopen") << boost::(:link - 1 - - 0 - - -41 - - - 2 - :)(errno) << boost::(:link - 1 - - 0 - - -48 - - - 2 - :)(file) << boost::(:link - 1 - - 0 - - -70 - - - 2 - :)(mode) ); } size_t read_file( boost::shared_ptr<FILE> const & f, void * buf, size_t size ) { size_t nr=fread(buf,1,size,f.get()); if( ferror(f.get()) ) (:link - 1 - - 0 - - -33 - - - 2 - :)( file_read_error() << boost::(:link - 1 - - 0 - - -5 - - - 2 - :)("fread") << boost::(:link - 1 - - 0 - - -41 - - - 2 - :)(errno) << boost::(:link - 1 - - 0 - - -16 - - - 2 - :)(f) ); return nr; }@] - - - - 0 - - -47 - - - 9 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: This function must not be called outside of a catch block. !!!!Returns: If the current exception object can be converted to boost::(:link - 1 - - 0 - - -53 - - - 2 - :) or std::exception, this function returns the same string value returned by (:link - 1 - - 0 - - -13 - - - 2 - :) for the current exception object. Otherwise, an unspecified non-empty string is returned. Typical use is to call - 1 - - 0 - - -47 - - - 2 - from a top-level function to output diagnostic information about unhandled exceptions: [@int main() { try { run_program(); } catch( error & e ) { //handle error } catch( ...) { std::cerr << "Unhandled exception!" << std::endl << boost:: - 1 - - 0 - - -47 - - - 2 - (); } }@] - - - - 0 - - -48 - - - 7 - 2 - (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard (:link - 1 - - 0 - - -54 - - - 2 - :) instance for transporting a relevant file name in exceptions deriving from boost::(:link - 1 - - 0 - - -53 - - - 2 - :). !!!Example: (:include - 1 - - 0 - - -46 - - - 2 - :) - - - - 0 - - -49 - - - 11 - 2 - (:auto !!:) All exception types that derive from boost::(:link - 1 - - 0 - - -53 - - - 2 - :) can be used as type-safe containers of arbitrary data objects, while complying with the no-throw requirements (15.5.1) of the ANSI C++ standard for exception types. When exceptions derive from boost::(:link - 1 - - 0 - - -53 - - - 2 - :), arbitrary data can be added to exception objects: *At the point of the throw; *At a later time as exceptions bubble up the call stack. (:include - 1 - - 0 - - -75 - - - 2 - :) (:include - 1 - - 0 - - -51 - - - 2 - :) (:include - 1 - - 0 - - -43 - - - 2 - :) - - - - 0 - - -50 - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - 0 - - -51 - - - 19 - 2 - (:auto !!!:) Sometimes the throw site does not have all the information that is needed at the catch site to make sense of what went wrong. Let's say we have an exception type file_read_error, which takes a file name in its constructor. Consider the following function: [@void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw file_read_error(????); }@] How can the file_read function pass a file name to the exception type constructor? All it has is a FILE handle. Using boost::(:link - 1 - - 0 - - -53 - - - 2 - :) allows us to free the file_read function from the burden of storing the file name in exceptions it throws: [@`#include <(:link - 1 - - 0 - - -11 - - - 2 - :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <errno.h> struct file_read_error: virtual boost::(:link - 1 - - 0 - - -53 - - - 2 - :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw file_read_error() << boost::(:link - 1 - - 0 - - -41 - - - 2 - :)(errno); }@] If file_read detects a failure, it throws an exception which contains the information that is available at the time, namely the errno. Other relevant information, such as the file name, can be added in a context higher up the call stack, where it is known naturally: [@#include <(:link - 1 - - 0 - - -11 - - - 2 - :)> #include <boost/shared_ptr.hpp> #include <stdio.h> #include <string> boost::shared_ptr<FILE> file_open( char const * file_name, char const * mode ); void file_read( FILE * f, void * buffer, size_t size ); void parse_file( char const * file_name ) { boost::shared_ptr<FILE> f = file_open(file_name,"rb"); assert(f); try { char buf[1024]; file_read( f.get(), buf, sizeof(buf) ); } catch( boost::(:link - 1 - - 0 - - -53 - - - 2 - :) & e ) { e << boost::(:link - 1 - - 0 - - -48 - - - 2 - :)(file_name); throw; } }@] The above function is (almost) exception-neutral -- if an exception is emitted by any function call within the try block, parse_file does not need to do any real work, but it intercepts any boost::(:link - 1 - - 0 - - -53 - - - 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 - - -53 - - - 2 - :) object is that the file name is relevant to any failure that occurs in parse_file, ''even if the failure is unrelated to file I/O''. - - - - 0 - - -52 - - - 5 - 2 - (:auto !!!:) (:include synopsis:) !!!!Description: Returns a (const) reference to the copy of the value passed to (:link - 1 - - 0 - - -54 - - - 2 - :)'s constructor stored in the (:link - 1 - - 0 - - -54 - - - 2 - :) object. !!!!Throws: Nothing. - - - - 0 - - -53 - - - 13 - 2 - (:auto !!!:) (:include synopsis:) Class boost::(:link - 1 - - 0 - - -53 - - - 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 - - -53 - - - 2 - :) can store data of arbitrary types, using the (:link - 1 - - 0 - - -54 - - - 2 - :) wrapper and (:link - 1 - - 0 - - -19 - - - 2 - mod="/":). To retrieve data from a boost::(:link - 1 - - 0 - - -53 - - - 2 - :) object, use the (:link - 1 - - 0 - - -68 - - - 2 - :) function template. - - - - 0 - - -54 - - - 41 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: T must have accessible copy constructor and must not be a reference (there is no requirement that T's copy constructor does not throw.) !!!!Description: This class template is used to associate a Tag type with a value type T. Objects of type (:link - 1 - - 0 - - -54 - - - 2 - :)<Tag,T> can be passed to (:link - 1 - - 0 - - -19 - - - 2 - mod="/":) to be stored in objects of type boost::(:link - 1 - - 0 - - -53 - - - 2 - :). !!!!Usage: The header <(:link - 1 - - 0 - - -18 - - - 2 - :)> provides a declaration of the (:link - 1 - - 0 - - -54 - - - 2 - :) template, which is sufficient for the purpose of typedefing an instance for specific Tag and T, for example: [@#include <(:link - 1 - - 0 - - -18 - - - 2 - :)> struct tag_errno; typedef boost::(:link - 1 - - 0 - - -54 - - - 2 - :)<tag_errno,int> errno_info;@] Or, the shorter equivalent: [@#include <(:link - 1 - - 0 - - -18 - - - 2 - :)> typedef boost::(:link - 1 - - 0 - - -54 - - - 2 - :)<struct tag_errno,int> errno_info;@] This errno_info typedef can be passed to (:link - 1 - - 0 - - -19 - - - 2 - mod="/":) (#include <(:link - 1 - - 0 - - -25 - - - 2 - :)> first) to store an int named tag_errno in exceptions of types that derive from boost::(:link - 1 - - 0 - - -53 - - - 2 - :): [@throw file_read_error() (:link - 1 - - 0 - - -19 - - - 2 - |<<:) errno_info(errno);@] It can also be passed to (:link - 1 - - 0 - - -68 - - - 2 - :) (#include <(:link - 1 - - 0 - - -60 - - - 2 - :)> first) to retrieve the tag_errno int from a boost::(:link - 1 - - 0 - - -53 - - - 2 - :): [@catch( boost::(:link - 1 - - 0 - - -53 - - - 2 - :) & x ) { if( int const * e=boost::(:link - 1 - - 0 - - -68 - - - 2 - :)<errno_info>(x) ) .... }@] For convenience and uniformity, Boost Exception defines the following commonly used (:link - 1 - - 0 - - -54 - - - 2 - :) typedefs, ready for use with (:link - 1 - - 0 - - -19 - - - 2 - mod="/":): (:pagelist tags="error_info_instance":) - - - - 0 - - -55 - - - 3 - 2 - (:auto !!!:) (:include synopsis:) !!!!Effects: Stores a copy of v in the - 1 - - 0 - - -54 - - - 2 - object. (:include throws:) - - - - 0 - - -56 - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - 0 - - -57 - - - 33 - 2 - (:auto !!!:) Traditionally, when using exceptions to report failures, the throw site: *creates an exception object of the appropriate type, and *stuffs it with data relevant to the detected error. A higher context in the program contains a catch statement which: *selects failures based on exception types, and *inspects exception objects for data required to deal with the problem. The main issue with this "traditional" approach is that often, the data available at the point of the throw is insufficient for the catch site to handle the failure. Here is an example of a catch statement: [@catch( file_read_error & e ) { std::cerr << e.file_name(); }@] And here is a possible matching throw: [@void read_file( FILE * f ) { .... size_t nr=fread(buf,1,count,f); if( ferror(f) ) throw file_read_error(???); .... }@] Clearly, the problem is that the handler requires a file name but the read_file function does not have a file name to put in the exception object; all it has is a FILE pointer! In an attempt to deal with this problem, we could modify read_file to accept a file name: [@void read_file( FILE * f, char const * name ) { .... size_t nr=fread(buf,1,count,f); if( ferror(f) ) throw file_read_error(name); .... }@] This is not a real solution: it simply shifts the burden of supplying a file name to the immediate caller of the read_file function. ->''In general, the data required to handle a given library-emitted exception depends on the program that links to it. Many contexts between the throw and the catch may have relevant information which must be transported to the exception handler.'' !!!Exception wrapping The idea of exception wrapping is to catch an exception from a lower level function (such as the read_file function above), and throw a new exception object that contains the original exception (and also carries a file name.) This method seems to be particularly popular with C++ programmers with Java background. Exception wrapping leads to the following problems: *To wrap an exception object it must be copied, which may result in slicing. *Wrapping is practically impossible to use in generic contexts. The second point is actually special case of violating the exception neutrality principle. Most contexts in a program can not handle exceptions; such contexts should not interfere with the process of exception handling. !!!The boost::exception solution *Simply derive your exception types from boost::(:link - 1 - - 0 - - -53 - - - 2 - :). *Confidently limit the throw site to provide only data that is available naturally. *Use exception-neutral contexts between the throw and the catch to augment exceptions with more relevant data as they bubble up. For example, in the throw statement below we only add the errno code, since this is the only failure-relevant information available in this context: [@struct exception_base: virtual std::exception, virtual boost::(:link - 1 - - 0 - - -53 - - - 2 - :) { }; struct io_error: virtual exception_base { }; struct file_read_error: virtual io_error { }; typedef boost::(:link - 1 - - 0 - - -54 - - - 2 - :)<struct tag_errno_code,int> errno_code; void read_file( FILE * f ) { .... size_t nr=fread(buf,1,count,f); if( ferror(f) ) throw file_read_error() (:link - 1 - - 0 - - -19 - - - 2 - |<<:) errno_code(errno); .... }@] In a higher exception-neutral context, we add the file name to ''any'' exception that derives from boost::(:link - 1 - - 0 - - -53 - - - 2 - :): [@typedef boost::(:link - 1 - - 0 - - -54 - - - 2 - :)<struct tag_file_name,std::string> file_name; .... try { if( FILE * fp=fopen("foo.txt","rt") ) { shared_ptr<FILE> f(fp,fclose); .... read_file(fp); //throws types deriving from boost::(:link - 1 - - 0 - - -53 - - - 2 - :) do_something(); .... } else throw file_open_error() (:link - 1 - - 0 - - -19 - - - 2 - |<<:) errno_code(errno); } catch( boost::(:link - 1 - - 0 - - -53 - - - 2 - :) & e ) { e (:link - 1 - - 0 - - -19 - - - 2 - |<<:) file_name("foo.txt"); throw; }@] Finally here is how the handler retrieves data from exceptions that derive from boost::(:link - 1 - - 0 - - -53 - - - 2 - :): [@catch( io_error & e ) { std::cerr << "I/O Error!\n"; if( std::string const * fn=(:link - 1 - - 0 - - -68 - - - 2 - :)<file_name>(e) ) std::cerr << "File name: " << *fn << "\n"; if( int const * c=(:link - 1 - - 0 - - -68 - - - 2 - :)<errno_code>(e) ) std::cerr << "OS says: " << strerror(*c) << "\n"; }@] In addition, boost::(:link - 1 - - 0 - - -13 - - - 2 - :) can be used to compose an automatic (if not user-friendly) message that contains all of the (:link - 1 - - 0 - - -54 - - - 2 - :) objects added to a boost::(:link - 1 - - 0 - - -53 - - - 2 - :). This is useful for inclusion in logs and other diagnostic objects. - - - - 0 - - -58 - - - 27 - 2 - (:auto !!:) Some exception hierarchies can not be modified to make boost::(:link - 1 - - 0 - - -53 - - - 2 - :) a base type. In this case, the (:link - 1 - - 0 - - -63 - - - 2 - :) function template can be used to make exception objects derive from boost::(:link - 1 - - 0 - - -53 - - - 2 - :) anyway. Here is an example: [@#include <(:link - 1 - - 0 - - -11 - - - 2 - :)> #include <stdexcept> typedef boost::(:link - 1 - - 0 - - -54 - - - 2 - :)<struct tag_std_range_min,size_t> std_range_min; typedef boost::(:link - 1 - - 0 - - -54 - - - 2 - :)<struct tag_std_range_max,size_t> std_range_max; typedef boost::(:link - 1 - - 0 - - -54 - - - 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 - - -63 - - - 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 - - -63 - - - 2 - :)<T> gets us an object of ''unspecified type'' which is guaranteed to derive from both boost::(:link - 1 - - 0 - - -53 - - - 2 - :) and T. This makes it possible to use (:link - 1 - - 0 - - -19 - - - 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 - - -53 - - - 2 - :) &, so that (:link - 1 - - 0 - - -49 - - - 2 - |more information can be added to the exception at a later time:). - - - - 0 - - -59 - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - 0 - - -60 - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - 0 - - -61 - - - 1 - 2 - (:auto !!:) (:pagelist tags="macro":) - - - - 0 - - -62 - - - 39 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: The (:link - 1 - - 0 - - -62 - - - 2 - :) function must not be called outside of a catch block. In addition, to safely copy an exception from one thread to another, if the exception object is copied by - 1 - - 0 - - -62 - - - 2 - or - 1 - - 0 - - -12 - - - 2 - , the two copies must not have shared state. Exceptions that have value-type semantics (as well as the boost:: - 1 - - 0 - - -53 - - - 2 - type itself) satisfy this requirement. !!!!Returns: * An (:link - 1 - - 0 - - -69 - - - 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 - - -69 - - - 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 - - -62 - - - 2 - :) refer to the same exception object. * Correct implementation of (:link - 1 - - 0 - - -62 - - - 2 - :) may require compiler support, unless (:link - 1 - - 0 - - -32 - - - 2 - :) was used at the time the currently handled exception object was passed to throw. Whenever (:link - 1 - - 0 - - -62 - - - 2 - :) fails to properly copy the current exception object, it returns an (:link - 1 - - 0 - - -69 - - - 2 - :) to an object of type that is as close as possible to the original exception type, using (:link - 1 - - 0 - - -77 - - - 2 - :) as a final fallback. All such types derive from boost::(:link - 1 - - 0 - - -53 - - - 2 - :), and: ** if the original exception object derives from boost::(:link - 1 - - 0 - - -53 - - - 2 - :), then the boost::(:link - 1 - - 0 - - -53 - - - 2 - :) sub-object of the object referred to by the returned (:link - 1 - - 0 - - -69 - - - 2 - :) is initialized by the boost::(:link - 1 - - 0 - - -53 - - - 2 - :) copy constructor; ** if available, the exception contains the std::type_info of the original exception object, accessible through (:link - 1 - - 0 - - -68 - - - 2 - :)<(:link - 1 - - 0 - - -29 - - - 2 - :)>. - - - - 0 - - -63 - - - 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 - - -53 - - - 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 - - -53 - - - 2 - :). The T sub-object is initialized from x by the T copy constructor. !!!!Throws: Nothing. - - - - 0 - - -64 - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - 0 - - -65 - - - 15 - 2 - (:auto !!!:) Here is how cloning can be enabled in a throw-expression (15.1): [@#include <(:link - 1 - - 0 - - -25 - - - 2 - :)> #include <(:link - 1 - - 0 - - -40 - - - 2 - :)> #include <stdio.h> #include <errno.h> struct file_read_error: virtual boost::(:link - 1 - - 0 - - -53 - - - 2 - :) { }; void file_read( FILE * f, void * buffer, size_t size ) { if( size!=fread(buffer,1,size,f) ) throw boost::(:link - 1 - - 0 - - -32 - - - 2 - :)(file_read_error()) << boost::(:link - 1 - - 0 - - -41 - - - 2 - :)(errno); }@] Of course, (:link - 1 - - 0 - - -32 - - - 2 - :) may be used with any exception type; there is no requirement that it should derive from boost::(:link - 1 - - 0 - - -53 - - - 2 - :). - - - - 0 - - -66 - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - 0 - - -67 - - - 15 - 2 - (:auto !!!:) (:include synopsis:) !!!!Effects: * If BOOST_NO_EXCEPTIONS is not defined, boost::(:link - 1 - - 0 - - -67 - - - 2 - :)(e) throws an exception of unspecified type that derives publicly from E and from boost:: - 1 - - 0 - - -53 - - - 2 - . * 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 - - -67 - - - 2 - :) are allowed to assume that the function never returns; therefore, if the user-defined (:link - 1 - - 0 - - -67 - - - 2 - :) returns, the behavior is undefined. !!!!Requirements: E must derive publicly from std::exception. E may or may not derive from boost:: - 1 - - 0 - - -53 - - - 2 - . !!!!Notes: * The emitted exception can be intercepted as E &, std::exception &, or boost::exception &. * The emitted exception supports boost:: - 1 - - 0 - - -69 - - - 2 - . * If BOOST_EXCEPTION_DISABLE is defined and BOOST_NO_EXCEPTIONS is not defined, boost:: - 1 - - 0 - - -67 - - - 2 - (e) equivalent to throw e. - - - - 0 - - -68 - - - 13 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: * ErrorInfo must be an instance of the (:link - 1 - - 0 - - -54 - - - 2 - :) template. * E must be polymorphic. !!!!Returns: * If dynamic_cast<boost::(:link - 1 - - 0 - - -53 - - - 2 - :) const *>(&x) is 0, or if x does not store an object of type ErrorInfo, the returned value is null. * Otherwise, the returned pointer points to the stored value (use (:link - 1 - - 0 - - -19 - - - 2 - mod="/":) to store values in exception objects.) When x is destroyed, any pointers returned by (:link - 1 - - 0 - - -68 - - - 2 - :) become invalid. !!!!Throws: Nothing. !!!!Note: The interface of (:link - 1 - - 0 - - -68 - - - 2 - :) may be affected by the build (:link - 1 - - 0 - - -22 - - - 2 - :). - - - - 0 - - -69 - - - 23 - 2 - (:auto !!!:) (:include synopsis:) The (:link - 1 - - 0 - - -69 - - - 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 - - -69 - - - 2 - :)'s operations do not throw. The referenced object remains valid at least as long as there is an (:link - 1 - - 0 - - -69 - - - 2 - :) object that refers to it. Two instances of (:link - 1 - - 0 - - -69 - - - 2 - :) are equivalent and compare equal if and only if they refer to the same exception. The default constructor of (:link - 1 - - 0 - - -69 - - - 2 - :) produces the null value of the type. The null value is equivalent only to itself. !!!!Thread safety: The - 1 - - 0 - - -69 - - - 2 - type is "as thread-safe as built-in types": * An - 1 - - 0 - - -69 - - - 2 - instance can be "read" simultaneously by multiple threads * Different - 1 - - 0 - - -69 - - - 2 - instances can be "written to" simultaneously by multiple threads, even when these instances refer to the same exception object All other simultaneous accesses result in undefined behavior. !!!!Nesting of exceptions: An (:link - 1 - - 0 - - -69 - - - 2 - :) can be added as (:link - 1 - - 0 - - -54 - - - 2 - :) to any boost::(:link - 1 - - 0 - - -53 - - - 2 - :). This is a convenient way to nest exceptions. There is no limit on the depth of the nesting, however cyclic references result in undefined behavior. - - - - 0 - - -70 - - - 7 - 2 - (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard (:link - 1 - - 0 - - -54 - - - 2 - :) instance for transporting the string passed as a second argument to fopen in exceptions indicating fopen failures and deriving from boost::(:link - 1 - - 0 - - -53 - - - 2 - :). !!!Example: (:include - 1 - - 0 - - -46 - - - 2 - :) - - - - 0 - - -71 - - - 1 - 2 - (:auto !!!:) (:include synopsis:) !!!!Requirements: This function must not be called outside of a catch block. !!!!Returns: A pointer of type E to the current exception object, or null if the current exception object can not be converted to E *. !!!!Throws: Nothing. - - - - 0 - - -72 - - - 11 - 2 - !!!!Example: this is a possible output from the (:link - 1 - - 0 - - -13 - - - 2 - :) function, as used in ''libs/exception/example/example_io.cpp:'' [@example_io.cpp(70): Throw in function class boost::shared_ptr<struct _iobuf> __cdecl my_fopen(const char *,const char *) Dynamic exception type: class boost::exception_detail::clone_impl<struct fopen_error> std::exception::what: example_io error [struct boost::(:link - 1 - - 0 - - -5 - - - 2 - :)_ *] = fopen [struct boost::(:link - 1 - - 0 - - -41 - - - 2 - :)_ *] = 2, "No such file or directory" [struct boost::(:link - 1 - - 0 - - -48 - - - 2 - :)_ *] = tmp1.txt [struct boost::(:link - 1 - - 0 - - -70 - - - 2 - :)_ *] = rb@] - - - - 0 - - -73 - - - 7 - 2 - (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard (:link - 1 - - 0 - - -54 - - - 2 - :) instance for transporting a relevant text file line number, for example in parse error exceptions deriving from boost::(:link - 1 - - 0 - - -53 - - - 2 - :). !!!Example: (:include - 1 - - 0 - - -46 - - - 2 - :) - - - - 0 - - -74 - - - 1 - 2 - (:auto !:) This is an alphabetical list of all Boost Exception documentation pages. (:pagelist fmt="index" except_tags="index noindex" mod="w":) - - - - 0 - - -75 - - - 17 - 2 - (:auto !!!:) The following example demonstrates how errno can be stored in exception objects using Boost Exception: [@#include <(:link - 1 - - 0 - - -11 - - - 2 - :)> #include <iostream> typedef boost::(:link - 1 - - 0 - - -54 - - - 2 - :)<struct tag_my_info,int> my_info; //(1) struct my_error: virtual boost::(:link - 1 - - 0 - - -53 - - - 2 - :), virtual std::exception { }; //(2) void f() { throw my_error() << my_info(42); //(3) }@] First, we instantiate the (:link - 1 - - 0 - - -54 - - - 2 - :) template using a unique identifier -- tag_my_info, and the type of the info it identifies -- int. This provides compile-time type safety for the various values stored in exception objects. Second, we define class my_error, which derives from boost::(:link - 1 - - 0 - - -53 - - - 2 - :). Finally, (3) illustrates how the typedef from (1) can be used with (:link - 1 - - 0 - - -19 - - - 2 - |operator<<:) to store values in exception objects at the point of the throw. The stored my_info value can be recovered at a later time like this: [@// ...continued void g() { try { f(); } catch( my_error & x ) { if( int const * mi=boost::(:link - 1 - - 0 - - -68 - - - 2 - :)<my_info>(x) ) std::cerr << "My info: " << *mi; } }@] The (:link - 1 - - 0 - - -68 - - - 2 - :) function template is instantiated with the typedef from (1), and is passed an exception object of a polymorphic type. If the exception object contains the requested value, err will point to it; otherwise a null pointer is returned. - - - - 0 - - -76 - - - 1 - 2 - (:auto !!:) !!!Synopsis (:include synopsis:) - - - - 0 - - -77 - - - 5 - 2 - (:auto !!!:) (:include synopsis:) This type is used by the (:link - 1 - - 0 - - -69 - - - 2 - :) support in Boost Exception. Please see (:link - 1 - - 0 - - -62 - - - 2 - :). - - - - 0 - - -78 - - - 1 - 2 - (:auto !!!:) !!!Synopsis (:include synopsis:) - - - - 0 - - -79 - - - 5 - 2 - (:auto !!!:) (:include synopsis:) This type is designed to be used as a standard - 1 - - 0 - - -54 - - - 2 - instance for transporting strings returned by std::type_info::name in exceptions deriving from boost:: - 1 - - 0 - - -53 - - - 2 - objects. - - - - - - - throws - - 84 - - reno_layer - - - - 75 - - - 0 - - -5 - - - 0 - - - - 0 - - -6 - - - 0 - - - - 0 - - -7 - - - 0 - - - - 0 - - -8 - - - 0 - - - - 0 - - -9 - - - 0 - - - - 0 - - -10 - - - 0 - - - - 0 - - -11 - - - 0 - - - - 0 - - -12 - - - 0 - - - - 0 - - -13 - - - 0 - - - - 0 - - -14 - - - 0 - - - - 0 - - -15 - - - 0 - - - - 0 - - -16 - - - 0 - - - - 0 - - -17 - - - 0 - - - - 0 - - -18 - - - 0 - - - - 0 - - -19 - - - 1 - 2 - !!!!Throws: std::bad_alloc, or any exception emitted by the T copy constructor. - - - - 0 - - -20 - - - 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 - - - 0 - - - - 0 - - -33 - - - 0 - - - - 0 - - -34 - - - 0 - - - - 0 - - -35 - - - 0 - - - - 0 - - -36 - - - 0 - - - - 0 - - -37 - - - 0 - - - - 0 - - -38 - - - 0 - - - - 0 - - -39 - - - 0 - - - - 0 - - -40 - - - 0 - - - - 0 - - -41 - - - 0 - - - - 0 - - -42 - - - 0 - - - - 0 - - -43 - - - 0 - - - - 0 - - -44 - - - 0 - - - - 0 - - -45 - - - 0 - - - - 0 - - -46 - - - 0 - - - - 0 - - -47 - - - 0 - - - - 0 - - -48 - - - 0 - - - - 0 - - -49 - - - 0 - - - - 0 - - -50 - - - 0 - - - - 0 - - -51 - - - 0 - - - - 0 - - -52 - - - 0 - - - - 0 - - -53 - - - 0 - - - - 0 - - -54 - - - 0 - - - - 0 - - -55 - - - 1 - 2 - !!!!Throws: Any exception emitted by v's copy constructor. - - - - 0 - - -56 - - - 0 - - - - 0 - - -57 - - - 0 - - - - 0 - - -58 - - - 0 - - - - 0 - - -59 - - - 0 - - - - 0 - - -60 - - - 0 - - - - 0 - - -61 - - - 0 - - - - 0 - - -62 - - - 0 - - - - 0 - - -63 - - - 0 - - - - 0 - - -64 - - - 0 - - - - 0 - - -65 - - - 0 - - - - 0 - - -66 - - - 0 - - - - 0 - - -67 - - - 0 - - - - 0 - - -68 - - - 0 - - - - 0 - - -69 - - - 0 - - - - 0 - - -70 - - - 0 - - - - 0 - - -71 - - - 0 - - - - 0 - - -72 - - - 0 - - - - 0 - - -73 - - - 0 - - - - 0 - - -74 - - - 0 - - - - 0 - - -75 - - - 0 - - - - 0 - - -76 - - - 0 - - - - 0 - - -77 - - - 0 - - - - 0 - - -78 - - - 0 - - - - 0 - - -79 - - - 0 - - - - - - - synopsis - - 85 - - reno_layer - - - - 75 - - - 0 - - -5 - - - 5 - 2 - `#include < - 1 - - 0 - - -59 - - - 2 - > (:include - 1 - - 0 - - -59 - - - 2 - synopsis:) - - - - 0 - - -6 - - - 0 - - - - 0 - - -7 - - - 3 - 2 - [@#include <(:link - 1 - - 0 - - -18 - - - 2 - :)> namespace boost { template <class> class weak_ptr; (:include api pre_indent="4":) }@] - - - - 0 - - -8 - - - 0 - - - - 0 - - -9 - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -25 - - - 2 - :)> [@(:include decl:)@] - - - - 0 - - -10 - - - 0 - - - - 0 - - -11 - - - 1 - 2 - [@(:include api:)@] - - - - 0 - - -12 - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -28 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - - 0 - - -13 - - - 5 - 2 - `#include <(:link - 1 - - 0 - - -64 - - - 2 - :)>\\ `#include < - 1 - - 0 - - -28 - - - 2 - >\\ [@namespace boost { (:include decl pre_indent="4":) }@] - - - - 0 - - -14 - - - 5 - 2 - `#include < - 1 - - 0 - - -56 - - - 2 - > (:include - 1 - - 0 - - -56 - - - 2 - synopsis:) - - - - 0 - - -15 - - - 3 - 2 - [@#include <(:link - 1 - - 0 - - -18 - - - 2 - :)> namespace boost { (:include api pre_indent="4":) }@] - - - - 0 - - -16 - - - 5 - 2 - `#include <(:link - 1 - - 0 - - -7 - - - 2 - :)> (:include - 1 - - 0 - - -7 - - - 2 - synopsis:) - - - - 0 - - -17 - - - 0 - - - - 0 - - -18 - - - 1 - 2 - [@namespace boost { (:include api pre_indent="4":) }@] - - - - 0 - - -19 - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -25 - - - 2 - :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] - - - - 0 - - -20 - - - 0 - - - - 0 - - -21 - - - 0 - - - - 0 - - -22 - - - 0 - - - - 0 - - -23 - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -28 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - - 0 - - -24 - - - 0 - - - - 0 - - -25 - - - 3 - 2 - [@#include <(:link - 1 - - 0 - - -50 - - - 2 - :)> namespace boost { (:include api pre_indent="4":) }@] - - - - 0 - - -26 - - - 0 - - - - 0 - - -27 - - - 5 - 2 - `#include <(:link - 1 - - 0 - - -37 - - - 2 - :)> [@namespace boost { (:include - 1 - - 0 - - -27 - - - 2 - decl pre_indent="4":) }@] - - - - 0 - - -28 - - - 3 - 2 - [@#include <(:link - 1 - - 0 - - -50 - - - 2 - :)> namespace boost { (:include api pre_indent="4":) }@] - - - - 0 - - -29 - - - 3 - 2 - `#include < - 1 - - 0 - - -28 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] - - - - 0 - - -30 - - - 0 - - - - 0 - - -31 - - - 0 - - - - 0 - - -32 - - - 3 - 2 - `#include < - 1 - - 0 - - -36 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] - - - - 0 - - -33 - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -39 - - - 2 - :)> (:include decl:) - - - - 0 - - -34 - - - 0 - - - - 0 - - -35 - - - 0 - - - - 0 - - -36 - - - 3 - 2 - [@#include < - 1 - - 0 - - -50 - - - 2 - > namespace boost { (:include api pre_indent="4":) }@] - - - - 0 - - -37 - - - 3 - 2 - [@#include < - 1 - - 0 - - -25 - - - 2 - > #include <boost/tuple/tuple.hpp> namespace boost { (:include api pre_indent="4":) }@] - - - - 0 - - -38 - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -64 - - - 2 - :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] - - - - 0 - - -39 - - - 1 - 2 - (:include api:) - - - - 0 - - -40 - - - 3 - 2 - [@#include < - 1 - - 0 - - -18 - - - 2 - > #include <errno.h> namespace boost { (:include api pre_indent="4":) }@] - - - - 0 - - -41 - - - 5 - 2 - `#include < - 1 - - 0 - - -40 - - - 2 - > (:include - 1 - - 0 - - -40 - - - 2 - synopsis:) - - - - 0 - - -42 - - - 1 - 2 - [@namespace boost { (:include api pre_indent="4":) }@] - - - - 0 - - -43 - - - 0 - - - - 0 - - -44 - - - 3 - 2 - [@#include < - 1 - - 0 - - -18 - - - 2 - > #include <string> namespace boost { (:include api pre_indent="4":) }@] - - - - 0 - - -45 - - - 0 - - - - 0 - - -46 - - - 0 - - - - 0 - - -47 - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -64 - - - 2 - :)>\\ [@namespace boost { (:include decl pre_indent="4":) }@] - - - - 0 - - -48 - - - 5 - 2 - `#include <(:link - 1 - - 0 - - -66 - - - 2 - :)> (:include - 1 - - 0 - - -66 - - - 2 - synopsis:) - - - - 0 - - -49 - - - 0 - - - - 0 - - -50 - - - 1 - 2 - [@namespace boost { (:include api pre_indent="4":) }@] - - - - 0 - - -51 - - - 0 - - - - 0 - - -52 - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -25 - - - 2 - :)> [@(:include decl:)@] - - - - 0 - - -53 - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -50 - - - 2 - :)> [@namespace boost { (:include def pre_indent="4":) }@] - - - - 0 - - -54 - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -25 - - - 2 - :)> [@namespace boost { (:include def pre_indent="4":) }@] - - - - 0 - - -55 - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -25 - - - 2 - :)> [@(:include decl:)@] - - - - 0 - - -56 - - - 5 - 2 - [@#include <(:link - 1 - - 0 - - -18 - - - 2 - :)> namespace boost { (:include - 1 - - 0 - - -69 - - - 2 - decl pre_indent="4":) (:include api pre_indent="4":) }@] - - - - 0 - - -57 - - - 0 - - - - 0 - - -58 - - - 0 - - - - 0 - - -59 - - - 3 - 2 - [@#include <(:link - 1 - - 0 - - -18 - - - 2 - :)> namespace boost { (:include api pre_indent="4":) }@] - - - - 0 - - -60 - - - 1 - 2 - [@#include <boost/shared_ptr.hpp> namespace boost { (:include api pre_indent="4":) }@] - - - - 0 - - -61 - - - 0 - - - - 0 - - -62 - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -28 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - - 0 - - -63 - - - 3 - 2 - `#include < - 1 - - 0 - - -78 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] - - - - 0 - - -64 - - - 3 - 2 - [@#include <string> namespace boost { (:include - 1 - - 0 - - -53 - - - 2 - decl pre_indent="4":) (:include api pre_indent="4":) }@] - - - - 0 - - -65 - - - 0 - - - - 0 - - -66 - - - 3 - 2 - [@#include <(:link - 1 - - 0 - - -18 - - - 2 - :)> #include <string> namespace boost { (:include api pre_indent="4":) }@] - - - - 0 - - -67 - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -39 - - - 2 - :)> [@namespace boost { (:include decl:) }@] - - - - 0 - - -68 - - - 1 - 2 - [@namespace boost { (:include decl pre_indent="4":) }@] - - - - 0 - - -69 - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -28 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - - 0 - - -70 - - - 5 - 2 - `#include < - 1 - - 0 - - -76 - - - 2 - > (:include - 1 - - 0 - - -76 - - - 2 - synopsis:) - - - - 0 - - -71 - - - 3 - 2 - `#include < - 1 - - 0 - - -42 - - - 2 - > [@namespace boost { (:include decl pre_indent="4":) }@] - - - - 0 - - -72 - - - 0 - - - - 0 - - -73 - - - 5 - 2 - `#include <(:link - 1 - - 0 - - -15 - - - 2 - :)> (:include - 1 - - 0 - - -15 - - - 2 - synopsis:) - - - - 0 - - -74 - - - 0 - - - - 0 - - -75 - - - 0 - - - - 0 - - -76 - - - 3 - 2 - [@#include < - 1 - - 0 - - -18 - - - 2 - > #include <string> namespace boost { (:include api pre_indent="4":) }@] - - - - 0 - - -77 - - - 3 - 2 - `#include <(:link - 1 - - 0 - - -28 - - - 2 - :)> [@namespace boost { (:include decl pre_indent="4":) }@] - - - - 0 - - -78 - - - 3 - 2 - [@#include < - 1 - - 0 - - -50 - - - 2 - > namespace boost { (:include api pre_indent="4":) }@] - - - - 0 - - -79 - - - 5 - 2 - `#include < - 1 - - 0 - - -44 - - - 2 - > (:include - 1 - - 0 - - -44 - - - 2 - synopsis:) - - - - - - - - - - - - 86 - - reno_context_map - - - - - 75 - - -5 - - - -6 - - - -7 - - - -8 - - - -9 - - - -10 - - - -11 - - - -12 - - - -13 - - - -14 - - - -15 - - - -16 - - - -17 - - - -18 - - - -19 - - - -20 - - - -21 - - - -22 - - - -23 - - - -24 - - - -25 - - - -26 - - - -27 - - - -28 - - - -29 - - - -30 - - - -31 - - - -32 - - - -33 - - - -34 - - - -35 - - - -36 - - - -37 - - - -38 - - - -39 - - - -40 - - - -41 - - - -42 - - - -43 - - - -44 - - - -45 - - - -46 - - - -47 - - - -48 - - - -49 - - - -50 - - - -51 - - - -52 - - - -53 - - - -54 - - - -55 - - - -56 - - - -57 - - - -58 - - - -59 - - - -60 - - - -61 - - - -62 - - - -63 - - - -64 - - - -65 - - - -66 - - - -67 - - - -68 - - - -69 - - - -70 - - - -71 - - - -72 - - - -73 - - - -74 - - - -75 - - - -76 - - - -77 - - - -78 - - - -79 - - - - - - 75 - - - - 0 - - - - - 1 - - - - -6 - - - - - - 0 - - - - - 1 - - - - -30 - - - - - - 0 - - - - - 1 - - - - -49 - - - - - - 0 - - - - - 1 - - - - -74 - - - - - - 0 - - - - - 1 - - - - -78 - - - - - - 0 - - - - - 1 - - - - -36 - - - - - - 0 - - - - - 1 - - - - -57 - - - - - - 0 - - - - - 1 - - - - -24 - - - - - - 0 - - - - - 1 - - - - -45 - - - - - - 0 - - - - - 1 - - - - -17 - - - - - - 0 - - - - - 1 - - - - -10 - - - - - - 0 - - - - - 1 - - - - -35 - - - - - - 0 - - - - - 1 - - - - -8 - - - - - - 0 - - - - - 1 - - - - -61 - - - - - - 0 - - - - - 1 - - - - -21 - - - - - - 1 - 422CF2A57EA6763FBD2F319C4CDD8DD5ADF4493C699B50653015A362F71D4500 - 1282485161 - 2161 - 321 - - - - - 0 - ../../../../boost/exception/info_tuple.hpp - 0 - 0 - - - - -37 - - - - - - 1 - 790A065B0168021FAD180E996254E3CDBC0360D22D3FCB83C143416663D85402 - 1376868984 - 262 - 323 - - - - - 0 - ../../../../boost/exception/errinfo_nested_exception.hpp - 0 - 0 - - - - -56 - - - - - - 2 - 790A065B0168021FAD180E996254E3CDBC0360D22D3FCB83C143416663D85402 - 1376868984 - 262 - 323 - 83E18B98A15DEF9418E38218D221D10DC093B915D630B51974CCD23A6E1EDC44 - 849683856 - 98 - 158 - - - - - 0 - ../../../../boost/exception/errinfo_nested_exception.hpp - 0 - 0 - - - - -14 - - - - - - 1 - 66EFC83C830F0B00D0C9399B475099072E2674B3C694F9152645A33E3D7AC303 - 561674611 - 417 - 323 - - - - - 0 - ../../../../boost/exception/errinfo_file_name.hpp - 0 - 0 - - - - -66 - - - - - - 2 - EEA69AA1E84CB2B7C903A3F4C236D0A233D03DBA4BA1D3B97D959918F3B30E09 - 2728032055 - 406 - 344 - EE695B95A2499B66980754857E184776F1DE7224372A5F5153B6DF94E621A89B - 1009590890 - 92 - 308 - - - - - 0 - ../../../../boost/exception/errinfo_file_open_mode.hpp - 0 - 0 - - - - -70 - - - - - - 1 - 3B52D5850D9664639CCF1D22FBD52F2EB99087BED704C3FE07FE185B38C0DD09 - 676740550 - 15108 - 321 - - - - - 0 - ../../../../boost/exception/detail/exception_ptr.hpp - 0 - 0 - - - - -28 - - - - - - 2 - 2F10A76F9BA78353597A5E6F1373E8188DE7AEFDCE29BFD0105527B64B37D00E - 1041541496 - 4693 - 1606 - 20B46D7510ED9F1F40CF3A80C97AE430628745D26173DE91E3D6CB6CEABDAA58 - 2572596214 - 659 - 4028 - - - - - 0 - ../../../../boost/exception/diagnostic_information.hpp - 0 - 0 - - - - -38 - - - - - - 3 - 2F10A76F9BA78353597A5E6F1373E8188DE7AEFDCE29BFD0105527B64B37D00E - 1041541496 - 4693 - 1606 - 4FDA7B607488BB202B2AB72C17983031070085FB6B616F2B77320088BE08EB62 - 98930276 - 3714 - 26 - 28B2A7701322B20C8CF5D6074F9019FBEA2FB02F1A13E83632AA76C431798777 - 1206384617 - 3087 - 628 - - - - - 0 - ../../../../boost/exception/diagnostic_information.hpp - 0 - 0 - - - - -13 - - - - - - 1 - 21A43755562CB78B3FFCC49F66B457C1FCD659EE98F25BBFA8DDE453EB89DF0E - 2576704708 - 337 - 323 - - - - - 0 - ../../../../boost/exception/errinfo_api_function.hpp - 0 - 0 - - - - -59 - - - - - - 1 - FC684D0DD5A9732B4130F2AB3DB6E0491D0F523E14B7FB738B2019EA2C7F8717 - 2229778754 - 631 - 319 - - - - - 0 - ../../example/cloning_2.cpp - 0 - 0 - - - - -31 - - - - - - 2 - 126A895281064E2195458B8A47CD73DB7E3BE3608F250925E07AF4230CBDDE1D - 4231421785 - 307 - 344 - 16179B125E2BC6D993FBE4BA5E9A96DBAE43CA1443C7D281B659D020B6725983 - 1126376090 - 92 - 209 - - - - - 0 - ../../../../boost/exception/errinfo_type_info_name.hpp - 0 - 0 - - - - -79 - - - - - - 1 - 4D7009F0868C1DF4898EC6ECF9AD2CFEA98E8653B01B066106761807405D4C22 - 1416707852 - 3107 - 543 - - - - - 0 - ../../../../boost/exception/get_error_info.hpp - 0 - 0 - - - - -60 - - - - - - 1 - 27ED18F9B6131B084FEF0C9F932B7027AF449E378B5FD7973CD6642263FCAF27 - 2867102400 - 404 - 307 - - - - - 0 - ../../example/cloning_1.cpp - 0 - 0 - - - - -65 - - - - - - 1 - F971041F60D19AFB8AA50440BC2A911633E5826FDED7B3E1CFC90D241D880C32 - 931174095 - 3062 - 95 - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - -39 - - - - - - 1 - 979343A73CAA7601AF159E6240A03038F47940F71F6DE85D6BA648B179921C35 - 2321681356 - 939 - 321 - - - - - 0 - ../../../../boost/exception/errinfo_errno.hpp - 0 - 0 - - - - -40 - - - - - - 1 - BF7B46FEFA4E2DED7D652BFD40E94DD0B225ADA8D35E28FF4216F72812589835 - 422843600 - 756 - 543 - - - - - 0 - ../../../../boost/exception/all.hpp - 0 - 0 - - - - -11 - - - - - - 2 - 6FB85B536F965F137409D5B5D34786DCBF0B9957A7C251D271B717A1156B823D - 1090406464 - 362 - 543 - D16DAEA8B1792A019AF7FCA362FDC6EFD381AF4C43C076A01C029ECE51F994A6 - 3172941848 - 330 - 26 - - - - - 0 - ../../../../boost/exception/current_exception_cast.hpp - 0 - 0 - - - - -71 - - - - - - 1 - DB156E6A8ACB9FB90C8FB110FC25A5FEB14A619F82EEC47FF913373592E5CC3E - 240075319 - 6209 - 412 - - - - - 0 - ../../example/example_io.cpp - 0 - 0 - - - - -72 - - - - - - 2 - FD7792C2929DD7B6BD613636FD0C574D002286E33811BA109B57B9C4D790D340 - 1830643656 - 1244 - 1793 - BAE73EEDFF4059A7561888B4BA054DFA033F0967727630270F2C0D4EB918B88D - 3168166030 - 1222 - 21 - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - -67 - - - - - - 2 - 15CF5BD93D20D62D659C11A69330B06E408398EA488BEF1FD45437AADCDB424E - 1232553666 - 214 - 345 - 6262783847165581298EC9500031E6B7A97B2751A9CEF67C4794121A78142C58 - 3676119191 - 90 - 118 - - - - - 0 - ../../../../boost/exception/errinfo_file_handle.hpp - 0 - 0 - - - - -16 - - - - - - 1 - D32E0E4334CE0236B6EDB0EAC484B2DD595860E9FD53701EB5646D62C6A45D4E - 1054670543 - 866 - 306 - - - - - 0 - ../../example/error_info_2.cpp - 0 - 0 - - - - -51 - - - - - - 2 - 8A8FAA48FF123031D5E51D50BC96D0AAC468112838058976B85AC6EED4A25C57 - 4201574956 - 763 - 833 - AEA5C07CF015DDE792E061003F669239E7AADBD24BE554EB26706AD9B28B8C89 - 2503775994 - 472 - 285 - - - - - 0 - ../../../../boost/exception/diagnostic_information.hpp - 0 - 0 - - - - -47 - - - - - - 1 - 66E0BD9724AB83012F5B35D887E3313960DC0E69B94E0C03CA1F3C85A0D84A5C - 2883671483 - 311 - 306 - - - - - 0 - ../../example/logging.cpp - 0 - 0 - - - - -26 - - - - - - 1 - 4EDD3DF2332B6D9D22AC9AD90B850ACC715A24DD466E675014CBED25C63C255F - 4175717823 - 328 - 323 - - - - - 0 - ../../../../boost/exception/errinfo_type_info_name.hpp - 0 - 0 - - - - -44 - - - - - - 2 - 21027A2B73C9AA6FF083752A952D63BBA9B5FD68A3C8915965A7184EA62A5D61 - 1523356166 - 537 - 623 - 24256E1CE56594FB38D0630858B8947191827CFC57771E8727A6A56F76207454 - 665917505 - 66 - 26 - - - - - 0 - ../../../../boost/exception/errinfo_errno.hpp - 0 - 0 - - - - -41 - - - - - - 3 - ADCD0B47BEBAA82DE5FDCACB0E9E8FF900527566EF9865ECD8C08B62067B4C66 - 1181168733 - 14302 - 1027 - 2482DDAF6A7E31CF75E93B993C86D9814A0B8899B68E555B23D411BD195FE270 - 1574307697 - 8349 - 4068 - 7E162EB263369C2C485D5F69CA1A4FADD3EEBC6EB78CE7A767A8615885178079 - 1179386730 - 5404 - 2935 - - - - - 0 - ../../../../boost/exception/detail/exception_ptr.hpp - 0 - 0 - - - - -62 - - - - - - 2 - ADCD0B47BEBAA82DE5FDCACB0E9E8FF900527566EF9865ECD8C08B62067B4C66 - 1181168733 - 14302 - 1027 - EEDBDE62A278D2AF428D9D1ED2ABCFF06163BACD91E12DD033565C7043354B89 - 246173488 - 248 - 1396 - - - - - 0 - ../../../../boost/exception/detail/exception_ptr.hpp - 0 - 0 - - - - -29 - - - - - - 2 - ADCD0B47BEBAA82DE5FDCACB0E9E8FF900527566EF9865ECD8C08B62067B4C66 - 1181168733 - 14302 - 1027 - 1D5E771272B020A105B69E186517499873571F62AFF9D48F130C952CFAA12FA3 - 2841506107 - 891 - 173 - - - - - 0 - ../../../../boost/exception/detail/exception_ptr.hpp - 0 - 0 - - - - -69 - - - - - - 3 - ADCD0B47BEBAA82DE5FDCACB0E9E8FF900527566EF9865ECD8C08B62067B4C66 - 1181168733 - 14302 - 1027 - 97DB2EDAA38019314BA1A582664F8950F5208310F14BAB94E1880AE2C5F00CD4 - 3076716310 - 959 - 2974 - 1760DA943E0DCAE6DDB000F3C08D6E6F5F8AEDBBEAC7CAA84A2ED60BFA4B0E1A - 702729709 - 815 - 145 - - - - - 0 - ../../../../boost/exception/detail/exception_ptr.hpp - 0 - 0 - - - - -77 - - - - - - 2 - ADCD0B47BEBAA82DE5FDCACB0E9E8FF900527566EF9865ECD8C08B62067B4C66 - 1181168733 - 14302 - 1027 - 0066D4E6E6B189906E6DE04F08509F3737511701A1B1355B37511EC18E8371F4 - 2078296250 - 305 - 1066 - - - - - 0 - ../../../../boost/exception/detail/exception_ptr.hpp - 0 - 0 - - - - -12 - - - - - - 2 - ADCD0B47BEBAA82DE5FDCACB0E9E8FF900527566EF9865ECD8C08B62067B4C66 - 1181168733 - 14302 - 1027 - 10E31FFA267B250065A2630D0B7107862920D940AEA0A5499D5341A902AE01FF - 1524325002 - 368 - 13033 - - - - - 0 - ../../../../boost/exception/detail/exception_ptr.hpp - 0 - 0 - - - - -23 - - - - - - 2 - AEDDD2FA4F47CEBD99444F1054D85AB8132748CF38D6634503D62E9C8AD5FE68 - 1378637100 - 292 - 368 - 892C0239798B84BA2E80DAA70BBEB7BE0B6086A1D0829D0E1937EC1D19E3FF20 - 3349881047 - 89 - 197 - - - - - 0 - ../../../../boost/exception/errinfo_api_function.hpp - 0 - 0 - - - - -5 - - - - - - 1 - 756A81C65A938BEEAD9B576707145748A3DB3BF767CC77ADD5AACD549373856A - 904132245 - 744 - 363 - - - - - 0 - ../../example/info_tuple.cpp - 0 - 0 - - - - -43 - - - - - - 1 - E0BE7EFCD5550582AB95C9EEDA6E68CA0F89B19838DA61876D42161E1EA4AE71 - 2587249979 - 233 - 323 - - - - - 0 - ../../../../boost/exception/errinfo_at_line.hpp - 0 - 0 - - - - -15 - - - - - - 2 - E0BE7EFCD5550582AB95C9EEDA6E68CA0F89B19838DA61876D42161E1EA4AE71 - 2587249979 - 233 - 323 - 92AB508A6B1C2A62CB2ACED423BD04BB5A471674B5A51BFC1E6FB1F5C92AF9AA - 2372475309 - 70 - 157 - - - - - 0 - ../../../../boost/exception/errinfo_at_line.hpp - 0 - 0 - - - - -73 - - - - - - 1 - FFF4359EFC66EE6AA729B641F38B4020A55E83A1C099BCA59B1CA9A9875E7F79 - 366628170 - 236 - 323 - - - - - 0 - ../../../../boost/exception/errinfo_file_handle.hpp - 0 - 0 - - - - -7 - - - - - - 1 - 56C5A51DE37A6E893DA3B25D69DB65E4593C7803C6E34112E1F95C93D6037A82 - 275305396 - 5586 - 321 - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - -25 - - - - - - 2 - 9516640DF38FC07A649AA4CAF21D4C4A6D6C2DF2B00E608F8D1C653C8D85E58B - 406646287 - 956 - 564 - 8F508F9E7187AEA0E35A268B6F7B8E8A6C6588CCA01A2F3C5BBF1010699D8270 - 1555404133 - 578 - 372 - - - - - 0 - ../../../../boost/exception/detail/error_info_impl.hpp - 0 - 0 - - - - -54 - - - - - - 3 - 9516640DF38FC07A649AA4CAF21D4C4A6D6C2DF2B00E608F8D1C653C8D85E58B - 406646287 - 956 - 564 - 8F508F9E7187AEA0E35A268B6F7B8E8A6C6588CCA01A2F3C5BBF1010699D8270 - 1555404133 - 578 - 372 - 38B566F2C6678B8724D18086A6F76E077DC2ADC1BB69A4B83BF0A2C3B7D31B50 - 2218658069 - 31 - 143 - - - - - 0 - ../../../../boost/exception/detail/error_info_impl.hpp - 0 - 0 - - - - -9 - - - - - - 3 - 9516640DF38FC07A649AA4CAF21D4C4A6D6C2DF2B00E608F8D1C653C8D85E58B - 406646287 - 956 - 564 - 8F508F9E7187AEA0E35A268B6F7B8E8A6C6588CCA01A2F3C5BBF1010699D8270 - 1555404133 - 578 - 372 - 98B33BE76679E3A4831241335CD5DFF6F634429F36BABF96C1D4DC2296C5ECC5 - 1584672077 - 208 - 259 - - - - - 0 - ../../../../boost/exception/detail/error_info_impl.hpp - 0 - 0 - - - - -52 - - - - - - 1 - 8A5444CF9C854740F83F17EA2075478A983F7C0243DCE4E42551ECBF908C1392 - 4193409281 - 322 - 992 - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - -22 - - - - - - 1 - F2E44174DE588C19C0172D82AD61322E6B6578ADBE2A631C6C8059CB84396D97 - 670214046 - 684 - 321 - - - - - 0 - ../../../../boost/exception/current_exception_cast.hpp - 0 - 0 - - - - -42 - - - - - - 1 - 197F3960CFF5CBDEF7BDA8D0DE60948A5328F229C6710FEDE656530A3116B29B - 742102996 - 475 - 1316 - - - - - 0 - ../../../../boost/throw_exception.hpp - 0 - 0 - - - - -33 - - - - - - 2 - D58AD357499A5A09FB5D12397CFFC2FFD412AC8A307ABB59C9BC53ACCA3B959D - 2209414553 - 2926 - 724 - 49F40FF20D66B205C908A8F10BC61DE1BC571E4917A5BD0B4115E3F7FE3923FA - 638776689 - 2894 - 26 - - - - - 0 - ../../../../boost/exception/get_error_info.hpp - 0 - 0 - - - - -68 - - - - - - 1 - 3EC508EAC996E7C8D4B1DDF49BF0B32096F8DEFD1BD1CD7FABBF0E0938255CA4 - 1239321455 - 12162 - 543 - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -50 - - - - - - 2 - 3EC508EAC996E7C8D4B1DDF49BF0B32096F8DEFD1BD1CD7FABBF0E0938255CA4 - 1239321455 - 12162 - 543 - 96DA9A7E983733685FB1D74C8ABF58EA409CCA42F8522A9775E15BC0C93DB87B - 3668840260 - 2638 - 4436 - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -53 - - - - - - 2 - 3EC508EAC996E7C8D4B1DDF49BF0B32096F8DEFD1BD1CD7FABBF0E0938255CA4 - 1239321455 - 12162 - 543 - 17E691632123EB67BA67D590B49EB8094F462F5A10A66A1C5438E1867EF1478E - 765399792 - 77 - 7076 - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -34 - - - - - - 2 - 3EC508EAC996E7C8D4B1DDF49BF0B32096F8DEFD1BD1CD7FABBF0E0938255CA4 - 1239321455 - 12162 - 543 - DF9EA87B0140AACF4422F1B76F6A6A409C15F32858BBBA85A35981A824C56BA9 - 1137981799 - 192 - 11964 - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -32 - - - - - - 2 - 3EC508EAC996E7C8D4B1DDF49BF0B32096F8DEFD1BD1CD7FABBF0E0938255CA4 - 1239321455 - 12162 - 543 - F3FB15CD82336271C6E875BC620385322777D16F0B7C233300783CE35710CCBF - 3292878997 - 282 - 9470 - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -63 - - - - - - 3 - 3EC508EAC996E7C8D4B1DDF49BF0B32096F8DEFD1BD1CD7FABBF0E0938255CA4 - 1239321455 - 12162 - 543 - 97095C7B5621CC7BAB278BE10B315FB44588DB1CF078F269E35499C0FD934AF0 - 2572216802 - 2505 - 4436 - A94129EFD6ABBDDCD4CFDB671821F7DA103B2EA4455CF39E783D333C236D1C41 - 1035445969 - 595 - 402 - - - - - 0 - ../../../../boost/exception/exception.hpp - 0 - 0 - - - - -20 - - - - - - 1 - DE766B811244919E8E1EA54FC747A8487BCE57F1AB592932640FC90428B617A5 - 414875037 - 427 - 323 - - - - - 0 - ../../../../boost/exception/errinfo_file_open_mode.hpp - 0 - 0 - - - - -76 - - - - - - 1 - 977045132A532A0071B0B53F737D85367CE9A331402F96790E45B3B6F2FC88A6 - 1875939463 - 529 - 382 - - - - - 0 - ../../example/error_info_1.cpp - 0 - 0 - - - - -75 - - - - - - 1 - 91CF203512705C8B2CDCBCD1439821CBF93CFC1A4C2EA2CA91F38DAA3F7720B2 - 1769665510 - 1558 - 352 - - - - - 0 - ../../example/errinfos.cpp - 0 - 0 - - - - -46 - - - - - - 1 - 0CA48A4674CA9C409FF164D9A1B261FB48B0916C0EA387DF2F00DC4637E769BD - 348807582 - 6078 - 321 - - - - - 0 - ../../../../boost/exception/diagnostic_information.hpp - 0 - 0 - - - - -64 - - - - - - 2 - 1B4417301AE3C0338C22E6D497391F51ABD459E521E7DFCE59A6EEC1372D33C2 - 202224383 - 1766 - 616 - E0A17503B42EE12F31548A7D20F89916D734CE88B30A1BF6F9FC2D1F83A8B6F4 - 3410340567 - 1734 - 26 - - - - - 0 - ../../../../boost/exception/info_tuple.hpp - 0 - 0 - - - - -27 - - - - - - 2 - 307034E20863A00923777A60D9495B4076B7F917D5B97203025299060F0833E0 - 3948311309 - 396 - 344 - F8ED2052577830AC0C515EC5932BB14445DD5DA714782281FCDB1776961FECB1 - 3880328768 - 82 - 308 - - - - - 0 - ../../../../boost/exception/errinfo_file_name.hpp - 0 - 0 - - - - -48 - - - - - - 1 - C95CEF2E9D0BAA1E950509471062916DB849A46A19F7692BA478030E79B338EB - 1917376632 - 706 - 408 - - - - - 0 - ../../example/enable_error_info.cpp - 0 - 0 - - - - -58 - - - - - - 2 - C6DDF7D02A058403B7BD295CF1561F167D92B7DA1DAC4EBE9F801955264180EB - 1656366188 - 5040 - 767 - 6E325144EF4F41FA3A225EB30729101382C4E99B3D6160E307311E4B4E641010 - 1097215175 - 161 - 422 - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - -55 - - - - - - 3 - C6DDF7D02A058403B7BD295CF1561F167D92B7DA1DAC4EBE9F801955264180EB - 1656366188 - 5040 - 767 - 507B2DA4184DD6A38FC6099F6454CDC96604C0C7B2C06A2955C78452F66526F8 - 457758605 - 3872 - 889 - 38AA79D330846BE1CF17285796F34A9DBB5A7E995963A55F9B46EB1DA6314610 - 542483318 - 573 - 3084 - - - - - 0 - ../../../../boost/exception/info.hpp - 0 - 0 - - - - -19 - - - - - - 2 - 9A4ECF9A49A73AED83C1565CB8C67AE1519E8AFE6818F968B4C4733CB9E86CEF - 1615599655 - 68 - 321 - 34F0583BC8DE767CE2D79721E1F956895E43E5397473B1050F59BE7E26C773DB - 805836816 - 66 - 1 - - - - - 0 - ../../../../boost/exception/error_info.hpp - 0 - 0 - - - - -18 - - - - - - - - - - 87 - - tag_index - - - - - 56 - - - 1 - - - - - - 0 - - -5 - - - error_info_instance noalso type - - - - 0 - - -6 - - - noindex - - - - 0 - - -9 - - - type - - - - 0 - - -12 - - - exception_ptr free function - - - - 0 - - -13 - - - diagnostic_information free function - - - - 0 - - -14 - - - error_info_instance noalso type - - - - 0 - - -16 - - - error_info_instance noalso type - - - - 0 - - -18 - - - - - - - 0 - - -19 - - - error_info free function - - - - 0 - - -20 - - - function - - - - 0 - - -23 - - - exception_ptr free function - - - - 0 - - -24 - - - tutorial - - - - 0 - - -25 - - - - - - - 0 - - -26 - - - diagnostic_information tutorial - - - - 0 - - -27 - - - error_info free function - - - - 0 - - -28 - - - - - - - 0 - - -29 - - - type - - - - 0 - - -30 - - - tutorial - - - - 0 - - -31 - - - noindex tutorial - - - - 0 - - -32 - - - exception_ptr free function - - - - 0 - - -33 - - - macro - - - - 0 - - -34 - - - function - - - - 0 - - -36 - - - exception_ptr - - - - 0 - - -37 - - - - - - - 0 - - -38 - - - free function - - - - 0 - - -39 - - - - - - - 0 - - -41 - - - error_info_instance noalso type - - - - 0 - - -42 - - - - - - - 0 - - -43 - - - noalso noindex tutorial - - - - 0 - - -47 - - - function - - - - 0 - - -48 - - - error_info_instance noalso type - - - - 0 - - -49 - - - tutorial - - - - 0 - - -50 - - - - - - - 0 - - -51 - - - noalso noindex tutorial - - - - 0 - - -52 - - - function member - - - - 0 - - -53 - - - type - - - - 0 - - -54 - - - type - - - - 0 - - -55 - - - function member - - - - 0 - - -58 - - - tutorial - - - - 0 - - -60 - - - error_info - - - - 0 - - -62 - - - exception_ptr free function - - - - 0 - - -63 - - - error_info free function - - - - 0 - - -64 - - - - - - - 0 - - -65 - - - noindex tutorial - - - - 0 - - -67 - - - free function - - - - 0 - - -68 - - - error_info free function - - - - 0 - - -69 - - - type - - - - 0 - - -70 - - - error_info_instance noalso type - - - - 0 - - -71 - - - function - - - - 0 - - -73 - - - error_info_instance noalso type - - - - 0 - - -74 - - - - - - - 0 - - -75 - - - noalso noindex tutorial - - - - 0 - - -77 - - - exception_ptr type - - - - 0 - - -78 - - - error_info - - - - 0 - - -79 - - - error_info_instance noalso type - - - - - - - - - diff --git a/doc/source/html_prefix.txt b/doc/source/html_prefix.txt deleted file mode 100644 index 7c3418f..0000000 --- a/doc/source/html_prefix.txt +++ /dev/null @@ -1,21 +0,0 @@ - - - - - %s - - - -
-
-
-
- -

Boost Exception

-
- - - diff --git a/doc/source/html_suffix.txt b/doc/source/html_suffix.txt deleted file mode 100644 index f5167af..0000000 --- a/doc/source/html_suffix.txt +++ /dev/null @@ -1,16 +0,0 @@ - - - - -
-
-
- - diff --git a/doc/synopsis.html b/doc/synopsis.html index 0f94ed5..3ef1d92 100644 --- a/doc/synopsis.html +++ b/doc/synopsis.html @@ -1,283 +1,10 @@ - - + + - - Synopsis - + + -
-
-
-
- -

Boost Exception

-
- - - -

Synopsis

-

List of documented definitions, declarations and includes by header file:

-

#include <boost/exception/exception.hpp>

-
namespace
-boost
-    {
-    class
-    exception
-        {
-        protected:
-
-        exception();
-        exception( exception const & x );
-        ~exception();
-        };
-
-    template <class Tag,class T>
-    class error_info;
-
-    typedef error_info<struct throw_function_,char const *> throw_function;
-    typedef error_info<struct throw_file_,char const *> throw_file;
-    typedef error_info<struct throw_line_,int> throw_line;
-    }
-

#include <boost/exception/error_info.hpp>

-
namespace
-boost
-    {
-    template <class Tag,class T>
-    class error_info;
-    }
-

#include <boost/exception/info.hpp>

-
#include <boost/exception/exception.hpp>
-
-namespace
-boost
-    {
-    template <class Tag,class T>
-    class
-    error_info
-        {
-        public:
-
-        typedef T value_type;
-
-        error_info( value_type const & v );
-        value_type const & value() const;
-        value_type & value();
-        };
-
-    template <class E, class Tag, class T>
-    E const & operator<<( E const & x, error_info<Tag,T> const & v );
-    }
-

#include <boost/exception/info_tuple.hpp>

-
#include <boost/exception/info.hpp>
-#include <boost/tuple/tuple.hpp>
-
-namespace
-boost
-    {
-    template <class E, class Tag1, class T1, ..., class TagN, class TN>
-    E const & operator<<( E const & x,
-        tuple<
-            error_info<Tag1,T1>,
-            ...,
-            error_info<TagN,TN> > const & v );
-    }
-

#include <boost/exception/enable_error_info.hpp>

-
#include <boost/exception/exception.hpp>
-
-namespace
-boost
-    {
-    template <class T>
-    ---unspecified--- enable_error_info( T const & x );
-    }
-

#include <boost/exception/diagnostic_information.hpp>

-
#include <string>
-
-namespace
-boost
-    {
-    class exception;
-
-    template <class E>
-    std::string diagnostic_information( E const & e, bool verbose=true );
-
-    std::string diagnostic_information( exception_ptr const & p, bool verbose=true );
-
-    char const * diagnostic_information_what( boost::exception const & e, bool verbose=true ) throw();
-
-    std::string current_exception_diagnostic_information();
-    }
-

#include <boost/exception/current_exception_cast.hpp>

-
namespace
-boost
-    {
-    template <class E>
-    E * current_exception_cast();
-    }
-

#include <boost/exception_ptr.hpp>

-
#include <boost/exception/exception.hpp>
-
-namespace
-boost
-    {
-    class
-    unknown_exception:
-        public std::exception
-        public boost::exception
-        {
-        ---unspecified---
-        };
-
-    typedef error_info<struct tag_original_exception_type,std::type_info const *> original_exception_type;
-
-    typedef ---unspecified--- exception_ptr;
-
-    template <class T>
-    exception_ptr copy_exception( T const & e );
-
-    exception_ptr current_exception();
-
-    void rethrow_exception( exception_ptr const & ep );
-    }
-

#include <boost/exception/enable_current_exception.hpp>

-
#include <boost/exception/exception.hpp>
-
-namespace
-boost
-    {
-    template <class T>
-    ---unspecified--- enable_current_exception( T const & e );
-    }
-

#include <boost/throw_exception.hpp>

-
#if !defined( BOOST_EXCEPTION_DISABLE ) - #include <boost/exception/exception.hpp> - #include <boost/current_function.hpp> - #define BOOST_THROW_EXCEPTION(x)\ - ::boost::throw_exception( ::boost::enable_error_info(x) <<\ - ::boost::throw_file(__FILE__) <<\ - ::boost::throw_line((int)__LINE__) ) -#else - #define BOOST_THROW_EXCEPTION(x) ::boost::throw_exception(x) -#endif - -namespace -boost - { -#ifdef BOOST_NO_EXCEPTIONS - void throw_exception( std::exception const & e ); // user defined -#else - template <class E> - void throw_exception( E const & e ); -#endif - }
-

#include <boost/exception/errinfo_api_function.hpp>

-
#include <boost/exception/error_info.hpp>
-
-namespace
-boost
-    {
-    typedef error_info<struct errinfo_api_function_,char const *> errinfo_api_function;
-    }
-

#include <boost/exception/errinfo_at_line.hpp>

-
#include <boost/exception/error_info.hpp>
-
-namespace
-boost
-    {
-    typedef error_info<struct errinfo_at_line_,int> errinfo_at_line;
-    }
-

#include <boost/exception/errinfo_errno.hpp>

-
#include <boost/exception/error_info.hpp>
-#include <errno.h>
-
-namespace
-boost
-    {
-    typedef error_info<struct errinfo_errno_,int> errinfo_errno;
-    }
-

#include <boost/exception/errinfo_file_handle.hpp>

-
#include <boost/exception/error_info.hpp>
-
-namespace
-boost
-    {
-    template <class> class weak_ptr;
-    typedef error_info<struct errinfo_file_handle_,weak_ptr<FILE> > errinfo_file_handle;
-    }
-

#include <boost/exception/errinfo_file_name.hpp>

-
#include <boost/exception/error_info.hpp>
-#include <string>
-
-namespace
-boost
-    {
-    typedef error_info<struct errinfo_file_name_,std::string> errinfo_file_name;
-    }
-

#include <boost/exception/errinfo_file_open_mode.hpp>

-
#include <boost/exception/error_info.hpp>
-#include <string>
-
-namespace
-boost
-    {
-    typedef error_info<struct errinfo_file_open_mode_,std::string> errinfo_file_open_mode;
-    }
-

#include <boost/exception/errinfo_nested_exception.hpp>

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

#include <boost/exception/errinfo_type_info_name.hpp>

-
#include <boost/exception/error_info.hpp>
-#include <string>
-
-namespace
-boost
-    {
-    typedef error_info<struct errinfo_type_info_name_,std::string> errinfo_type_info_name;
-    }
-

#include <boost/exception/all.hpp>

-

-See also: Boost Exception -
- - - - -
-
-
+

Redirecting to index.html#synopsis...

diff --git a/doc/throw_exception.html b/doc/throw_exception.html index d6dd9be..690943f 100644 --- a/doc/throw_exception.html +++ b/doc/throw_exception.html @@ -1,43 +1,10 @@ - - + + - - throw_exception - + + -
-
-
-
- -

Boost Exception

-
- - - -

throw_exception

-
-

Please see Boost.ThrowException.

-
- - - - -
-
-
+

Redirecting to index.html#throw_exception...

diff --git a/doc/tuple_operator_shl.html b/doc/tuple_operator_shl.html index 1e467ea..b96b672 100644 --- a/doc/tuple_operator_shl.html +++ b/doc/tuple_operator_shl.html @@ -1,61 +1,10 @@ - - + + - - tuple/operator<< - + + -
-
-
-
- -

Boost Exception

-
- - - -

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,
-        tuple<
-            error_info<Tag1,T1>,
-            ...,
-            error_info<TagN,TN> > const & v );
-    }
-

Requirements:

-

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

-

Effects:

-

Equivalent to x << v.get<0>() << ... << v.get<N>().

-

Returns:

-

x.

-

Throws:

-

std::bad_alloc, or any exception emitted by T1..TN copy constructor.

-
- - - - -
-
-
+

Redirecting to index.html#tuple_operator_shl...

diff --git a/doc/tutorial_diagnostic_information.html b/doc/tutorial_diagnostic_information.html index 56fcfdf..1a9c0fc 100644 --- a/doc/tutorial_diagnostic_information.html +++ b/doc/tutorial_diagnostic_information.html @@ -1,75 +1,10 @@ - - + + - - diagnostic information - + + -
-
-
-
- -

Boost Exception

-
- - - -

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 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 <boost/exception/all.hpp>
-#include <iostream>
-
-void f(); //throws unknown types that derive from boost::exception.
-
-void
-g()
-    {
-    try
-        {
-        f();
-        }
-    catch(
-    boost::exception & e )
-        {
-        std::cerr << diagnostic_information(e);
-        }
-    }
-

Example:

-

this is a possible output from the diagnostic_information function, as used in libs/exception/example/example_io.cpp:

-
example_io.cpp(70): Throw in function class boost::shared_ptr<struct _iobuf> __cdecl my_fopen(const char *,const char *)
-Dynamic exception type: class boost::exception_detail::clone_impl<struct fopen_error>
-std::exception::what: example_io error
-[struct boost::errinfo_api_function_ *] = fopen
-[struct boost::errinfo_errno_ *] = 2, "No such file or directory"
-[struct boost::errinfo_file_name_ *] = tmp1.txt
-[struct boost::errinfo_file_open_mode_ *] = rb
-

-See also: Boost Exception -
- - - - -
-
-
+

Redirecting to index.html#tutorial_diagnostic_information...

diff --git a/doc/tutorial_enable_error_info.html b/doc/tutorial_enable_error_info.html index 5838cf7..437cd71 100644 --- a/doc/tutorial_enable_error_info.html +++ b/doc/tutorial_enable_error_info.html @@ -1,71 +1,10 @@ - - + + - - integrating boost exception in existing exception class hierarchies - + + -
-
-
-
- -

Boost Exception

-
- - - -

Integrating Boost Exception in Existing Exception Class Hierarchies

-
-

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

-
#include <boost/exception/all.hpp>
-#include <stdexcept>
-
-typedef boost::error_info<struct tag_std_range_min,size_t> std_range_min;
-typedef boost::error_info<struct tag_std_range_max,size_t> std_range_max;
-typedef boost::error_info<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::enable_error_info(std::range_error("Index out of range")) <<
-                std_range_min(0) <<
-                std_range_max(size()) <<
-                std_range_index(i);
-        //....
-        }
-    };
-
-

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 | Motivation -
- - - - -
-
-
+

Redirecting to index.html#tutorial_enable_error_info...

diff --git a/doc/tutorial_exception_ptr.html b/doc/tutorial_exception_ptr.html index 5a56406..d94a157 100644 --- a/doc/tutorial_exception_ptr.html +++ b/doc/tutorial_exception_ptr.html @@ -1,103 +1,10 @@ - - + + - - transporting of exceptions between threads - + + -
-
-
-
- -

Boost Exception

-
- - - -

Transporting of Exceptions Between Threads

-
-

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

-

Note:

-

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

-

Using enable_current_exception at the Time of the Throw

-
-

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

-
#include <boost/exception/info.hpp>
-#include <boost/exception/errinfo_errno.hpp>
-#include <stdio.h>
-#include <errno.h>
-
-struct file_read_error: virtual boost::exception { };
-
-void
-file_read( FILE * f, void * buffer, size_t size )
-    {
-    if( size!=fread(buffer,1,size,f) )
-        throw boost::enable_current_exception(file_read_error()) <<
-            boost::errinfo_errno(errno);
-    }
-

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

-

Cloning and Re-Throwing an Exception

-
-

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

-
#include <boost/exception_ptr.hpp>
-#include <boost/thread.hpp>
-#include <boost/bind.hpp>
-
-void do_work(); //throws cloning-enabled boost::exceptions
-
-void
-worker_thread( boost::exception_ptr & error )
-    {
-    try
-        {
-        do_work();
-        error = boost::exception_ptr();
-        }
-    catch(
-    ... )
-        {
-        error = boost::current_exception();
-        }
-    }
-

In the above example, note that current_exception captures the original type of the exception object. The exception can be thrown again using the rethrow_exception function:

-
// ...continued
-
-void
-work()
-    {
-    boost::exception_ptr error;
-    boost::thread t( boost::bind(worker_thread,boost::ref(error)) );
-    t.join();
-    if( error )
-        boost::rethrow_exception(error);
-    }
-

Note that current_exception could fail to copy the original exception object in the following cases:

-
  • if there is not enough memory, in which case the returned exception_ptr points to an instance of std::bad_alloc, or
  • -
  • if enable_current_exception 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 exception_ptr points to an instance of unknown_exception.
  • -
-

Regardless, the use of current_exception and rethrow_exception in the above examples is well-formed.

-

-See also: Boost Exception -
- - - - -
-
-
+

Redirecting to index.html#tutorial_exception_ptr...

diff --git a/doc/tutorial_transporting_data.html b/doc/tutorial_transporting_data.html index bace924..0fc878f 100644 --- a/doc/tutorial_transporting_data.html +++ b/doc/tutorial_transporting_data.html @@ -1,161 +1,10 @@ - - + + - - transporting of arbitrary data to the catch site - + + -
-
-
-
- -

Boost Exception

-
- - - -

Transporting of Arbitrary Data to the Catch Site

-
-

All exception types that derive from boost::exception can be used as type-safe containers of arbitrary data objects, while complying with the no-throw requirements (15.5.1) of the ANSI C++ standard for exception types.

-

When exceptions derive from boost::exception, arbitrary data can be added to exception objects:

-
  • At the point of the throw;
  • -
  • At a later time as exceptions bubble up the call stack.
  • -
-

Adding of Arbitrary Data at the Point of the Throw

-
-

The following example demonstrates how errno can be stored in exception objects using Boost Exception:

-
#include <boost/exception/all.hpp>
-#include <iostream>
-
-typedef boost::error_info<struct tag_my_info,int> my_info; //(1)
-
-struct my_error: virtual boost::exception, virtual std::exception { }; //(2)
-
-void
-f()
-    {
-    throw my_error() << my_info(42); //(3)
-    }
-

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

-

Second, we define class my_error, which derives from boost::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.

-

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

-
// ...continued
-
-void
-g()
-    {
-    try
-        {
-        f();
-        }
-    catch(
-    my_error & x )
-        {
-        if( int const * mi=boost::get_error_info<my_info>(x) )
-            std::cerr << "My info: " << *mi;
-        }
-    }
-

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

-

Adding of Arbitrary Data to Active Exception Objects

-
-

Sometimes the throw site does not have all the information that is needed at the catch site to make sense of what went wrong. Let's say we have an exception type file_read_error, which takes a file name in its constructor. Consider the following function:

-
void
-file_read( FILE * f, void * buffer, size_t size )
-    {
-    if( size!=fread(buffer,1,size,f) )
-        throw file_read_error(????);
-    }
-

How can the file_read function pass a file name to the exception type constructor? All it has is a FILE handle.

-

Using boost::exception allows us to free the file_read function from the burden of storing the file name in exceptions it throws:

-
#include <boost/exception/all.hpp>
-#include <boost/shared_ptr.hpp>
-#include <stdio.h>
-#include <errno.h>
-
-struct file_read_error: virtual boost::exception { };
-
-void
-file_read( FILE * f, void * buffer, size_t size )
-    {
-    if( size!=fread(buffer,1,size,f) )
-        throw file_read_error() << boost::errinfo_errno(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 <boost/exception/all.hpp>
-#include <boost/shared_ptr.hpp>
-#include <stdio.h>
-#include <string>
-
-boost::shared_ptr<FILE> file_open( char const * file_name, char const * mode );
-void file_read( FILE * f, void * buffer, size_t size );
-
-void
-parse_file( char const * file_name )
-    {
-    boost::shared_ptr<FILE> f = file_open(file_name,"rb");
-    assert(f);
-    try
-        {
-        char buf[1024];
-        file_read( f.get(), buf, sizeof(buf) );
-        }
-    catch(
-    boost::exception & e )
-        {
-        e << boost::errinfo_file_name(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::exception object, stores the file name, and re-throws using a throw-expression with no operand (15.1.6). The rationale for catching any boost::exception object is that the file name is relevant to any failure that occurs in parse_file, even if the failure is unrelated to file I/O.

-

Adding Grouped Data to Exceptions

-
-

The code snippet below demonstrates how boost::tuple can be used to bundle the name of the function that failed, together with the reported errno so that they can be added to exception objects more conveniently together:

-
#include <boost/exception/info_tuple.hpp>
-#include <boost/exception/errinfo_file_name.hpp>
-#include <boost/exception/errinfo_api_function.hpp>
-#include <boost/exception/errinfo_errno.hpp>
-#include <boost/shared_ptr.hpp>
-#include <stdio.h>
-#include <string>
-#include <errno.h>
-
-typedef boost::tuple<boost::errinfo_api_function,boost::errinfo_errno> clib_failure;
-
-struct file_open_error: virtual boost::exception { };
-
-boost::shared_ptr<FILE>
-file_open( char const * name, char const * mode )
-    {
-    if( FILE * f=fopen(name,mode) )
-        return boost::shared_ptr<FILE>(f,fclose);
-    else
-        throw file_open_error() <<
-            boost::errinfo_file_name(name) <<
-            clib_failure("fopen",errno);
-    }
-

Note that the members of a boost::tuple are stored separately in exception objects; they can only be retrieved individually, using get_error_info.

-
- - - - -
-
-
+

Redirecting to index.html#tutorial_transporting_data...

diff --git a/doc/types.html b/doc/types.html index 4a3dd1d..d5e706c 100644 --- a/doc/types.html +++ b/doc/types.html @@ -1,60 +1,10 @@ - - + + - - Types - + + -
-
-
-
- -

Boost Exception

-
- - - -

-See also: Boost Exception -
- - - - -
-
-
+

Redirecting to index.html#types...

diff --git a/doc/unknown_exception.html b/doc/unknown_exception.html index fe2647b..fd8244e 100644 --- a/doc/unknown_exception.html +++ b/doc/unknown_exception.html @@ -1,55 +1,10 @@ - - + + - - unknown_exception - + + -
-
-
-
- -

Boost Exception

-
- - - -

unknown_exception

-
-

#include <boost/exception_ptr.hpp>

-
namespace
-boost
-    {
-    class
-    unknown_exception:
-        public std::exception
-        public boost::exception
-        {
-        ---unspecified---
-        };
-    }
-

This type is used by the exception_ptr support in Boost Exception. Please see current_exception.

-
- - - - -
-
-
+

Redirecting to index.html#unknown_exception...

diff --git a/doc/using_virtual_inheritance_in_exception_types.html b/doc/using_virtual_inheritance_in_exception_types.html index a2c0457..03f7840 100644 --- a/doc/using_virtual_inheritance_in_exception_types.html +++ b/doc/using_virtual_inheritance_in_exception_types.html @@ -1,57 +1,10 @@ - - + + - - using virtual inheritance in exception types - + + -
-
-
-
- -

Boost Exception

-
- - - -

Using Virtual Inheritance in Exception Types

-
-

Exception types should use virtual inheritance when deriving from other exception types. This insight is due to Andrew Koenig. Using virtual inheritance prevents ambiguity problems in the exception handler:

-
#include <iostream>
-struct my_exc1 : std::exception { char const* what() const throw(); };
-struct my_exc2 : std::exception { char const* what() const throw(); };
-struct your_exc3 : my_exc1, my_exc2 {};
-
-int
-main()
-    {
-    try { throw your_exc3(); }
-    catch(std::exception const& e) {}
-    catch(...) { std::cout << "whoops!" << std::endl; }
-    }
-

The program above outputs "whoops!" because the conversion to std::exception is ambiguous.

-

The overhead introduced by virtual inheritance is always negligible in the context of exception handling. Note that virtual bases are initialized directly by the constructor of the most-derived-type (the type passed to the throw statement, in case of exceptions.) However, typically this detail is of no concern when boost::exception is used, because it enables exception types to be trivial structs with no members (there's nothing to initialize.) See Exception Types as Simple Semantic Tags.

-
- - - - -
-
-
+

Redirecting to index.html#using_virtual_inheritance_in_exception_types...

diff --git a/doc/zajo-dark.css b/doc/zajo-dark.css new file mode 100644 index 0000000..374ef39 --- /dev/null +++ b/doc/zajo-dark.css @@ -0,0 +1,479 @@ +/* Asciidoctor default stylesheet | MIT License | http://asciidoctor.org */ +/* Uncomment @import statement below to use as custom stylesheet */ +/*@import "https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700";*/ + +/* Zajo's custom font import. The rest of the customizations are at the bottom of this css file, which is otherwise kept unchanged */ +@import "https://fonts.googleapis.com/css?family=Anonymous+Pro|Istok+Web|Quicksand|Smooch+Sans|Poiret+One"; + +article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block} +audio,canvas,video{display:inline-block} +audio:not([controls]){display:none;height:0} +script{display:none!important} +html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%} +a{background:transparent} +a:focus{outline:thin dotted} +a:active,a:hover{outline:0} +h1{font-size:2em;margin:.67em 0} +abbr[title]{border-bottom:1px dotted} +b,strong{font-weight:bold} +dfn{font-style:italic} +hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0} +mark{background:#ff0;color:#000} +code,kbd,pre,samp{font-family:monospace;font-size:1em} +pre{white-space:pre-wrap} +q{quotes:"\201C" "\201D" "\2018" "\2019"} +small{font-size:80%} +sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline} +sup{top:-.5em} +sub{bottom:-.25em} +img{border:0} +svg:not(:root){overflow:hidden} +figure{margin:0} +fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em} +legend{border:0;padding:0} +button,input,select,textarea{font-family:inherit;font-size:100%;margin:0} +button,input{line-height:normal} +button,select{text-transform:none} +button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer} +button[disabled],html input[disabled]{cursor:default} +input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0} +button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0} +textarea{overflow:auto;vertical-align:top} +table{border-collapse:collapse;border-spacing:0} +*,*::before,*::after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box} +html,body{font-size:100%} +body{background:#fff;color:rgba(0,0,0,.8);padding:0;margin:0;font-family:"Noto Serif","DejaVu Serif",serif;font-weight:400;font-style:normal;line-height:1;position:relative;cursor:auto;tab-size:4;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased} +a:hover{cursor:pointer} +img,object,embed{max-width:100%;height:auto} +object,embed{height:100%} +img{-ms-interpolation-mode:bicubic} +.left{float:left!important} +.right{float:right!important} +.text-left{text-align:left!important} +.text-right{text-align:right!important} +.text-center{text-align:center!important} +.text-justify{text-align:justify!important} +.hide{display:none} +img,object,svg{display:inline-block;vertical-align:middle} +textarea{height:auto;min-height:50px} +select{width:100%} +.center{margin-left:auto;margin-right:auto} +.stretch{width:100%} +.subheader,.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{line-height:1.45;color:#7a2518;font-weight:400;margin-top:0;margin-bottom:.25em} +div,dl,dt,dd,ul,ol,li,h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6,pre,form,p,blockquote,th,td{margin:0;padding:0;direction:ltr} +a{color:#2156a5;text-decoration:underline;line-height:inherit} +a:hover,a:focus{color:#1d4b8f} +a img{border:none} +p{font-family:inherit;font-weight:400;font-size:1em;line-height:1.6;margin-bottom:1.25em;text-rendering:optimizeLegibility} +p aside{font-size:.875em;line-height:1.35;font-style:italic} +h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{font-family:"Open Sans","DejaVu Sans",sans-serif;font-weight:300;font-style:normal;color:#ba3925;text-rendering:optimizeLegibility;margin-top:1em;margin-bottom:.5em;line-height:1.0125em} +h1 small,h2 small,h3 small,#toctitle small,.sidebarblock>.content>.title small,h4 small,h5 small,h6 small{font-size:60%;color:#e99b8f;line-height:0} +h1{font-size:2.125em} +h2{font-size:1.6875em} +h3,#toctitle,.sidebarblock>.content>.title{font-size:1.375em} +h4,h5{font-size:1.125em} +h6{font-size:1em} +hr{border:solid #dddddf;border-width:1px 0 0;clear:both;margin:1.25em 0 1.1875em;height:0} +em,i{font-style:italic;line-height:inherit} +strong,b{font-weight:bold;line-height:inherit} +small{font-size:60%;line-height:inherit} +code{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;font-weight:400;color:rgba(0,0,0,.9)} +ul,ol,dl{font-size:1em;line-height:1.6;margin-bottom:1.25em;list-style-position:outside;font-family:inherit} +ul,ol{margin-left:1.5em} +ul li ul,ul li ol{margin-left:1.25em;margin-bottom:0;font-size:1em} +ul.square li ul,ul.circle li ul,ul.disc li ul{list-style:inherit} +ul.square{list-style-type:square} +ul.circle{list-style-type:circle} +ul.disc{list-style-type:disc} +ol li ul,ol li ol{margin-left:1.25em;margin-bottom:0} +dl dt{margin-bottom:.3125em;font-weight:bold} +dl dd{margin-bottom:1.25em} +abbr,acronym{text-transform:uppercase;font-size:90%;color:rgba(0,0,0,.8);border-bottom:1px dotted #ddd;cursor:help} +abbr{text-transform:none} +blockquote{margin:0 0 1.25em;padding:.5625em 1.25em 0 1.1875em;border-left:1px solid #ddd} +blockquote cite{display:block;font-size:.9375em;color:rgba(0,0,0,.6)} +blockquote cite::before{content:"\2014 \0020"} +blockquote cite a,blockquote cite a:visited{color:rgba(0,0,0,.6)} +blockquote,blockquote p{line-height:1.6;color:rgba(0,0,0,.85)} +@media screen and (min-width:768px){h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2} +h1{font-size:2.75em} +h2{font-size:2.3125em} +h3,#toctitle,.sidebarblock>.content>.title{font-size:1.6875em} +h4{font-size:1.4375em}} +table{background:#fff;margin-bottom:1.25em;border:solid 1px #dedede} +table thead,table tfoot{background:#f7f8f7} +table thead tr th,table thead tr td,table tfoot tr th,table tfoot tr td{padding:.5em .625em .625em;font-size:inherit;color:rgba(0,0,0,.8);text-align:left} +table tr th,table tr td{padding:.5625em .625em;font-size:inherit;color:rgba(0,0,0,.8)} +table tr.even,table tr.alt,table tr:nth-of-type(even){background:#f8f8f7} +table thead tr th,table tfoot tr th,table tbody tr td,table tr td,table tfoot tr td{display:table-cell;line-height:1.6} +h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2;word-spacing:-.05em} +h1 strong,h2 strong,h3 strong,#toctitle strong,.sidebarblock>.content>.title strong,h4 strong,h5 strong,h6 strong{font-weight:400} +.clearfix::before,.clearfix::after,.float-group::before,.float-group::after{content:" ";display:table} +.clearfix::after,.float-group::after{clear:both} +*:not(pre)>code{font-size:.9375em;font-style:normal!important;letter-spacing:0;padding:.1em .5ex;word-spacing:-.15em;background-color:#f7f7f8;-webkit-border-radius:4px;border-radius:4px;line-height:1.45;text-rendering:optimizeSpeed;word-wrap:break-word} +*:not(pre)>code.nobreak{word-wrap:normal} +*:not(pre)>code.nowrap{white-space:nowrap} +pre,pre>code{line-height:1.45;color:rgba(0,0,0,.9);font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;font-weight:400;text-rendering:optimizeSpeed} +em em{font-style:normal} +strong strong{font-weight:400} +.keyseq{color:rgba(51,51,51,.8)} +kbd{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;display:inline-block;color:rgba(0,0,0,.8);font-size:.65em;line-height:1.45;background-color:#f7f7f7;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em white inset;box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em #fff inset;margin:0 .15em;padding:.2em .5em;vertical-align:middle;position:relative;top:-.1em;white-space:nowrap} +.keyseq kbd:first-child{margin-left:0} +.keyseq kbd:last-child{margin-right:0} +.menuseq,.menuref{color:#000} +.menuseq b:not(.caret),.menuref{font-weight:inherit} +.menuseq{word-spacing:-.02em} +.menuseq b.caret{font-size:1.25em;line-height:.8} +.menuseq i.caret{font-weight:bold;text-align:center;width:.45em} +b.button::before,b.button::after{position:relative;top:-1px;font-weight:400} +b.button::before{content:"[";padding:0 3px 0 2px} +b.button::after{content:"]";padding:0 2px 0 3px} +p a>code:hover{color:rgba(0,0,0,.9)} +#header,#content,#footnotes,#footer{width:100%;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;max-width:62.5em;*zoom:1;position:relative;padding-left:.9375em;padding-right:.9375em} +#header::before,#header::after,#content::before,#content::after,#footnotes::before,#footnotes::after,#footer::before,#footer::after{content:" ";display:table} +#header::after,#content::after,#footnotes::after,#footer::after{clear:both} +#content{margin-top:1.25em} +#content::before{content:none} +#header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0} +#header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf} +#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} +#header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-flow:row wrap;-webkit-flex-flow:row wrap;flex-flow:row wrap} +#header .details span:first-child{margin-left:-.125em} +#header .details span.email a{color:rgba(0,0,0,.85)} +#header .details br{display:none} +#header .details br+span::before{content:"\00a0\2013\00a0"} +#header .details br+span.author::before{content:"\00a0\22c5\00a0";color:rgba(0,0,0,.85)} +#header .details br+span#revremark::before{content:"\00a0|\00a0"} +#header #revnumber{text-transform:capitalize} +#header #revnumber::after{content:"\00a0"} +#content>h1:first-child:not([class]){color:rgba(0,0,0,.85);border-bottom:1px solid #dddddf;padding-bottom:8px;margin-top:0;padding-top:1rem;margin-bottom:1.25rem} +#toc{border-bottom:1px solid #e7e7e9;padding-bottom:.5em} +#toc>ul{margin-left:.125em} +#toc ul.sectlevel0>li>a{font-style:italic} +#toc ul.sectlevel0 ul.sectlevel1{margin:.5em 0} +#toc ul{font-family:"Open Sans","DejaVu Sans",sans-serif;list-style-type:none} +#toc li{line-height:1.3334;margin-top:.3334em} +#toc a{text-decoration:none} +#toc a:active{text-decoration:underline} +#toctitle{color:#7a2518;font-size:1.2em} +@media screen and (min-width:768px){#toctitle{font-size:1.375em} +body.toc2{padding-left:15em;padding-right:0} +#toc.toc2{margin-top:0!important;background-color:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto} +#toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em} +#toc.toc2>ul{font-size:.9em;margin-bottom:0} +#toc.toc2 ul ul{margin-left:0;padding-left:1em} +#toc.toc2 ul.sectlevel0 ul.sectlevel1{padding-left:0;margin-top:.5em;margin-bottom:.5em} +body.toc2.toc-right{padding-left:0;padding-right:15em} +body.toc2.toc-right #toc.toc2{border-right-width:0;border-left:1px solid #e7e7e9;left:auto;right:0}} +@media screen and (min-width:1280px){body.toc2{padding-left:22em;padding-right:0} +#toc.toc2{width:22em} +#toc.toc2 #toctitle{font-size:1.375em} +#toc.toc2>ul{font-size:.95em} +#toc.toc2 ul ul{padding-left:1.25em} +body.toc2.toc-right{padding-left:0;padding-right:22em}} +#content #toc{border-style:solid;border-width:1px;border-color:#e0e0dc;margin-bottom:1.25em;padding:1.25em;background:#f8f8f7;-webkit-border-radius:4px;border-radius:4px} +#content #toc>:first-child{margin-top:0} +#content #toc>:last-child{margin-bottom:0} +#footer{max-width:100%;background-color:rgba(0,0,0,.8);padding:1.25em} +#footer-text{color:rgba(255,255,255,.8);line-height:1.44} +#content{margin-bottom:.625em} +.sect1{padding-bottom:.625em} +@media screen and (min-width:768px){#content{margin-bottom:1.25em} +.sect1{padding-bottom:1.25em}} +.sect1:last-child{padding-bottom:0} +.sect1+.sect1{border-top:1px solid #e7e7e9} +#content h1>a.anchor,h2>a.anchor,h3>a.anchor,#toctitle>a.anchor,.sidebarblock>.content>.title>a.anchor,h4>a.anchor,h5>a.anchor,h6>a.anchor{position:absolute;z-index:1001;width:1.5ex;margin-left:-1.5ex;display:block;text-decoration:none!important;visibility:hidden;text-align:center;font-weight:400} +#content h1>a.anchor::before,h2>a.anchor::before,h3>a.anchor::before,#toctitle>a.anchor::before,.sidebarblock>.content>.title>a.anchor::before,h4>a.anchor::before,h5>a.anchor::before,h6>a.anchor::before{content:"\00A7";font-size:.85em;display:block;padding-top:.1em} +#content h1:hover>a.anchor,#content h1>a.anchor:hover,h2:hover>a.anchor,h2>a.anchor:hover,h3:hover>a.anchor,#toctitle:hover>a.anchor,.sidebarblock>.content>.title:hover>a.anchor,h3>a.anchor:hover,#toctitle>a.anchor:hover,.sidebarblock>.content>.title>a.anchor:hover,h4:hover>a.anchor,h4>a.anchor:hover,h5:hover>a.anchor,h5>a.anchor:hover,h6:hover>a.anchor,h6>a.anchor:hover{visibility:visible} +#content h1>a.link,h2>a.link,h3>a.link,#toctitle>a.link,.sidebarblock>.content>.title>a.link,h4>a.link,h5>a.link,h6>a.link{color:#ba3925;text-decoration:none} +#content h1>a.link:hover,h2>a.link:hover,h3>a.link:hover,#toctitle>a.link:hover,.sidebarblock>.content>.title>a.link:hover,h4>a.link:hover,h5>a.link:hover,h6>a.link:hover{color:#a53221} +.audioblock,.imageblock,.literalblock,.listingblock,.stemblock,.videoblock{margin-bottom:1.25em} +.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{text-rendering:optimizeLegibility;text-align:left;font-family:"Noto Serif","DejaVu Serif",serif;font-size:1rem;font-style:italic} +table.tableblock.fit-content>caption.title{white-space:nowrap;width:0} +.paragraph.lead>p,#preamble>.sectionbody>[class="paragraph"]:first-of-type p{font-size:1.21875em;line-height:1.6;color:rgba(0,0,0,.85)} +table.tableblock #preamble>.sectionbody>[class="paragraph"]:first-of-type p{font-size:inherit} +.admonitionblock>table{border-collapse:separate;border:0;background:none;width:100%} +.admonitionblock>table td.icon{text-align:center;width:80px} +.admonitionblock>table td.icon img{max-width:none} +.admonitionblock>table td.icon .title{font-weight:bold;font-family:"Open Sans","DejaVu Sans",sans-serif;text-transform:uppercase} +.admonitionblock>table td.content{padding-left:1.125em;padding-right:1.25em;border-left:1px solid #dddddf;color:rgba(0,0,0,.6)} +.admonitionblock>table td.content>:last-child>:last-child{margin-bottom:0} +.exampleblock>.content{border-style:solid;border-width:1px;border-color:#e6e6e6;margin-bottom:1.25em;padding:1.25em;background:#fff;-webkit-border-radius:4px;border-radius:4px} +.exampleblock>.content>:first-child{margin-top:0} +.exampleblock>.content>:last-child{margin-bottom:0} +.sidebarblock{border-style:solid;border-width:1px;border-color:#e0e0dc;margin-bottom:1.25em;padding:1.25em;background:#f8f8f7;-webkit-border-radius:4px;border-radius:4px} +.sidebarblock>:first-child{margin-top:0} +.sidebarblock>:last-child{margin-bottom:0} +.sidebarblock>.content>.title{color:#7a2518;margin-top:0;text-align:center} +.exampleblock>.content>:last-child>:last-child,.exampleblock>.content .olist>ol>li:last-child>:last-child,.exampleblock>.content .ulist>ul>li:last-child>:last-child,.exampleblock>.content .qlist>ol>li:last-child>:last-child,.sidebarblock>.content>:last-child>:last-child,.sidebarblock>.content .olist>ol>li:last-child>:last-child,.sidebarblock>.content .ulist>ul>li:last-child>:last-child,.sidebarblock>.content .qlist>ol>li:last-child>:last-child{margin-bottom:0} +.literalblock pre,.listingblock pre:not(.highlight),.listingblock pre[class="highlight"],.listingblock pre[class^="highlight "],.listingblock pre.CodeRay,.listingblock pre.prettyprint{background:#f7f7f8} +.sidebarblock .literalblock pre,.sidebarblock .listingblock pre:not(.highlight),.sidebarblock .listingblock pre[class="highlight"],.sidebarblock .listingblock pre[class^="highlight "],.sidebarblock .listingblock pre.CodeRay,.sidebarblock .listingblock pre.prettyprint{background:#f2f1f1} +.literalblock pre,.literalblock pre[class],.listingblock pre,.listingblock pre[class]{-webkit-border-radius:4px;border-radius:4px;word-wrap:break-word;overflow-x:auto;padding:1em;font-size:.8125em} +@media screen and (min-width:768px){.literalblock pre,.literalblock pre[class],.listingblock pre,.listingblock pre[class]{font-size:.90625em}} +@media screen and (min-width:1280px){.literalblock pre,.literalblock pre[class],.listingblock pre,.listingblock pre[class]{font-size:1em}} +.literalblock pre.nowrap,.literalblock pre.nowrap pre,.listingblock pre.nowrap,.listingblock pre.nowrap pre{white-space:pre;word-wrap:normal} +.literalblock.output pre{color:#f7f7f8;background-color:rgba(0,0,0,.9)} +.listingblock pre.highlightjs{padding:0} +.listingblock pre.highlightjs>code{padding:1em;-webkit-border-radius:4px;border-radius:4px} +.listingblock pre.prettyprint{border-width:0} +.listingblock>.content{position:relative} +.listingblock code[data-lang]::before{display:none;content:attr(data-lang);position:absolute;font-size:.75em;top:.425rem;right:.5rem;line-height:1;text-transform:uppercase;color:#999} +.listingblock:hover code[data-lang]::before{display:block} +.listingblock.terminal pre .command::before{content:attr(data-prompt);padding-right:.5em;color:#999} +.listingblock.terminal pre .command:not([data-prompt])::before{content:"$"} +table.pyhltable{border-collapse:separate;border:0;margin-bottom:0;background:none} +table.pyhltable td{vertical-align:top;padding-top:0;padding-bottom:0;line-height:1.45} +table.pyhltable td.code{padding-left:.75em;padding-right:0} +pre.pygments .lineno,table.pyhltable td:not(.code){color:#999;padding-left:0;padding-right:.5em;border-right:1px solid #dddddf} +pre.pygments .lineno{display:inline-block;margin-right:.25em} +table.pyhltable .linenodiv{background:none!important;padding-right:0!important} +.quoteblock{margin:0 1em 1.25em 1.5em;display:table} +.quoteblock>.title{margin-left:-1.5em;margin-bottom:.75em} +.quoteblock blockquote,.quoteblock p{color:rgba(0,0,0,.85);font-size:1.15rem;line-height:1.75;word-spacing:.1em;letter-spacing:0;font-style:italic;text-align:justify} +.quoteblock blockquote{margin:0;padding:0;border:0} +.quoteblock blockquote::before{content:"\201c";float:left;font-size:2.75em;font-weight:bold;line-height:.6em;margin-left:-.6em;color:#7a2518;text-shadow:0 1px 2px rgba(0,0,0,.1)} +.quoteblock blockquote>.paragraph:last-child p{margin-bottom:0} +.quoteblock .attribution{margin-top:.75em;margin-right:.5ex;text-align:right} +.verseblock{margin:0 1em 1.25em} +.verseblock pre{font-family:"Open Sans","DejaVu Sans",sans;font-size:1.15rem;color:rgba(0,0,0,.85);font-weight:300;text-rendering:optimizeLegibility} +.verseblock pre strong{font-weight:400} +.verseblock .attribution{margin-top:1.25rem;margin-left:.5ex} +.quoteblock .attribution,.verseblock .attribution{font-size:.9375em;line-height:1.45;font-style:italic} +.quoteblock .attribution br,.verseblock .attribution br{display:none} +.quoteblock .attribution cite,.verseblock .attribution cite{display:block;letter-spacing:-.025em;color:rgba(0,0,0,.6)} +.quoteblock.abstract blockquote::before,.quoteblock.excerpt blockquote::before,.quoteblock .quoteblock blockquote::before{display:none} +.quoteblock.abstract blockquote,.quoteblock.abstract p,.quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{line-height:1.6;word-spacing:0} +.quoteblock.abstract{margin:0 1em 1.25em;display:block} +.quoteblock.abstract>.title{margin:0 0 .375em;font-size:1.15em;text-align:center} +.quoteblock.excerpt,.quoteblock .quoteblock{margin:0 0 1.25em;padding:0 0 .25em 1em;border-left:.25em solid #dddddf} +.quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{color:inherit;font-size:1.0625rem} +.quoteblock.excerpt .attribution,.quoteblock .quoteblock .attribution{color:inherit;text-align:left;margin-right:0} +table.tableblock{max-width:100%;border-collapse:separate} +p.tableblock:last-child{margin-bottom:0} +td.tableblock>.content{margin-bottom:-1.25em} +table.tableblock,th.tableblock,td.tableblock{border:0 solid #dedede} +table.grid-all>thead>tr>.tableblock,table.grid-all>tbody>tr>.tableblock{border-width:0 1px 1px 0} +table.grid-all>tfoot>tr>.tableblock{border-width:1px 1px 0 0} +table.grid-cols>*>tr>.tableblock{border-width:0 1px 0 0} +table.grid-rows>thead>tr>.tableblock,table.grid-rows>tbody>tr>.tableblock{border-width:0 0 1px} +table.grid-rows>tfoot>tr>.tableblock{border-width:1px 0 0} +table.grid-all>*>tr>.tableblock:last-child,table.grid-cols>*>tr>.tableblock:last-child{border-right-width:0} +table.grid-all>tbody>tr:last-child>.tableblock,table.grid-all>thead:last-child>tr>.tableblock,table.grid-rows>tbody>tr:last-child>.tableblock,table.grid-rows>thead:last-child>tr>.tableblock{border-bottom-width:0} +table.frame-all{border-width:1px} +table.frame-sides{border-width:0 1px} +table.frame-topbot,table.frame-ends{border-width:1px 0} +table.stripes-all tr,table.stripes-odd tr:nth-of-type(odd){background:#f8f8f7} +table.stripes-none tr,table.stripes-odd tr:nth-of-type(even){background:none} +th.halign-left,td.halign-left{text-align:left} +th.halign-right,td.halign-right{text-align:right} +th.halign-center,td.halign-center{text-align:center} +th.valign-top,td.valign-top{vertical-align:top} +th.valign-bottom,td.valign-bottom{vertical-align:bottom} +th.valign-middle,td.valign-middle{vertical-align:middle} +table thead th,table tfoot th{font-weight:bold} +tbody tr th{display:table-cell;line-height:1.6;background:#f7f8f7} +tbody tr th,tbody tr th p,tfoot tr th,tfoot tr th p{color:rgba(0,0,0,.8);font-weight:bold} +p.tableblock>code:only-child{background:none;padding:0} +p.tableblock{font-size:1em} +td>div.verse{white-space:pre} +ol{margin-left:1.75em} +ul li ol{margin-left:1.5em} +dl dd{margin-left:1.125em} +dl dd:last-child,dl dd:last-child>:last-child{margin-bottom:0} +ol>li p,ul>li p,ul dd,ol dd,.olist .olist,.ulist .ulist,.ulist .olist,.olist .ulist{margin-bottom:.625em} +ul.checklist,ul.none,ol.none,ul.no-bullet,ol.no-bullet,ol.unnumbered,ul.unstyled,ol.unstyled{list-style-type:none} +ul.no-bullet,ol.no-bullet,ol.unnumbered{margin-left:.625em} +ul.unstyled,ol.unstyled{margin-left:0} +ul.checklist{margin-left:.625em} +ul.checklist li>p:first-child>.fa-square-o:first-child,ul.checklist li>p:first-child>.fa-check-square-o:first-child{width:1.25em;font-size:.8em;position:relative;bottom:.125em} +ul.checklist li>p:first-child>input[type="checkbox"]:first-child{margin-right:.25em} +ul.inline{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-flow:row wrap;-webkit-flex-flow:row wrap;flex-flow:row wrap;list-style:none;margin:0 0 .625em -1.25em} +ul.inline>li{margin-left:1.25em} +.unstyled dl dt{font-weight:400;font-style:normal} +ol.arabic{list-style-type:decimal} +ol.decimal{list-style-type:decimal-leading-zero} +ol.loweralpha{list-style-type:lower-alpha} +ol.upperalpha{list-style-type:upper-alpha} +ol.lowerroman{list-style-type:lower-roman} +ol.upperroman{list-style-type:upper-roman} +ol.lowergreek{list-style-type:lower-greek} +.hdlist>table,.colist>table{border:0;background:none} +.hdlist>table>tbody>tr,.colist>table>tbody>tr{background:none} +td.hdlist1,td.hdlist2{vertical-align:top;padding:0 .625em} +td.hdlist1{font-weight:bold;padding-bottom:1.25em} +.literalblock+.colist,.listingblock+.colist{margin-top:-.5em} +.colist td:not([class]):first-child{padding:.4em .75em 0;line-height:1;vertical-align:top} +.colist td:not([class]):first-child img{max-width:none} +.colist td:not([class]):last-child{padding:.25em 0} +.thumb,.th{line-height:0;display:inline-block;border:solid 4px #fff;-webkit-box-shadow:0 0 0 1px #ddd;box-shadow:0 0 0 1px #ddd} +.imageblock.left{margin:.25em .625em 1.25em 0} +.imageblock.right{margin:.25em 0 1.25em .625em} +.imageblock>.title{margin-bottom:0} +.imageblock.thumb,.imageblock.th{border-width:6px} +.imageblock.thumb>.title,.imageblock.th>.title{padding:0 .125em} +.image.left,.image.right{margin-top:.25em;margin-bottom:.25em;display:inline-block;line-height:0} +.image.left{margin-right:.625em} +.image.right{margin-left:.625em} +a.image{text-decoration:none;display:inline-block} +a.image object{pointer-events:none} +sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super} +sup.footnote a,sup.footnoteref a{text-decoration:none} +sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline} +#footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em} +#footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0} +#footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em} +#footnotes .footnote a:first-of-type{font-weight:bold;text-decoration:none;margin-left:-1.05em} +#footnotes .footnote:last-of-type{margin-bottom:0} +#content #footnotes{margin-top:-.625em;margin-bottom:0;padding:.75em 0} +.gist .file-data>table{border:0;background:#fff;width:100%;margin-bottom:0} +.gist .file-data>table td.line-data{width:99%} +div.unbreakable{page-break-inside:avoid} +.big{font-size:larger} +.small{font-size:smaller} +.underline{text-decoration:underline} +.overline{text-decoration:overline} +.line-through{text-decoration:line-through} +.aqua{color:#00bfbf} +.aqua-background{background-color:#00fafa} +.black{color:#000} +.black-background{background-color:#000} +.blue{color:#0000bf} +.blue-background{background-color:#0000fa} +.fuchsia{color:#bf00bf} +.fuchsia-background{background-color:#fa00fa} +.gray{color:#606060} +.gray-background{background-color:#7d7d7d} +.green{color:#006000} +.green-background{background-color:#007d00} +.lime{color:#00bf00} +.lime-background{background-color:#00fa00} +.maroon{color:#600000} +.maroon-background{background-color:#7d0000} +.navy{color:#000060} +.navy-background{background-color:#00007d} +.olive{color:#606000} +.olive-background{background-color:#7d7d00} +.purple{color:#600060} +.purple-background{background-color:#7d007d} +.red{color:#bf0000} +.red-background{background-color:#fa0000} +.silver{color:#909090} +.silver-background{background-color:#bcbcbc} +.teal{color:#006060} +.teal-background{background-color:#007d7d} +.white{color:#bfbfbf} +.white-background{background-color:#fafafa} +.yellow{color:#bfbf00} +.yellow-background{background-color:#fafa00} +span.icon>.fa{cursor:default} +a span.icon>.fa{cursor:inherit} +.admonitionblock td.icon [class^="fa icon-"]{font-size:2.5em;text-shadow:1px 1px 2px rgba(0,0,0,.5);cursor:default} +.admonitionblock td.icon .icon-note::before{content:"\f05a";color:#19407c} +.admonitionblock td.icon .icon-tip::before{content:"\f0eb";text-shadow:1px 1px 2px rgba(155,155,0,.8);color:#111} +.admonitionblock td.icon .icon-warning::before{content:"\f071";color:#bf6900} +.admonitionblock td.icon .icon-caution::before{content:"\f06d";color:#bf3400} +.admonitionblock td.icon .icon-important::before{content:"\f06a";color:#bf0000} +.conum[data-value]{display:inline-block;color:#fff!important;background-color:rgba(0,0,0,.8);-webkit-border-radius:100px;border-radius:100px;text-align:center;font-size:.75em;width:1.67em;height:1.67em;line-height:1.67em;font-family:"Open Sans","DejaVu Sans",sans-serif;font-style:normal;font-weight:bold} +.conum[data-value] *{color:#fff!important} +.conum[data-value]+b{display:none} +.conum[data-value]::after{content:attr(data-value)} +pre .conum[data-value]{position:relative;top:-.125em} +b.conum *{color:inherit!important} +.conum:not([data-value]):empty{display:none} +dt,th.tableblock,td.content,div.footnote{text-rendering:optimizeLegibility} +h1,h2,p,td.content,span.alt{letter-spacing:-.01em} +p strong,td.content strong,div.footnote strong{letter-spacing:-.005em} +p,blockquote,dt,td.content,span.alt{font-size:1.0625rem} +p{margin-bottom:1.25rem} +.sidebarblock p,.sidebarblock dt,.sidebarblock td.content,p.tableblock{font-size:1em} +.exampleblock>.content{background-color:#fffef7;border-color:#e0e0dc;-webkit-box-shadow:0 1px 4px #e0e0dc;box-shadow:0 1px 4px #e0e0dc} +.print-only{display:none!important} +@page{margin:1.25cm .75cm} +@media print{*{-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:none!important} +html{font-size:80%} +a{color:inherit!important;text-decoration:underline!important} +a.bare,a[href^="#"],a[href^="mailto:"]{text-decoration:none!important} +a[href^="http:"]:not(.bare)::after,a[href^="https:"]:not(.bare)::after{content:"(" attr(href) ")";display:inline-block;font-size:.875em;padding-left:.25em} +abbr[title]::after{content:" (" attr(title) ")"} +pre,blockquote,tr,img,object,svg{page-break-inside:avoid} +thead{display:table-header-group} +svg{max-width:100%} +p,blockquote,dt,td.content{font-size:1em;orphans:3;widows:3} +h2,h3,#toctitle,.sidebarblock>.content>.title{page-break-after:avoid} +#toc,.sidebarblock,.exampleblock>.content{background:none!important} +#toc{border-bottom:1px solid #dddddf!important;padding-bottom:0!important} +body.book #header{text-align:center} +body.book #header>h1:first-child{border:0!important;margin:2.5em 0 1em} +body.book #header .details{border:0!important;display:block;padding:0!important} +body.book #header .details span:first-child{margin-left:0!important} +body.book #header .details br{display:block} +body.book #header .details br+span::before{content:none!important} +body.book #toc{border:0!important;text-align:left!important;padding:0!important;margin:0!important} +body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-break-before:always} +.listingblock code[data-lang]::before{display:block} +#footer{padding:0 .9375em} +.hide-on-print{display:none!important} +.print-only{display:block!important} +.hide-for-print{display:none!important} +.show-for-print{display:inherit!important}} +@media print,amzn-kf8{#header>h1:first-child{margin-top:1.25rem} +.sect1{padding:0!important} +.sect1+.sect1{border:0} +#footer{background:none} +#footer-text{color:rgba(0,0,0,.6);font-size:.9em}} +@media amzn-kf8{#header,#content,#footnotes,#footer{padding:0}} + +/* Zajo's customizations applied on top of the standard asciidoctor css above */ +h1{font-size:4em} +h2{font-size:1.74em} +h3,#toctitle,.sidebarblock>.content>.title{font-size:1.5em} +h4{font-size:1.2em} +h5{font-size:1em} +h6{font-size:1em} +#toc {text-align:left} +#toc ul code{font-size:111%} +#toc a:hover code {color:#F69220} +a:focus{outline:0} +.colist td{color:rgba(255,255,255,.67)} +body{text-align:left; background:#202020;color:rgba(255,255,255,.67);padding:0;margin:0;font-family:"Istok Web","DejaVu Serif",serif;font-weight:400;font-style:normal;line-height:1;position:relative;cursor:auto;tab-size:4;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased} +.subheader,.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{line-height:1.45;color:#a0a0a0;font-weight:400;margin-top:0;margin-bottom:.25em} +.literalblock pre,.listingblock pre:not(.highlight),.listingblock pre[class="highlight"],.listingblock pre[class^="highlight "],.listingblock pre.CodeRay,.listingblock pre.prettyprint{background:#101010} +table{background:#202020;margin-bottom:1.25em;border:solid 1px #dedede} +table tr th,table tr td{padding:.5625em .625em;font-size:inherit;color:rgba(255,255,255,.67)} +table tr.even,table tr.alt,table tr:nth-of-type(even){background:#202020} +table thead tr th,table thead tr td,table tfoot tr th,table tfoot tr td{color:rgba(255,255,255,.67)} +th{background-color:#404040} +a{color:#FFFFFF;text-decoration:underline;line-height:inherit} +a:hover{color:#F69220} +a:focus{color:#FFFFFF} +h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{font-family:"Quicksand","DejaVu Sans",sans-serif;font-weight:300;font-style:normal;color:#F69220;text-rendering:optimizeLegibility;margin-top:1em;margin-bottom:.5em;line-height:1.4em} +code{font-family:"Anonymous Pro","DejaVu Sans Mono",monospace;font-weight:400;color:black} +*:not(pre)>code{font-size:1.0em;font-style:normal!important;letter-spacing:0;padding:0 0;word-spacing:-.15em;background-color:transparent;-webkit-border-radius:0;border-radius:0;line-height:1.45;text-rendering:optimizeLegibility;word-wrap:break-word;color:white} +pre,pre>code{line-height:1.45;color:rgba(255,255,255,.67);font-family:"Anonymous Pro","DejaVu Sans Mono",monospace;font-weight:400;text-rendering:optimizeLegibility;font-size:1.05em;background-color:#101010} +a:not(pre)>code:hover {color:#F69220} +kbd{font-family:"Anonymous Pro","DejaVu Sans Mono",monospace;display:inline-block;color:rgba(0,0,0,.8);font-size:.65em;line-height:1.45;background-color:#f7f7f7;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em white inset;box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em #fff inset;margin:0 .15em;padding:.2em .5em;vertical-align:middle;position:relative;top:-.1em;white-space:nowrap} +h1 code{color:#F69220; font-size:113%} +h2 code{color:#F69220; font-size:113%} +h3 code{color:#F69220; font-size:113%} +h4 code{color:#F69220; font-size:113%} +h5 code{color:#F69220; font-size:113%} +#header>h1:first-child{font-family:"Smooch Sans";color:#F69220;margin-top:2.25rem;margin-bottom:0} +#author{color:#a366ff} +#toc ul{font-family:"Quicksand","DejaVu Sans",sans-serif;list-style-type:none} +#toc a:hover{color:#F69220} +#toc.toc2{background-color:#404040} +.admonitionblock td.icon .icon-note::before{content:"\f05a";color:#F69220} +.admonitionblock td.icon .icon-tip::before{content:"\f0eb";color:#F69220;text-shadow:none} +.admonitionblock td.icon .icon-warning::before{content:"\f071";color:#a366ff} +.admonitionblock td.icon .icon-caution::before{content:"\f06d";color:#a366ff} +.admonitionblock td.icon .icon-important::before{content:"\f06a";color:#a366ff} +.admonitionblock>table td.content{padding-left:1.125em;padding-right:1.25em;border-left:1px solid #dddddf;color:rgba(255,255,255,.67)} +.conum[data-value]{display:inline-block;color:black!important;background-color:#d9d9d9;-webkit-border-radius:100px;border-radius:100px;text-align:center;font-size:.75em;width:1.67em;height:1.67em;line-height:1.67em;font-family:"Open Sans","DejaVu Sans",sans-serif;font-style:normal;font-weight:bold} +.exampleblock>.content{background-color:#404040;border-color:#e0e0dc;-webkit-box-shadow:0 1px 4px #e0e0dc;box-shadow:0 1px 4px #e0e0dc} +.quoteblock {background-color:#404040} +.quoteblock blockquote,.quoteblock p{color:rgba(255,255,255,.67);font-size:1.15rem;line-height:1.75;word-spacing:.1em;letter-spacing:0;font-style:italic;text-align:justify;background-color:#404040} +.quoteblock blockquote::before{margin-left:-.8em;color:#F69220} +.quoteblock blockquote{font-family:"Istok Web","DejaVu Serif"; font-size:1.0625rem; padding:0.5em} +.quoteblock .attribution{padding-top:.75ex;margin-top:0;margin-right:0;padding-right:.5ex;text-align:right;background-color:#202020} +.text-right{margin-top:-1em} +.subtle-note{width:75%;margin-left:auto;text-align:right;font-style:italic} \ No newline at end of file diff --git a/doc/zajo-light.css b/doc/zajo-light.css new file mode 100644 index 0000000..b762a1b --- /dev/null +++ b/doc/zajo-light.css @@ -0,0 +1,469 @@ +/* Asciidoctor default stylesheet | MIT License | http://asciidoctor.org */ +/* Uncomment @import statement below to use as custom stylesheet */ +/*@import "https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700";*/ + +/* Zajo's custom font import. The rest of the customizations are at the bottom of this css file, which is otherwise kept unchanged */ +@import "https://fonts.googleapis.com/css?family=Anonymous+Pro|Istok+Web|Quicksand|Smooch+Sans|Poiret+One"; + +article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block} +audio,canvas,video{display:inline-block} +audio:not([controls]){display:none;height:0} +script{display:none!important} +html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%} +a{background:transparent} +a:focus{outline:thin dotted} +a:active,a:hover{outline:0} +h1{font-size:2em;margin:.67em 0} +abbr[title]{border-bottom:1px dotted} +b,strong{font-weight:bold} +dfn{font-style:italic} +hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0} +mark{background:#ff0;color:#000} +code,kbd,pre,samp{font-family:monospace;font-size:1em} +pre{white-space:pre-wrap} +q{quotes:"\201C" "\201D" "\2018" "\2019"} +small{font-size:80%} +sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline} +sup{top:-.5em} +sub{bottom:-.25em} +img{border:0} +svg:not(:root){overflow:hidden} +figure{margin:0} +fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em} +legend{border:0;padding:0} +button,input,select,textarea{font-family:inherit;font-size:100%;margin:0} +button,input{line-height:normal} +button,select{text-transform:none} +button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer} +button[disabled],html input[disabled]{cursor:default} +input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0} +button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0} +textarea{overflow:auto;vertical-align:top} +table{border-collapse:collapse;border-spacing:0} +*,*::before,*::after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box} +html,body{font-size:100%} +body{background:#fff;color:rgba(0,0,0,.8);padding:0;margin:0;font-family:"Noto Serif","DejaVu Serif",serif;font-weight:400;font-style:normal;line-height:1;position:relative;cursor:auto;tab-size:4;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased} +a:hover{cursor:pointer} +img,object,embed{max-width:100%;height:auto} +object,embed{height:100%} +img{-ms-interpolation-mode:bicubic} +.left{float:left!important} +.right{float:right!important} +.text-left{text-align:left!important} +.text-right{text-align:right!important} +.text-center{text-align:center!important} +.text-justify{text-align:justify!important} +.hide{display:none} +img,object,svg{display:inline-block;vertical-align:middle} +textarea{height:auto;min-height:50px} +select{width:100%} +.center{margin-left:auto;margin-right:auto} +.stretch{width:100%} +.subheader,.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{line-height:1.45;color:#7a2518;font-weight:400;margin-top:0;margin-bottom:.25em} +div,dl,dt,dd,ul,ol,li,h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6,pre,form,p,blockquote,th,td{margin:0;padding:0;direction:ltr} +a{color:#2156a5;text-decoration:underline;line-height:inherit} +a:hover,a:focus{color:#1d4b8f} +a img{border:none} +p{font-family:inherit;font-weight:400;font-size:1em;line-height:1.6;margin-bottom:1.25em;text-rendering:optimizeLegibility} +p aside{font-size:.875em;line-height:1.35;font-style:italic} +h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{font-family:"Open Sans","DejaVu Sans",sans-serif;font-weight:300;font-style:normal;color:#ba3925;text-rendering:optimizeLegibility;margin-top:1em;margin-bottom:.5em;line-height:1.0125em} +h1 small,h2 small,h3 small,#toctitle small,.sidebarblock>.content>.title small,h4 small,h5 small,h6 small{font-size:60%;color:#e99b8f;line-height:0} +h1{font-size:2.125em} +h2{font-size:1.6875em} +h3,#toctitle,.sidebarblock>.content>.title{font-size:1.375em} +h4,h5{font-size:1.125em} +h6{font-size:1em} +hr{border:solid #dddddf;border-width:1px 0 0;clear:both;margin:1.25em 0 1.1875em;height:0} +em,i{font-style:italic;line-height:inherit} +strong,b{font-weight:bold;line-height:inherit} +small{font-size:60%;line-height:inherit} +code{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;font-weight:400;color:rgba(0,0,0,.9)} +ul,ol,dl{font-size:1em;line-height:1.6;margin-bottom:1.25em;list-style-position:outside;font-family:inherit} +ul,ol{margin-left:1.5em} +ul li ul,ul li ol{margin-left:1.25em;margin-bottom:0;font-size:1em} +ul.square li ul,ul.circle li ul,ul.disc li ul{list-style:inherit} +ul.square{list-style-type:square} +ul.circle{list-style-type:circle} +ul.disc{list-style-type:disc} +ol li ul,ol li ol{margin-left:1.25em;margin-bottom:0} +dl dt{margin-bottom:.3125em;font-weight:bold} +dl dd{margin-bottom:1.25em} +abbr,acronym{text-transform:uppercase;font-size:90%;color:rgba(0,0,0,.8);border-bottom:1px dotted #ddd;cursor:help} +abbr{text-transform:none} +blockquote{margin:0 0 1.25em;padding:.5625em 1.25em 0 1.1875em;border-left:1px solid #ddd} +blockquote cite{display:block;font-size:.9375em;color:rgba(0,0,0,.6)} +blockquote cite::before{content:"\2014 \0020"} +blockquote cite a,blockquote cite a:visited{color:rgba(0,0,0,.6)} +blockquote,blockquote p{line-height:1.6;color:rgba(0,0,0,.85)} +@media screen and (min-width:768px){h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2} +h1{font-size:2.75em} +h2{font-size:2.3125em} +h3,#toctitle,.sidebarblock>.content>.title{font-size:1.6875em} +h4{font-size:1.4375em}} +table{background:#fff;margin-bottom:1.25em;border:solid 1px #dedede} +table thead,table tfoot{background:#f7f8f7} +table thead tr th,table thead tr td,table tfoot tr th,table tfoot tr td{padding:.5em .625em .625em;font-size:inherit;color:rgba(0,0,0,.8);text-align:left} +table tr th,table tr td{padding:.5625em .625em;font-size:inherit;color:rgba(0,0,0,.8)} +table tr.even,table tr.alt,table tr:nth-of-type(even){background:#f8f8f7} +table thead tr th,table tfoot tr th,table tbody tr td,table tr td,table tfoot tr td{display:table-cell;line-height:1.6} +h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2;word-spacing:-.05em} +h1 strong,h2 strong,h3 strong,#toctitle strong,.sidebarblock>.content>.title strong,h4 strong,h5 strong,h6 strong{font-weight:400} +.clearfix::before,.clearfix::after,.float-group::before,.float-group::after{content:" ";display:table} +.clearfix::after,.float-group::after{clear:both} +*:not(pre)>code{font-size:.9375em;font-style:normal!important;letter-spacing:0;padding:.1em .5ex;word-spacing:-.15em;background-color:#f7f7f8;-webkit-border-radius:4px;border-radius:4px;line-height:1.45;text-rendering:optimizeSpeed;word-wrap:break-word} +*:not(pre)>code.nobreak{word-wrap:normal} +*:not(pre)>code.nowrap{white-space:nowrap} +pre,pre>code{line-height:1.45;color:rgba(0,0,0,.9);font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;font-weight:400;text-rendering:optimizeSpeed} +em em{font-style:normal} +strong strong{font-weight:400} +.keyseq{color:rgba(51,51,51,.8)} +kbd{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;display:inline-block;color:rgba(0,0,0,.8);font-size:.65em;line-height:1.45;background-color:#f7f7f7;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em white inset;box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em #fff inset;margin:0 .15em;padding:.2em .5em;vertical-align:middle;position:relative;top:-.1em;white-space:nowrap} +.keyseq kbd:first-child{margin-left:0} +.keyseq kbd:last-child{margin-right:0} +.menuseq,.menuref{color:#000} +.menuseq b:not(.caret),.menuref{font-weight:inherit} +.menuseq{word-spacing:-.02em} +.menuseq b.caret{font-size:1.25em;line-height:.8} +.menuseq i.caret{font-weight:bold;text-align:center;width:.45em} +b.button::before,b.button::after{position:relative;top:-1px;font-weight:400} +b.button::before{content:"[";padding:0 3px 0 2px} +b.button::after{content:"]";padding:0 2px 0 3px} +p a>code:hover{color:rgba(0,0,0,.9)} +#header,#content,#footnotes,#footer{width:100%;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;max-width:62.5em;*zoom:1;position:relative;padding-left:.9375em;padding-right:.9375em} +#header::before,#header::after,#content::before,#content::after,#footnotes::before,#footnotes::after,#footer::before,#footer::after{content:" ";display:table} +#header::after,#content::after,#footnotes::after,#footer::after{clear:both} +#content{margin-top:1.25em} +#content::before{content:none} +#header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0} +#header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf} +#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} +#header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-flow:row wrap;-webkit-flex-flow:row wrap;flex-flow:row wrap} +#header .details span:first-child{margin-left:-.125em} +#header .details span.email a{color:rgba(0,0,0,.85)} +#header .details br{display:none} +#header .details br+span::before{content:"\00a0\2013\00a0"} +#header .details br+span.author::before{content:"\00a0\22c5\00a0";color:rgba(0,0,0,.85)} +#header .details br+span#revremark::before{content:"\00a0|\00a0"} +#header #revnumber{text-transform:capitalize} +#header #revnumber::after{content:"\00a0"} +#content>h1:first-child:not([class]){color:rgba(0,0,0,.85);border-bottom:1px solid #dddddf;padding-bottom:8px;margin-top:0;padding-top:1rem;margin-bottom:1.25rem} +#toc{border-bottom:1px solid #e7e7e9;padding-bottom:.5em} +#toc>ul{margin-left:.125em} +#toc ul.sectlevel0>li>a{font-style:italic} +#toc ul.sectlevel0 ul.sectlevel1{margin:.5em 0} +#toc ul{font-family:"Open Sans","DejaVu Sans",sans-serif;list-style-type:none} +#toc li{line-height:1.3334;margin-top:.3334em} +#toc a{text-decoration:none} +#toc a:active{text-decoration:underline} +#toctitle{color:#7a2518;font-size:1.2em} +@media screen and (min-width:768px){#toctitle{font-size:1.375em} +body.toc2{padding-left:15em;padding-right:0} +#toc.toc2{margin-top:0!important;background-color:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto} +#toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em} +#toc.toc2>ul{font-size:.9em;margin-bottom:0} +#toc.toc2 ul ul{margin-left:0;padding-left:1em} +#toc.toc2 ul.sectlevel0 ul.sectlevel1{padding-left:0;margin-top:.5em;margin-bottom:.5em} +body.toc2.toc-right{padding-left:0;padding-right:15em} +body.toc2.toc-right #toc.toc2{border-right-width:0;border-left:1px solid #e7e7e9;left:auto;right:0}} +@media screen and (min-width:1280px){body.toc2{padding-left:22em;padding-right:0} +#toc.toc2{width:22em} +#toc.toc2 #toctitle{font-size:1.375em} +#toc.toc2>ul{font-size:.95em} +#toc.toc2 ul ul{padding-left:1.25em} +body.toc2.toc-right{padding-left:0;padding-right:22em}} +#content #toc{border-style:solid;border-width:1px;border-color:#e0e0dc;margin-bottom:1.25em;padding:1.25em;background:#f8f8f7;-webkit-border-radius:4px;border-radius:4px} +#content #toc>:first-child{margin-top:0} +#content #toc>:last-child{margin-bottom:0} +#footer{max-width:100%;background-color:rgba(0,0,0,.8);padding:1.25em} +#footer-text{color:rgba(255,255,255,.8);line-height:1.44} +#content{margin-bottom:.625em} +.sect1{padding-bottom:.625em} +@media screen and (min-width:768px){#content{margin-bottom:1.25em} +.sect1{padding-bottom:1.25em}} +.sect1:last-child{padding-bottom:0} +.sect1+.sect1{border-top:1px solid #e7e7e9} +#content h1>a.anchor,h2>a.anchor,h3>a.anchor,#toctitle>a.anchor,.sidebarblock>.content>.title>a.anchor,h4>a.anchor,h5>a.anchor,h6>a.anchor{position:absolute;z-index:1001;width:1.5ex;margin-left:-1.5ex;display:block;text-decoration:none!important;visibility:hidden;text-align:center;font-weight:400} +#content h1>a.anchor::before,h2>a.anchor::before,h3>a.anchor::before,#toctitle>a.anchor::before,.sidebarblock>.content>.title>a.anchor::before,h4>a.anchor::before,h5>a.anchor::before,h6>a.anchor::before{content:"\00A7";font-size:.85em;display:block;padding-top:.1em} +#content h1:hover>a.anchor,#content h1>a.anchor:hover,h2:hover>a.anchor,h2>a.anchor:hover,h3:hover>a.anchor,#toctitle:hover>a.anchor,.sidebarblock>.content>.title:hover>a.anchor,h3>a.anchor:hover,#toctitle>a.anchor:hover,.sidebarblock>.content>.title>a.anchor:hover,h4:hover>a.anchor,h4>a.anchor:hover,h5:hover>a.anchor,h5>a.anchor:hover,h6:hover>a.anchor,h6>a.anchor:hover{visibility:visible} +#content h1>a.link,h2>a.link,h3>a.link,#toctitle>a.link,.sidebarblock>.content>.title>a.link,h4>a.link,h5>a.link,h6>a.link{color:#ba3925;text-decoration:none} +#content h1>a.link:hover,h2>a.link:hover,h3>a.link:hover,#toctitle>a.link:hover,.sidebarblock>.content>.title>a.link:hover,h4>a.link:hover,h5>a.link:hover,h6>a.link:hover{color:#a53221} +.audioblock,.imageblock,.literalblock,.listingblock,.stemblock,.videoblock{margin-bottom:1.25em} +.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{text-rendering:optimizeLegibility;text-align:left;font-family:"Noto Serif","DejaVu Serif",serif;font-size:1rem;font-style:italic} +table.tableblock.fit-content>caption.title{white-space:nowrap;width:0} +.paragraph.lead>p,#preamble>.sectionbody>[class="paragraph"]:first-of-type p{font-size:1.21875em;line-height:1.6;color:rgba(0,0,0,.85)} +table.tableblock #preamble>.sectionbody>[class="paragraph"]:first-of-type p{font-size:inherit} +.admonitionblock>table{border-collapse:separate;border:0;background:none;width:100%} +.admonitionblock>table td.icon{text-align:center;width:80px} +.admonitionblock>table td.icon img{max-width:none} +.admonitionblock>table td.icon .title{font-weight:bold;font-family:"Open Sans","DejaVu Sans",sans-serif;text-transform:uppercase} +.admonitionblock>table td.content{padding-left:1.125em;padding-right:1.25em;border-left:1px solid #dddddf;color:rgba(0,0,0,.6)} +.admonitionblock>table td.content>:last-child>:last-child{margin-bottom:0} +.exampleblock>.content{border-style:solid;border-width:1px;border-color:#e6e6e6;margin-bottom:1.25em;padding:1.25em;background:#fff;-webkit-border-radius:4px;border-radius:4px} +.exampleblock>.content>:first-child{margin-top:0} +.exampleblock>.content>:last-child{margin-bottom:0} +.sidebarblock{border-style:solid;border-width:1px;border-color:#e0e0dc;margin-bottom:1.25em;padding:1.25em;background:#f8f8f7;-webkit-border-radius:4px;border-radius:4px} +.sidebarblock>:first-child{margin-top:0} +.sidebarblock>:last-child{margin-bottom:0} +.sidebarblock>.content>.title{color:#7a2518;margin-top:0;text-align:center} +.exampleblock>.content>:last-child>:last-child,.exampleblock>.content .olist>ol>li:last-child>:last-child,.exampleblock>.content .ulist>ul>li:last-child>:last-child,.exampleblock>.content .qlist>ol>li:last-child>:last-child,.sidebarblock>.content>:last-child>:last-child,.sidebarblock>.content .olist>ol>li:last-child>:last-child,.sidebarblock>.content .ulist>ul>li:last-child>:last-child,.sidebarblock>.content .qlist>ol>li:last-child>:last-child{margin-bottom:0} +.literalblock pre,.listingblock pre:not(.highlight),.listingblock pre[class="highlight"],.listingblock pre[class^="highlight "],.listingblock pre.CodeRay,.listingblock pre.prettyprint{background:#f7f7f8} +.sidebarblock .literalblock pre,.sidebarblock .listingblock pre:not(.highlight),.sidebarblock .listingblock pre[class="highlight"],.sidebarblock .listingblock pre[class^="highlight "],.sidebarblock .listingblock pre.CodeRay,.sidebarblock .listingblock pre.prettyprint{background:#f2f1f1} +.literalblock pre,.literalblock pre[class],.listingblock pre,.listingblock pre[class]{-webkit-border-radius:4px;border-radius:4px;word-wrap:break-word;overflow-x:auto;padding:1em;font-size:.8125em} +@media screen and (min-width:768px){.literalblock pre,.literalblock pre[class],.listingblock pre,.listingblock pre[class]{font-size:.90625em}} +@media screen and (min-width:1280px){.literalblock pre,.literalblock pre[class],.listingblock pre,.listingblock pre[class]{font-size:1em}} +.literalblock pre.nowrap,.literalblock pre.nowrap pre,.listingblock pre.nowrap,.listingblock pre.nowrap pre{white-space:pre;word-wrap:normal} +.literalblock.output pre{color:#f7f7f8;background-color:rgba(0,0,0,.9)} +.listingblock pre.highlightjs{padding:0} +.listingblock pre.highlightjs>code{padding:1em;-webkit-border-radius:4px;border-radius:4px} +.listingblock pre.prettyprint{border-width:0} +.listingblock>.content{position:relative} +.listingblock code[data-lang]::before{display:none;content:attr(data-lang);position:absolute;font-size:.75em;top:.425rem;right:.5rem;line-height:1;text-transform:uppercase;color:#999} +.listingblock:hover code[data-lang]::before{display:block} +.listingblock.terminal pre .command::before{content:attr(data-prompt);padding-right:.5em;color:#999} +.listingblock.terminal pre .command:not([data-prompt])::before{content:"$"} +table.pyhltable{border-collapse:separate;border:0;margin-bottom:0;background:none} +table.pyhltable td{vertical-align:top;padding-top:0;padding-bottom:0;line-height:1.45} +table.pyhltable td.code{padding-left:.75em;padding-right:0} +pre.pygments .lineno,table.pyhltable td:not(.code){color:#999;padding-left:0;padding-right:.5em;border-right:1px solid #dddddf} +pre.pygments .lineno{display:inline-block;margin-right:.25em} +table.pyhltable .linenodiv{background:none!important;padding-right:0!important} +.quoteblock{margin:0 1em 1.25em 1.5em;display:table} +.quoteblock>.title{margin-left:-1.5em;margin-bottom:.75em} +.quoteblock blockquote,.quoteblock p{color:rgba(0,0,0,.85);font-size:1.15rem;line-height:1.75;word-spacing:.1em;letter-spacing:0;font-style:italic;text-align:justify} +.quoteblock blockquote{margin:0;padding:0;border:0} +.quoteblock blockquote::before{content:"\201c";float:left;font-size:2.75em;font-weight:bold;line-height:.6em;margin-left:-.6em;color:#7a2518;text-shadow:0 1px 2px rgba(0,0,0,.1)} +.quoteblock blockquote>.paragraph:last-child p{margin-bottom:0} +.quoteblock .attribution{margin-top:.75em;margin-right:.5ex;text-align:right} +.verseblock{margin:0 1em 1.25em} +.verseblock pre{font-family:"Open Sans","DejaVu Sans",sans;font-size:1.15rem;color:rgba(0,0,0,.85);font-weight:300;text-rendering:optimizeLegibility} +.verseblock pre strong{font-weight:400} +.verseblock .attribution{margin-top:1.25rem;margin-left:.5ex} +.quoteblock .attribution,.verseblock .attribution{font-size:.9375em;line-height:1.45;font-style:italic} +.quoteblock .attribution br,.verseblock .attribution br{display:none} +.quoteblock .attribution cite,.verseblock .attribution cite{display:block;letter-spacing:-.025em;color:rgba(0,0,0,.6)} +.quoteblock.abstract blockquote::before,.quoteblock.excerpt blockquote::before,.quoteblock .quoteblock blockquote::before{display:none} +.quoteblock.abstract blockquote,.quoteblock.abstract p,.quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{line-height:1.6;word-spacing:0} +.quoteblock.abstract{margin:0 1em 1.25em;display:block} +.quoteblock.abstract>.title{margin:0 0 .375em;font-size:1.15em;text-align:center} +.quoteblock.excerpt,.quoteblock .quoteblock{margin:0 0 1.25em;padding:0 0 .25em 1em;border-left:.25em solid #dddddf} +.quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{color:inherit;font-size:1.0625rem} +.quoteblock.excerpt .attribution,.quoteblock .quoteblock .attribution{color:inherit;text-align:left;margin-right:0} +table.tableblock{max-width:100%;border-collapse:separate} +p.tableblock:last-child{margin-bottom:0} +td.tableblock>.content{margin-bottom:-1.25em} +table.tableblock,th.tableblock,td.tableblock{border:0 solid #dedede} +table.grid-all>thead>tr>.tableblock,table.grid-all>tbody>tr>.tableblock{border-width:0 1px 1px 0} +table.grid-all>tfoot>tr>.tableblock{border-width:1px 1px 0 0} +table.grid-cols>*>tr>.tableblock{border-width:0 1px 0 0} +table.grid-rows>thead>tr>.tableblock,table.grid-rows>tbody>tr>.tableblock{border-width:0 0 1px} +table.grid-rows>tfoot>tr>.tableblock{border-width:1px 0 0} +table.grid-all>*>tr>.tableblock:last-child,table.grid-cols>*>tr>.tableblock:last-child{border-right-width:0} +table.grid-all>tbody>tr:last-child>.tableblock,table.grid-all>thead:last-child>tr>.tableblock,table.grid-rows>tbody>tr:last-child>.tableblock,table.grid-rows>thead:last-child>tr>.tableblock{border-bottom-width:0} +table.frame-all{border-width:1px} +table.frame-sides{border-width:0 1px} +table.frame-topbot,table.frame-ends{border-width:1px 0} +table.stripes-all tr,table.stripes-odd tr:nth-of-type(odd){background:#f8f8f7} +table.stripes-none tr,table.stripes-odd tr:nth-of-type(even){background:none} +th.halign-left,td.halign-left{text-align:left} +th.halign-right,td.halign-right{text-align:right} +th.halign-center,td.halign-center{text-align:center} +th.valign-top,td.valign-top{vertical-align:top} +th.valign-bottom,td.valign-bottom{vertical-align:bottom} +th.valign-middle,td.valign-middle{vertical-align:middle} +table thead th,table tfoot th{font-weight:bold} +tbody tr th{display:table-cell;line-height:1.6;background:#f7f8f7} +tbody tr th,tbody tr th p,tfoot tr th,tfoot tr th p{color:rgba(0,0,0,.8);font-weight:bold} +p.tableblock>code:only-child{background:none;padding:0} +p.tableblock{font-size:1em} +td>div.verse{white-space:pre} +ol{margin-left:1.75em} +ul li ol{margin-left:1.5em} +dl dd{margin-left:1.125em} +dl dd:last-child,dl dd:last-child>:last-child{margin-bottom:0} +ol>li p,ul>li p,ul dd,ol dd,.olist .olist,.ulist .ulist,.ulist .olist,.olist .ulist{margin-bottom:.625em} +ul.checklist,ul.none,ol.none,ul.no-bullet,ol.no-bullet,ol.unnumbered,ul.unstyled,ol.unstyled{list-style-type:none} +ul.no-bullet,ol.no-bullet,ol.unnumbered{margin-left:.625em} +ul.unstyled,ol.unstyled{margin-left:0} +ul.checklist{margin-left:.625em} +ul.checklist li>p:first-child>.fa-square-o:first-child,ul.checklist li>p:first-child>.fa-check-square-o:first-child{width:1.25em;font-size:.8em;position:relative;bottom:.125em} +ul.checklist li>p:first-child>input[type="checkbox"]:first-child{margin-right:.25em} +ul.inline{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-flow:row wrap;-webkit-flex-flow:row wrap;flex-flow:row wrap;list-style:none;margin:0 0 .625em -1.25em} +ul.inline>li{margin-left:1.25em} +.unstyled dl dt{font-weight:400;font-style:normal} +ol.arabic{list-style-type:decimal} +ol.decimal{list-style-type:decimal-leading-zero} +ol.loweralpha{list-style-type:lower-alpha} +ol.upperalpha{list-style-type:upper-alpha} +ol.lowerroman{list-style-type:lower-roman} +ol.upperroman{list-style-type:upper-roman} +ol.lowergreek{list-style-type:lower-greek} +.hdlist>table,.colist>table{border:0;background:none} +.hdlist>table>tbody>tr,.colist>table>tbody>tr{background:none} +td.hdlist1,td.hdlist2{vertical-align:top;padding:0 .625em} +td.hdlist1{font-weight:bold;padding-bottom:1.25em} +.literalblock+.colist,.listingblock+.colist{margin-top:-.5em} +.colist td:not([class]):first-child{padding:.4em .75em 0;line-height:1;vertical-align:top} +.colist td:not([class]):first-child img{max-width:none} +.colist td:not([class]):last-child{padding:.25em 0} +.thumb,.th{line-height:0;display:inline-block;border:solid 4px #fff;-webkit-box-shadow:0 0 0 1px #ddd;box-shadow:0 0 0 1px #ddd} +.imageblock.left{margin:.25em .625em 1.25em 0} +.imageblock.right{margin:.25em 0 1.25em .625em} +.imageblock>.title{margin-bottom:0} +.imageblock.thumb,.imageblock.th{border-width:6px} +.imageblock.thumb>.title,.imageblock.th>.title{padding:0 .125em} +.image.left,.image.right{margin-top:.25em;margin-bottom:.25em;display:inline-block;line-height:0} +.image.left{margin-right:.625em} +.image.right{margin-left:.625em} +a.image{text-decoration:none;display:inline-block} +a.image object{pointer-events:none} +sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super} +sup.footnote a,sup.footnoteref a{text-decoration:none} +sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline} +#footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em} +#footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0} +#footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em} +#footnotes .footnote a:first-of-type{font-weight:bold;text-decoration:none;margin-left:-1.05em} +#footnotes .footnote:last-of-type{margin-bottom:0} +#content #footnotes{margin-top:-.625em;margin-bottom:0;padding:.75em 0} +.gist .file-data>table{border:0;background:#fff;width:100%;margin-bottom:0} +.gist .file-data>table td.line-data{width:99%} +div.unbreakable{page-break-inside:avoid} +.big{font-size:larger} +.small{font-size:smaller} +.underline{text-decoration:underline} +.overline{text-decoration:overline} +.line-through{text-decoration:line-through} +.aqua{color:#00bfbf} +.aqua-background{background-color:#00fafa} +.black{color:#000} +.black-background{background-color:#000} +.blue{color:#0000bf} +.blue-background{background-color:#0000fa} +.fuchsia{color:#bf00bf} +.fuchsia-background{background-color:#fa00fa} +.gray{color:#606060} +.gray-background{background-color:#7d7d7d} +.green{color:#006000} +.green-background{background-color:#007d00} +.lime{color:#00bf00} +.lime-background{background-color:#00fa00} +.maroon{color:#600000} +.maroon-background{background-color:#7d0000} +.navy{color:#000060} +.navy-background{background-color:#00007d} +.olive{color:#606000} +.olive-background{background-color:#7d7d00} +.purple{color:#600060} +.purple-background{background-color:#7d007d} +.red{color:#bf0000} +.red-background{background-color:#fa0000} +.silver{color:#909090} +.silver-background{background-color:#bcbcbc} +.teal{color:#006060} +.teal-background{background-color:#007d7d} +.white{color:#bfbfbf} +.white-background{background-color:#fafafa} +.yellow{color:#bfbf00} +.yellow-background{background-color:#fafa00} +span.icon>.fa{cursor:default} +a span.icon>.fa{cursor:inherit} +.admonitionblock td.icon [class^="fa icon-"]{font-size:2.5em;text-shadow:1px 1px 2px rgba(0,0,0,.5);cursor:default} +.admonitionblock td.icon .icon-note::before{content:"\f05a";color:#19407c} +.admonitionblock td.icon .icon-tip::before{content:"\f0eb";text-shadow:1px 1px 2px rgba(155,155,0,.8);color:#111} +.admonitionblock td.icon .icon-warning::before{content:"\f071";color:#bf6900} +.admonitionblock td.icon .icon-caution::before{content:"\f06d";color:#bf3400} +.admonitionblock td.icon .icon-important::before{content:"\f06a";color:#bf0000} +.conum[data-value]{display:inline-block;color:#fff!important;background-color:rgba(0,0,0,.8);-webkit-border-radius:100px;border-radius:100px;text-align:center;font-size:.75em;width:1.67em;height:1.67em;line-height:1.67em;font-family:"Open Sans","DejaVu Sans",sans-serif;font-style:normal;font-weight:bold} +.conum[data-value] *{color:#fff!important} +.conum[data-value]+b{display:none} +.conum[data-value]::after{content:attr(data-value)} +pre .conum[data-value]{position:relative;top:-.125em} +b.conum *{color:inherit!important} +.conum:not([data-value]):empty{display:none} +dt,th.tableblock,td.content,div.footnote{text-rendering:optimizeLegibility} +h1,h2,p,td.content,span.alt{letter-spacing:-.01em} +p strong,td.content strong,div.footnote strong{letter-spacing:-.005em} +p,blockquote,dt,td.content,span.alt{font-size:1.0625rem} +p{margin-bottom:1.25rem} +.sidebarblock p,.sidebarblock dt,.sidebarblock td.content,p.tableblock{font-size:1em} +.exampleblock>.content{background-color:#fffef7;border-color:#e0e0dc;-webkit-box-shadow:0 1px 4px #e0e0dc;box-shadow:0 1px 4px #e0e0dc} +.print-only{display:none!important} +@page{margin:1.25cm .75cm} +@media print{*{-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:none!important} +html{font-size:80%} +a{color:inherit!important;text-decoration:underline!important} +a.bare,a[href^="#"],a[href^="mailto:"]{text-decoration:none!important} +a[href^="http:"]:not(.bare)::after,a[href^="https:"]:not(.bare)::after{content:"(" attr(href) ")";display:inline-block;font-size:.875em;padding-left:.25em} +abbr[title]::after{content:" (" attr(title) ")"} +pre,blockquote,tr,img,object,svg{page-break-inside:avoid} +thead{display:table-header-group} +svg{max-width:100%} +p,blockquote,dt,td.content{font-size:1em;orphans:3;widows:3} +h2,h3,#toctitle,.sidebarblock>.content>.title{page-break-after:avoid} +#toc,.sidebarblock,.exampleblock>.content{background:none!important} +#toc{border-bottom:1px solid #dddddf!important;padding-bottom:0!important} +body.book #header{text-align:center} +body.book #header>h1:first-child{border:0!important;margin:2.5em 0 1em} +body.book #header .details{border:0!important;display:block;padding:0!important} +body.book #header .details span:first-child{margin-left:0!important} +body.book #header .details br{display:block} +body.book #header .details br+span::before{content:none!important} +body.book #toc{border:0!important;text-align:left!important;padding:0!important;margin:0!important} +body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-break-before:always} +.listingblock code[data-lang]::before{display:block} +#footer{padding:0 .9375em} +.hide-on-print{display:none!important} +.print-only{display:block!important} +.hide-for-print{display:none!important} +.show-for-print{display:inherit!important}} +@media print,amzn-kf8{#header>h1:first-child{margin-top:1.25rem} +.sect1{padding:0!important} +.sect1+.sect1{border:0} +#footer{background:none} +#footer-text{color:rgba(0,0,0,.6);font-size:.9em}} +@media amzn-kf8{#header,#content,#footnotes,#footer{padding:0}} + +/* Zajo's customizations applied on top of the standard asciidoctor css above */ +h1{font-size:4em} +h2{font-size:1.74em} +h3,#toctitle,.sidebarblock>.content>.title{font-size:1.5em} +h4{font-size:1.2em} +h5{font-size:1em} +h6{font-size:1em} +#toc {text-align:left} +#toc ul code{font-size:111%} +#toc a:hover code {color:#4101a7} +a:focus{outline:0} +.colist td{color:rgba(0,0,0,.67)} +body{text-align:left; background:#fff;color:rgba(0,0,0,.67);padding:0;margin:0;font-family:"Istok Web","DejaVu Serif",serif;font-weight:400;font-style:normal;line-height:1;position:relative;cursor:auto;tab-size:4;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased} +.subheader,.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{line-height:1.45;color:#a0a0a0;font-weight:400;margin-top:0;margin-bottom:.25em} +a{color:#000000;text-decoration:underline;line-height:inherit} +a:hover{color:#4101a7} +a:focus{color:#000000} +h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{font-family:"Quicksand","DejaVu Sans",sans-serif;font-weight:300;font-style:normal;color:#4101a7;text-rendering:optimizeLegibility;margin-top:1em;margin-bottom:.5em;line-height:1.4em} +code{font-family:"Anonymous Pro","DejaVu Sans Mono",monospace;font-weight:400;color:black} +*:not(pre)>code{font-size:1.0em;font-style:normal!important;letter-spacing:0;padding:0 0;word-spacing:-.15em;background-color:transparent;-webkit-border-radius:0;border-radius:0;line-height:1.45;text-rendering:optimizeLegibility;word-wrap:break-word} +pre,pre>code{line-height:1.45;color:rgba(0,0,0,.9);font-family:"Anonymous Pro","DejaVu Sans Mono",monospace;font-weight:400;text-rendering:optimizeLegibility;font-size:1.05em;background-color:#f7f8f7} +a:not(pre)>code:hover {color:#4101a7} +kbd{font-family:"Anonymous Pro","DejaVu Sans Mono",monospace;display:inline-block;color:rgba(0,0,0,.8);font-size:.65em;line-height:1.45;background-color:#f7f7f7;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em white inset;box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em #fff inset;margin:0 .15em;padding:.2em .5em;vertical-align:middle;position:relative;top:-.1em;white-space:nowrap} +h1 code{color:#4101a7; font-size:113%} +h2 code{color:#4101a7; font-size:113%} +h3 code{color:#4101a7; font-size:113%} +h4 code{color:#4101a7; font-size:113%} +h5 code{color:#4101a7; font-size:113%} +#header>h1:first-child{font-family:"Smooch Sans";color:#ff5100;margin-top:2.25rem;margin-bottom:0} +#author{color: #4101a7;} +#toc ul{font-family:"Quicksand","DejaVu Sans",sans-serif;list-style-type:none} +#toc a:hover{color:#4101a7} +#toc.toc2{background-color:#f7f8f7} +.admonitionblock td.icon .icon-note::before{content:"\f05a";color:#606060} +.admonitionblock td.icon .icon-tip::before{content:"\f0eb";color:#606060;text-shadow:none} +.admonitionblock td.icon .icon-warning::before{content:"\f071";color:#ff5100} +.admonitionblock td.icon .icon-caution::before{content:"\f06d";color:#ff5100} +.admonitionblock td.icon .icon-important::before{content:"\f06a";color:#ff5100} +.conum[data-value]{display:inline-block;color:#fff!important;background-color:#606060;-webkit-border-radius:100px;border-radius:100px;text-align:center;font-size:.75em;width:1.67em;height:1.67em;line-height:1.67em;font-family:"Open Sans","DejaVu Sans",sans-serif;font-style:normal;font-weight:bold} +.exampleblock>.content{background-color:#ffffff;border-color:#e0e0dc;-webkit-box-shadow:0 1px 4px #e0e0dc;box-shadow:0 1px 4px #e0e0dc} +.quoteblock blockquote::before{margin-left:-.8em;color:#4101a7} +.quoteblock blockquote{font-family:"Istok Web","DejaVu Serif"; font-size:1.0625rem; padding:0.5em} +.text-right{margin-top:-1em} +.subtle-note{width:75%;margin-left:auto;text-align:right;font-style:italic} \ No newline at end of file diff --git a/example/error_info_1.cpp b/example/error_info_1.cpp index 05339e9..7df8fbc 100644 --- a/example/error_info_1.cpp +++ b/example/error_info_1.cpp @@ -18,7 +18,7 @@ f() { throw my_error() << my_info(42); //(3) } - + void g() { diff --git a/index.html b/index.html index f91f992..9eb9f0a 100644 --- a/index.html +++ b/index.html @@ -1,15 +1,15 @@ - - -Automatic redirection + Automatic redirection failed, please go to -boost-exception.html
-

© Copyright Beman Dawes, 2001

-

Distributed under the Boost Software License, Version 1.0. (See accompanying -file LICENSE_1_0.txt or copy -at www.boost.org/LICENSE_1_0.txt)

+doc/html/index.html. - \ No newline at end of file + + diff --git a/src/clone_current_exception_non_intrusive.cpp b/src/clone_current_exception_non_intrusive.cpp index 932bca8..7d58ad7 100644 --- a/src/clone_current_exception_non_intrusive.cpp +++ b/src/clone_current_exception_non_intrusive.cpp @@ -260,7 +260,7 @@ namespace bool is_cpp_exception( EXCEPTION_RECORD const * record ) { - return record && + return record && (record->ExceptionCode==cpp_exception_code) && (record->NumberParameters==cpp_exception_parameter_count) && (record->ExceptionInformation[0]==cpp_exception_magic_flag); diff --git a/test/has_to_string_test.cpp b/test/has_to_string_test.cpp index 4479d50..f6efba4 100644 --- a/test/has_to_string_test.cpp +++ b/test/has_to_string_test.cpp @@ -27,7 +27,7 @@ n2 to_string( c2 const & ) { return "c2"; - } + } } namespace @@ -42,7 +42,7 @@ n3 operator<<( std::ostream & s, c3 const & ) { return s << "c3"; - } + } } int diff --git a/test/is_output_streamable_test.cpp b/test/is_output_streamable_test.cpp index 963989f..e442fa9 100644 --- a/test/is_output_streamable_test.cpp +++ b/test/is_output_streamable_test.cpp @@ -27,7 +27,7 @@ n2 { s << "c2"; return s; - } + } } template diff --git a/test/to_string_stub_test.cpp b/test/to_string_stub_test.cpp index 0b5cab8..30938b9 100644 --- a/test/to_string_stub_test.cpp +++ b/test/to_string_stub_test.cpp @@ -19,7 +19,7 @@ n1 to_string( c1 const & ) { return "c1"; - } + } } namespace @@ -35,7 +35,7 @@ n2 { s << "c2"; return s; - } + } } namespace @@ -51,13 +51,13 @@ n3 { s << "bad"; return s; - } + } std::string to_string( c3 const & ) { return "c3"; - } + } } namespace diff --git a/test/to_string_test.cpp b/test/to_string_test.cpp index eb18534..ed809d7 100644 --- a/test/to_string_test.cpp +++ b/test/to_string_test.cpp @@ -27,7 +27,7 @@ n2 to_string( c2 const & ) { return "c2"; - } + } } namespace @@ -42,7 +42,7 @@ n3 operator<<( std::ostream & s, c3 const & ) { return s << "c3"; - } + } } int