public:
usage_error(const std::string &w, const std::string &h = std::string()): std::runtime_error(w), m_help(h) { }
- ~usage_error() throw() override = default;
- const char *help() const throw() { return m_help.c_str(); }
+ const char *help() const noexcept { return m_help.c_str(); }
};
public:
system_error(const std::string &, int = -1);
system_error(const std::string &, const std::string &);
- ~system_error() throw() override = default;
- int code() const throw() { return m_code; }
+ int code() const noexcept { return m_code; }
private:
static std::string get_message(int);
{
public:
type_mismatch(const std::type_info &, const std::type_info &);
- ~type_mismatch() throw() override = default;
};
{
public:
file_not_found(const std::string &fn): std::runtime_error(fn) { }
- ~file_not_found() throw() override = default;
};
class file_already_exists: public std::runtime_error
{
public:
file_already_exists(const std::string &fn): std::runtime_error(fn) { }
- ~file_already_exists() throw() override = default;
};
{
public:
invalid_access(Mode);
- ~invalid_access() throw() override = default;
};
} // namespace IO
public:
zlib_error(const std::string &, int);
- ~zlib_error() throw() override = default;
- int code() const throw() { return m_code; }
+ int code() const noexcept { return m_code; }
};
/**
{
public:
codec_error(const std::string &w): std::runtime_error(w) { }
- ~codec_error() throw() override = default;
};
{
public:
invalid_character(unichar, const std::string &);
- ~invalid_character() throw() override = default;
};
{
public:
invalid_sequence(const std::string::const_iterator &, const std::string::const_iterator &, const std::string &);
- ~invalid_sequence() throw() override = default;
private:
std::string format_sequence(const std::string::const_iterator &, const std::string::const_iterator &);
{
public:
format_error(const std::string &w): std::logic_error(w) { }
- ~format_error() throw() override = default;
};
{
public:
lexical_error(const std::string &w): runtime_error(w) { }
- ~lexical_error() throw() override = default;
};
{
public:
format_mismatch(const std::string &w): lexical_error(w) { }
- ~format_mismatch() throw() override = default;
};
{
public:
bad_regex(const std::string &, const std::string &, const std::string::const_iterator &);
- ~bad_regex() throw() override = default;
private:
std::string make_where(const std::string &, const std::string::const_iterator &);