Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Class exception

boost::contract::exception — Public base class for all exceptions directly thrown by this library.

Synopsis

// In header: <boost/contract/core/exception.hpp>


class exception {
public:
  // construct/copy/destruct
  ~exception();
};

Description

This class does not inherit from std::exception because exceptions deriving from this class will do that (inheriting from std::exception, std::bad_cast, etc.).

See Also:

boost::contract::assertion_failure, boost::contract::bad_virtual_result_cast, etc.

exception public construct/copy/destruct

  1. ~exception();
    Destruct this object.

    Throws: This is declared noexcept (or throw() before C++11).


PrevUpHomeNext