std::bad_exception::bad_exception
来自cppreference.com
< cpp | error | bad exception
(1) | ||
bad_exception() throw(); |
(C++11 前) | |
bad_exception() noexcept; |
(C++11 起) | |
(2) | ||
bad_exception( const bad_exception& other ) throw(); |
(C++11 前) | |
bad_exception( const bad_exception& other ) noexcept; |
(C++11 起) | |
构造新的 bad_exception
对象。
1) 默认构造函数。
what()
返回实现定义的字符串。2) 复制构造函数。以 other 的内容初始化对象。若 *this 与 other 均拥有动态类型
std::bad_exception
,则 std::strcmp(what(), other.what()) == 0。 (C++11 起)参数
other | - | 要以之初始化的 bad_exception 对象
|