X Tutup
13 captures
07 Oct 2015 - 11 Oct 2025
Jun
JUL
Aug
24
2018
2019
2020
success
fail
About this capture
COLLECTED BY
Collection:
Common Crawl
Web crawl data from Common Crawl.
TIMESTAMPS
The Wayback Machine - https://web.archive.org/web/20190724073030/https://zh.cppreference.com/w/cpp/error/exception/what
cppreference.com
搜索
创建账户
登录
名字空间
页面
讨论
变换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
查看
查看
编辑
历史
操作
std::exception::
what
来自cppreference.com
<
cpp
|
error
|
exception
C++
语言
标准库头文件
自立与有宿主实现
具名要求
语言支持库
概念库
(C++20)
诊断库
工具库
字符串库
容器库
迭代器库
范围库
(C++20)
算法库
数值库
输入/输出库
本地化库
正则表达式库
(C++11)
原子操作库
(C++11)
线程支持库
(C++11)
文件系统库
(C++17)
技术规范
[编辑]
工具库
类型支持
(基本类型、 RTTI 、类型特性)
动态内存管理
错误处理
程序工具
变参数函数
库特性测试宏
日期和时间
函数对象
initializer_list
(C++11)
bitset
hash
(C++11)
integer_sequence
(C++14)
关系运算符
(C++20 中弃用)
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)
launder
(C++17)
[编辑]
错误处理
异常处理
exception
uncaught_exception
uncaught_exceptions
(C++20 前)
(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 前)
错误号
错误号
errno
异常类别
logic_error
invalid_argument
domain_error
length_error
out_of_range
runtime_error
range_error
overflow_error
underflow_error
tx_exception
(TM TS)
断言
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::exception
成员函数
exception::exception
exception::~exception
exception::operator=
exception::what
[编辑]
virtual
const
char
*
what
(
)
const
throw
(
)
;
(C++11 前)
virtual
const
char
*
what
(
)
const
noexcept
;
(C++11 起)
返回解释性字符串。
[
编辑
]
参数
(无)
[
编辑
]
返回值
指向拥有解释信息的空终止字符串的指针。该指针保证在获取它的异常对象被销毁前,或在调用该异常对象的非静态成员函数前合法。
X Tutup