cppreference.com
建立用戶
登入
名字空間
頁面
討論
變換
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
檢視
檢視
編輯
歷史
動作
std::system_error::
what
從 cppreference.com
<
cpp
|
error
|
system error
在2013年7月2日 (二) 09:05由
P12bot
(
對話
|
貢獻
)
所做的修訂版本
(
差異
)
←上一修訂
|
最新修訂
(
差異
) |
下一修訂→
(
差異
)
該頁由英文版維基使用
谷歌翻譯
機器翻譯而來。
該翻譯可能存在錯誤或用詞不當。鼠標停留在文本上可以看到原版本。你可以幫助我們修正錯誤或改進翻譯。參見說明請點擊
此處
。
點擊此處參見該頁的英文版本
C++
編譯器支持
自立實現與有宿主實現
語言
標準庫
標準庫標頭
具名要求
功能特性測試宏
(C++20)
語言支持庫
概念庫
(C++20)
診斷庫
內存管理庫
元編程庫
(C++11)
通用工具庫
容器庫
迭代器庫
範圍庫
(C++20)
算法庫
字符串庫
文本處理庫
數值庫
日期和時間庫
輸入/輸出庫
文件系統庫
(C++17)
並發支持庫
(C++11)
執行控制庫
(C++26)
技術規範
符號索引
外部庫
[編輯]
工具庫
語言支持
庫功能特性測試宏
(C++20)
類型支持
(基本類型、RTTI)
程序工具
可變參數函數
is_constant_evaluated
(C++20)
is_within_lifetime
(C++26)
initializer_list
(C++11)
source_location
(C++20)
協程支持
(C++20)
契約支持
(C++26)
三路比較
three_way_comparable
three_way_comparable_with
(C++20)
(C++20)
strong_ordering
(C++20)
weak_ordering
(C++20)
partial_ordering
(C++20)
common_comparison_category
(C++20)
compare_three_way_result
(C++20)
compare_three_way
(C++20)
strong_order
(C++20)
weak_order
(C++20)
partial_order
(C++20)
compare_strong_order_fallback
(C++20)
compare_weak_order_fallback
(C++20)
compare_partial_order_fallback
(C++20)
is_eq
is_lt
is_lteq
(C++20)
(C++20)
(C++20)
is_neq
is_gt
is_gteq
(C++20)
(C++20)
(C++20)
通用工具
函數對象
位操縱
(C++20)
C 風格的位操縱
(C++26)
bitset
hash
(C++11)
關係運算符
(C++20 棄用)
rel_ops::operator!=
rel_ops::operator>
rel_ops::operator<=
rel_ops::operator>=
整數比較函數
cmp_equal
cmp_less
cmp_less_than
(C++20)
(C++20)
(C++20)
cmp_not_equal
cmp_greater
cmp_greater_than
(C++20)
(C++20)
(C++20)
in_range
(C++20)
交換
與
類型運算
swap
ranges::swap
(C++20)
exchange
(C++14)
declval
(C++11)
to_underlying
(C++23)
forward
(C++11)
forward_like
(C++23)
move
(C++11)
move_if_noexcept
(C++11)
as_const
(C++17)
常用詞彙類型
pair
tuple
(C++11)
optional
(C++17)
any
(C++17)
variant
(C++17)
tuple_size
(C++11)
tuple_element
(C++11)
apply
(C++17)
make_from_tuple
(C++17)
expected
(C++23)
[編輯]
診斷庫
異常處理
exception
uncaught_exception
uncaught_exceptions
(
until 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
(
until C++17*
)
unexpected_handler
(
until C++17*
)
get_unexpected
(
until C++17*
)
set_unexpected
(
until C++17*
)
錯誤號
錯誤碼
errno
斷言
assert
異常類別
logic_error
invalid_argument
domain_error
length_error
out_of_range
runtime_error
range_error
overflow_error
underflow_error
tx_exception
(TM TS)
系統錯誤
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)
棧蹤跡
stacktrace_entry
(C++23)
basic_stacktrace
(C++23)
調試支持
is_debugger_present
(C++26)
breakpoint_if_debugging
(C++26)
breakpoint
(C++26)
[編輯]
std::system_error
成員函數
system_error::system_error
system_error::operator=
system_error::code
system_error::what
[編輯]
virtual
const
char
*
what
(
)
const
;
(C++11 起)
返回的解釋字符串.
原文:
Returns the explanatory string.
文本通過
谷歌翻譯
機器翻譯。
你可以幫忙校正和驗證翻譯。點擊
此處
查看指示。
目錄
1
參數
2
返回值
3
例外
4
另請參閱
參數
(無)
原文:
(none)
文本通過
谷歌翻譯
機器翻譯。
你可以幫忙校正和驗證翻譯。點擊
此處
查看指示。
返回值
指向一個空結束的字符串解釋信息.
原文:
Pointer to a null-terminated string with explanatory information.
文本通過
谷歌翻譯
機器翻譯。
你可以幫忙校正和驗證翻譯。點擊
此處
查看指示。
例外
noexcept
說明:
noexcept
另請參閱
code
返回錯誤碼
(公開成員函數)
[編輯]
1個分類
:
無條件 noexcept