A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../error/error_code/../../../cpp/header/stdexcept.html below:

Standard library header <stdexcept> - cppreference.com

This header is part of the error handling library.

[edit] Synopsis
namespace std {
  class logic_error;
  class domain_error;
  class invalid_argument;
  class length_error;
  class out_of_range;
  class runtime_error;
  class range_error;
  class overflow_error;
  class underflow_error;
}
[edit] Class std::logic_error
namespace std {
  class logic_error : public exception
  {
  public:
    constexpr explicit logic_error(const string& what_arg);
    constexpr explicit logic_error(const char* what_arg);
  };
}
[edit] Class std::domain_error
namespace std {
  class domain_error : public logic_error
  {
  public:
    constexpr explicit domain_error(const string& what_arg);
    constexpr explicit domain_error(const char* what_arg);
  };
}
[edit] Class std::invalid_argument
namespace std {
  class invalid_argument : public logic_error
  {
  public:
    constexpr explicit invalid_argument(const string& what_arg);
    constexpr explicit invalid_argument(const char* what_arg);
  };
}
[edit] Class std::length_error
namespace std {
  class length_error : public logic_error
  {
  public:
    constexpr explicit length_error(const string& what_arg);
    constexpr explicit length_error(const char* what_arg);
  };
}
[edit] Class std::out_of_range
namespace std {
  class out_of_range : public logic_error
  {
  public:
    constexpr explicit out_of_range(const string& what_arg);
    constexpr explicit out_of_range(const char* what_arg);
  };
}
[edit] Class std::runtime_error
namespace std {
  class runtime_error : public exception
  {
  public:
    constexpr explicit runtime_error(const string& what_arg);
    constexpr explicit runtime_error(const char* what_arg);
  };
}
[edit] Class std::range_error
namespace std {
  class range_error : public runtime_error
  {
  public:
    constexpr explicit range_error(const string& what_arg);
    constexpr explicit range_error(const char* what_arg);
  };
}
[edit] Class std::overflow_error
namespace std {
  class overflow_error : public runtime_error
  {
  public:
    constexpr explicit overflow_error(const string& what_arg);
    constexpr explicit overflow_error(const char* what_arg);
  };
}
[edit] Class std::underflow_error
namespace std {
  class underflow_error : public runtime_error
  {
  public:
    constexpr explicit underflow_error(const string& what_arg);
    constexpr explicit underflow_error(const char* what_arg);
  };
}
[edit] See also base class for exceptions thrown by the standard library components
(class) [edit]

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4