cppreference.com
搜索
创建账户
登录
名字空间
页面
讨论
变换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
查看
查看
编辑
历史
操作
std::bad_exception::
what
来自cppreference.com
<
cpp
|
error
|
bad exception
C++
语言
头文件
库概念
语言支持库
诊断库
工具库
字符串库
容器库
算法库
迭代器库
数值库
输入/输出库
本地化库
正则表达式库
(C++11)
原子操作库
(C++11)
线程支持库
(C++11)
文件系统库
(C++17)
技术规范
[编辑]
工具库
类型支持
(基本类型、 RTTI 、类型特性)
动态内存管理
错误处理
程序工具
变参数函数
日期和时间
函数对象
initializer_list
(C++11)
bitset
hash
(C++11)
integer_sequence
(C++14)
关系运算符
(弃用)
rel_ops::operator!=
rel_ops::operator>
rel_ops::operator<=
rel_ops::operator>=
比较
(C++20)
strong_order
weak_order
partial_order
strong_equal
weak_equal
strong_ordering
weak_ordering
partial_ordering
strong_equality
weak_equality
is_eq
is_neq
is_lt
is_lteq
is_gt
is_gteq
common_comparison_category
共用词汇类型
pair
tuple
(C++11)
apply
(C++17)
make_from_tuple
(C++17)
optional
(C++17)
any
(C++17)
variant
(C++17)
swap 、 forward 与 move
swap
exchange
(C++14)
forward
(C++11)
move
(C++11)
move_if_noexcept
(C++11)
初等字符串转换
to_chars
(C++17)
from_chars
(C++17)
chars_format
(C++17)
类型运算
declval
(C++11)
as_const
(C++17)
[编辑]
错误处理
异常处理
exception
uncaught_exception
uncaught_exceptions
(C++17)
exception_ptr
(C++11)
make_exception_ptr
(C++11)
current_exception
(C++11)
rethrow_exception
(C++11)
nested_exception
(C++11)
throw_with_nested
(C++11)
rethrow_if_nested
(C++11)
异常处理失败
terminate
terminate_handler
get_terminate
(C++11)
set_terminate
bad_exception
unexpected
(C++17 前)
unexpected_handler
(C++17 前)
get_unexpected
(C++11)
(C++17 前)
set_unexpected
(C++17 前)
异常类别
logic_error
invalid_argument
domain_error
length_error
out_of_range
runtime_error
range_error
overflow_error
underflow_error
tx_exception
(TM TS)
错误号
错误号
errno
断言
assert
system_error 设施
error_category
(C++11)
generic_category
(C++11)
system_category
(C++11)
error_condition
(C++11)
errc
(C++11)
error_code
(C++11)
system_error
(C++11)
[编辑]
std::bad_exception
成员函数
bad_exception::bad_exception
bad_exception::operator=
bad_exception::what
[编辑]
virtual
const
char
*
what
(
)
const
noexcept
;
返回解释性字符串。
[
编辑
]
参数
(无)
[
编辑
]
返回值
指向拥有解释信息的空终止字符串的指针。