Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      Standard library header <stdexcept>

      From cppreference.com
      <cpp‎ |header
       
       
      Standard library headers
       

      This header is part of theerror handling library.

      Contents

      Classes

      exception class to indicate violations of logical preconditions or class invariants
      (class)[edit]
      exception class to report invalid arguments
      (class)[edit]
      exception class to report domain errors
      (class)[edit]
      exception class to report attempts to exceed maximum allowed size
      (class)[edit]
      exception class to report arguments outside of expected range
      (class)[edit]
      exception class to indicate conditions only detectable at run time
      (class)[edit]
      exception class to report range errors in internal computations
      (class)[edit]
      exception class to report arithmetic overflows
      (class)[edit]
      exception class to report arithmetic underflows
      (class)[edit]

      [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]Classstd::logic_error

      namespace std{class logic_error:public exception{public:constexprexplicit logic_error(const string& what_arg);constexprexplicit logic_error(constchar* what_arg);};}

      [edit]Classstd::domain_error

      namespace std{class domain_error:public logic_error{public:constexprexplicit domain_error(const string& what_arg);constexprexplicit domain_error(constchar* what_arg);};}

      [edit]Classstd::invalid_argument

      namespace std{class invalid_argument:public logic_error{public:constexprexplicit invalid_argument(const string& what_arg);constexprexplicit invalid_argument(constchar* what_arg);};}

      [edit]Classstd::length_error

      namespace std{class length_error:public logic_error{public:constexprexplicit length_error(const string& what_arg);constexprexplicit length_error(constchar* what_arg);};}

      [edit]Classstd::out_of_range

      namespace std{class out_of_range:public logic_error{public:constexprexplicit out_of_range(const string& what_arg);constexprexplicit out_of_range(constchar* what_arg);};}

      [edit]Classstd::runtime_error

      namespace std{class runtime_error:public exception{public:constexprexplicit runtime_error(const string& what_arg);constexprexplicit runtime_error(constchar* what_arg);};}

      [edit]Classstd::range_error

      namespace std{class range_error:public runtime_error{public:constexprexplicit range_error(const string& what_arg);constexprexplicit range_error(constchar* what_arg);};}

      [edit]Classstd::overflow_error

      namespace std{class overflow_error:public runtime_error{public:constexprexplicit overflow_error(const string& what_arg);constexprexplicit overflow_error(constchar* what_arg);};}

      [edit]Classstd::underflow_error

      namespace std{class underflow_error:public runtime_error{public:constexprexplicit underflow_error(const string& what_arg);constexprexplicit underflow_error(constchar* what_arg);};}

      [edit]See also

      base class for exceptions thrown by the standard library components
      (class)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/header/stdexcept&oldid=164004"

      [8]ページ先頭

      ©2009-2025 Movatter.jp