標準ライブラリヘッダ <stdexcept>
提供: cppreference.com
このヘッダはエラー処理ライブラリの一部です。
クラス | |
| 論理的な事前条件やクラスの不変条件の違反を表す例外クラス (クラス) | |
| 無効な引数を報告する例外クラス (クラス) | |
| 定義域エラーを報告する例外クラス (クラス) | |
| 最大許容サイズを超えようとしていることを報告する例外クラス (クラス) | |
| 範囲外の引数を報告する例外クラス (クラス) | |
| 実行時にのみ検出可能な状況を報告する例外クラス (クラス) | |
| 内部の計算における値域エラーを報告する例外クラス (クラス) | |
| 算術オーバーフローを報告する例外クラス (クラス) | |
| 算術アンダーフローを報告する例外クラス (クラス) | |
概要
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;
}
クラス std::logic_error
namespace std {
class logic_error : public exception {
public:
explicit logic_error(const string& what_arg);
explicit logic_error(const char* what_arg);
};
}
クラス std::domain_error
namespace std {
class domain_error : public logic_error {
public:
explicit domain_error(const string& what_arg);
explicit domain_error(const char* what_arg);
};
}
クラス std::invalid_argument
namespace std {
class invalid_argument : public logic_error {
public:
explicit invalid_argument(const string& what_arg);
explicit invalid_argument(const char* what_arg);
};
}
クラス std::length_error
namespace std {
class length_error : public logic_error {
public:
explicit length_error(const string& what_arg);
explicit length_error(const char* what_arg);
};
}
クラス std::out_of_range
namespace std {
class out_of_range : public logic_error {
public:
explicit out_of_range(const string& what_arg);
explicit out_of_range(const char* what_arg);
};
}
クラス std::runtime_error
namespace std {
class runtime_error : public exception {
public:
explicit runtime_error(const string& what_arg);
explicit runtime_error(const char* what_arg);
};
}
クラス std::range_error
namespace std {
class range_error : public runtime_error {
public:
explicit range_error(const string& what_arg);
explicit range_error(const char* what_arg);
};
}
クラス std::overflow_error
namespace std {
class overflow_error : public runtime_error {
public:
explicit overflow_error(const string& what_arg);
explicit overflow_error(const char* what_arg);
};
}
クラス std::underflow_error
namespace std {
class underflow_error : public runtime_error {
public:
explicit underflow_error(const string& what_arg);
explicit underflow_error(const char* what_arg);
};
}
関連項目
| 標準ライブラリのコンポーネントによって投げられる例外のための基底クラス (クラス) |