Boost C++ Libraries

PrevUpHomeNext

Class exception

boost::taar::exception — The exception type Boost.Taar throws.

Synopsis

// In header: <boost/taar/core/error.hpp>


class exception : public std::exception {
public:
  // member classes/structs/unions

  struct state {

    // public member functions
    explicit state(failure);

    // public data members
    failure failure_;
    std::string what_;
  };

  // public member functions
  explicit exception(failure);
  failure const & error() const noexcept;
  char const * what() const noexcept;
};

Description

Carries a failure; what() renders its cause chain (failure::chain). Copies are cheap and do not throw.

exception public member functions

  1. explicit exception(failure f);
    Throwable wrapper for f.
  2. failure const & error() const noexcept;
    The failure this exception carries.
  3. char const * what() const noexcept;
    The rendered cause chain.

PrevUpHomeNext