std::bad_exception:: bad_exception
From cppreference.net
<
cpp
|
error
|
bad exception
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Diagnostics library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::bad_exception
| Member functions | ||||
|
bad_exception::bad_exception
|
||||
| (1) | ||
|
bad_exception
(
)
throw
(
)
;
|
(C++11 前) | |
|
bad_exception
(
)
noexcept
;
|
(C++11 起)
(C++26 起为 constexpr) |
|
| (2) | ||
|
bad_exception
(
const
bad_exception
&
other
)
throw
(
)
;
|
(C++11 前) | |
|
bad_exception
(
const
bad_exception
&
other
)
noexcept
;
|
(C++11 起)
(C++26 起为 constexpr) |
|
构造新的
bad_exception
对象。
1)
默认构造函数。
what()
返回一个由实现定义的字符串。
2)
复制构造函数。使用
other
的内容初始化对象。如果
*
this
和
other
都具有动态类型
std::bad_exception
,则满足
std::
strcmp
(
what
(
)
, other.
what
(
)
)
==
0
(C++11 起)
。
参数
| 其他 | - |
用于初始化的
bad_exception
对象
|