Boost C++ Libraries

PrevUpHomeNext

Class invalid_type

boost::log::invalid_type — Exception class that is used to indicate errors of incorrect type of an object.

Synopsis

// In header: <boost/log/exceptions.hpp>


class invalid_type : public runtime_error {
public:
  // construct/copy/destruct
  invalid_type();
  explicit invalid_type(std::string const &);
  ~invalid_type();
};

Description

invalid_type public construct/copy/destruct

  1. invalid_type();

    Default constructor. Creates an exception with the default error message.

  2. explicit invalid_type(std::string const & descr);

    Initializing constructor. Creates an exception with the specified error message.

  3. ~invalid_type();

    Destructor


PrevUpHomeNext