Class unknown_exception

poet::unknown_exception — Exception used as a placeholder for unknown exceptions.

Synopsis

class unknown_exception : public std::runtime_error {
public:
  // construct/copy/destruct
  unknown_exception(const std::string & = "poet::unknown_exception");
  virtual ~unknown_exception();
};

Description

Exceptions unknown by the current_exception() code are replaced with this class. It is also used to replace exceptions whose exact type is unknown but which are derived from std::exception, in which case the what() string will be made to match the what() string of the original unknown exception.

unknown_exception public construct/copy/destruct

  1. unknown_exception(const std::string & description = "poet::unknown_exception");
  2. virtual ~unknown_exception();