std::errc
提供: cppreference.com
|
|
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
| Defined in header <system_error>
|
||
| enum class errc; |
(C++11およびそれ以降) | |
スコープの列挙
std::errcはPOSIXのエラーコードに対応するポータブルエラー条件の値を定義します. Original:
The scoped enumeration
std::errc defines the values of portable error conditions that correspond to the POSIX error codes. The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目次 |
[編集] メンバー定数
| 定数
Original: Constant The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Explanation |
address_family_not_supported
|
POSIXのコードEAFNOSUPPORTに対応するエラー状態
Original: error condition corresponding to POSIX code EAFNOSUPPORT The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
address_in_use
|
POSIXのコードEADDRINUSEに対応するエラー状態
Original: error condition corresponding to POSIX code EADDRINUSE The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
address_not_available
|
POSIXのコードEADDRNOTAVAILに対応するエラー状態
Original: error condition corresponding to POSIX code EADDRNOTAVAIL The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
already_connected
|
POSIXのコードEISCONNに対応するエラー状態
Original: error condition corresponding to POSIX code EISCONN The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
argument_list_too_long
|
POSIXのコードE2BIGに対応するエラー状態
Original: error condition corresponding to POSIX code E2BIG The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
argument_out_of_domain
|
POSIXのコードEDOMに対応するエラー状態
Original: error condition corresponding to POSIX code EDOM The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
bad_address
|
POSIXのコードEFAULTに対応するエラー状態
Original: error condition corresponding to POSIX code EFAULT The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
bad_file_descriptor
|
POSIXのコードEBADFに対応するエラー状態
Original: error condition corresponding to POSIX code EBADF The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
bad_message
|
POSIXのコードEBADMSGに対応するエラー状態
Original: error condition corresponding to POSIX code EBADMSG The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
broken_pipe
|
POSIXのコードEPIPEに対応するエラー状態
Original: error condition corresponding to POSIX code EPIPE The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
connection_aborted
|
POSIXのコードに対応するエラー条件がECONNABORTED
Original: error condition corresponding to POSIX code ECONNABORTED The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
connection_already_in_progress
|
POSIXのコードEALREADYに対応するエラー状態
Original: error condition corresponding to POSIX code EALREADY The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
connection_refused
|
POSIXのコードに対応するエラー条件がECONNREFUSED
Original: error condition corresponding to POSIX code ECONNREFUSED The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
connection_reset
|
POSIXのコードECONNRESETに対応するエラー状態
Original: error condition corresponding to POSIX code ECONNRESET The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
cross_device_link
|
POSIXのコードEXDEVに対応するエラー状態
Original: error condition corresponding to POSIX code EXDEV The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
destination_address_required
|
POSIXのコードEDESTADDRREQに対応するエラー状態
Original: error condition corresponding to POSIX code EDESTADDRREQ The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
device_or_resource_busy
|
POSIXのコードEBUSYに対応するエラー状態
Original: error condition corresponding to POSIX code EBUSY The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
directory_not_empty
|
POSIXのコードENOTEMPTYに対応するエラー状態
Original: error condition corresponding to POSIX code ENOTEMPTY The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
executable_format_error
|
POSIXのコードENOEXECに対応するエラー状態
Original: error condition corresponding to POSIX code ENOEXEC The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
file_exists
|
POSIXのコードEEXISTに対応するエラー状態
Original: error condition corresponding to POSIX code EEXIST The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
file_too_large
|
POSIXのコードEFBIGに対応するエラー状態
Original: error condition corresponding to POSIX code EFBIG The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
filename_too_long
|
POSIXのコードENAMETOOLONGに対応するエラー状態
Original: error condition corresponding to POSIX code ENAMETOOLONG The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
function_not_supported
|
POSIXのコードENOSYSに対応するエラー状態
Original: error condition corresponding to POSIX code ENOSYS The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
host_unreachable
|
POSIXのコードEHOSTUNREACHに対応するエラー状態
Original: error condition corresponding to POSIX code EHOSTUNREACH The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
identifier_removed
|
POSIXのコードにEIDRM対応するエラー状態
Original: error condition corresponding to POSIX code EIDRM The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
illegal_byte_sequence
|
POSIXのコードEILSEQに対応するエラー状態
Original: error condition corresponding to POSIX code EILSEQ The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
inappropriate_io_control_operation
|
POSIXのコードENOTTYに対応するエラー状態
Original: error condition corresponding to POSIX code ENOTTY The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
interrupted
|
POSIXのコードEINTRに対応するエラー状態
Original: error condition corresponding to POSIX code EINTR The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
invalid_argument
|
POSIXのコードをEINVALに対応するエラー状態
Original: error condition corresponding to POSIX code EINVAL The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
invalid_seek
|
POSIXのコードESPIPEに対応するエラー状態
Original: error condition corresponding to POSIX code ESPIPE The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
io_error
|
POSIXのコードEIOに対応するエラー状態
Original: error condition corresponding to POSIX code EIO The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
is_a_directory
|
POSIXのコードEISDIRに対応するエラー状態
Original: error condition corresponding to POSIX code EISDIR The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
message_size
|
POSIXのコードEMSGSIZEに対応するエラー状態
Original: error condition corresponding to POSIX code EMSGSIZE The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
network_down
|
POSIXのコードENETDOWNに対応するエラー状態
Original: error condition corresponding to POSIX code ENETDOWN The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
network_reset
|
POSIXのコードENETRESETエラー番号に対応するエラー状態
Original: error condition corresponding to POSIX code ENETRESET The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
network_unreachable
|
POSIXのコードENETUNREACHに対応するエラー状態
Original: error condition corresponding to POSIX code ENETUNREACH The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_buffer_space
|
POSIXのコードENOBUFSに対応するエラー状態
Original: error condition corresponding to POSIX code ENOBUFS The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_child_process
|
POSIXのコードECHILDに対応するエラー状態
Original: error condition corresponding to POSIX code ECHILD The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_link
|
POSIXのコードENOLINKに対応するエラー状態
Original: error condition corresponding to POSIX code ENOLINK The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_lock_available
|
POSIXのコードENOLCKに対応するエラー状態
Original: error condition corresponding to POSIX code ENOLCK The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_message_available
|
POSIXのコードENODATAに対応するエラー状態
Original: error condition corresponding to POSIX code ENODATA The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_message
|
POSIXのコードENOMSGに対応するエラー状態
Original: error condition corresponding to POSIX code ENOMSG The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_protocol_option
|
POSIXのコードENOPROTOOPTに対応するエラー状態
Original: error condition corresponding to POSIX code ENOPROTOOPT The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_space_on_device
|
POSIXのコードENOSPCに対応するエラー状態
Original: error condition corresponding to POSIX code ENOSPC The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_stream_resources
|
POSIXのコードENOSRに対応するエラー状態
Original: error condition corresponding to POSIX code ENOSR The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_such_device_or_address
|
POSIXのコードENXIOに対応するエラー状態
Original: error condition corresponding to POSIX code ENXIO The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_such_device
|
POSIXのコードENODEVに対応するエラー状態
Original: error condition corresponding to POSIX code ENODEV The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_such_file_or_directory
|
POSIXのコードENOENTに対応するエラー状態
Original: error condition corresponding to POSIX code ENOENT The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_such_process
|
POSIXのコードESRCHに対応するエラー状態
Original: error condition corresponding to POSIX code ESRCH The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
not_a_directory
|
POSIXのコードENOTDIRに対応するエラー状態
Original: error condition corresponding to POSIX code ENOTDIR The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
not_a_socket
|
POSIXのコードENOTSOCKに対応するエラー状態
Original: error condition corresponding to POSIX code ENOTSOCK The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
not_a_stream
|
POSIXのコードENOSTRに対応するエラー状態
Original: error condition corresponding to POSIX code ENOSTR The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
not_connected
|
POSIXのコードENOTCONNに対応するエラー状態
Original: error condition corresponding to POSIX code ENOTCONN The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
not_enough_memory
|
POSIXのコードENOMEMに対応するエラー状態
Original: error condition corresponding to POSIX code ENOMEM The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
not_supported
|
POSIXのコードENOTSUPに対応するエラー状態
Original: error condition corresponding to POSIX code ENOTSUP The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
operation_canceled
|
POSIXのコードに対応するエラー条件がECANCELED
Original: error condition corresponding to POSIX code ECANCELED The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
operation_in_progress
|
POSIXのコードEINPROGRESSに対応するエラー状態
Original: error condition corresponding to POSIX code EINPROGRESS The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
operation_not_permitted
|
POSIXのコードのEPERMに対応するエラー状態
Original: error condition corresponding to POSIX code EPERM The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
operation_not_supported
|
POSIXのコードEOPNOTSUPPに対応するエラー状態
Original: error condition corresponding to POSIX code EOPNOTSUPP The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
operation_would_block
|
POSIXのコードにEWOULDBLOCK対応するエラー状態
Original: error condition corresponding to POSIX code EWOULDBLOCK The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
owner_dead
|
POSIXのコードEOWNERDEADに対応するエラー状態
Original: error condition corresponding to POSIX code EOWNERDEAD The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
permission_denied
|
POSIXのコードEACCESに対応するエラー状態
Original: error condition corresponding to POSIX code EACCES The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
protocol_error
|
POSIXのコードEPROTOに対応するエラー状態
Original: error condition corresponding to POSIX code EPROTO The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
protocol_not_supported
|
POSIXのコードEPROTONOSUPPORTに対応するエラー状態
Original: error condition corresponding to POSIX code EPROTONOSUPPORT The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
read_only_file_system
|
POSIXのコードEROFSに対応するエラー状態
Original: error condition corresponding to POSIX code EROFS The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
resource_deadlock_would_occur
|
POSIXのコードEDEADLKに対応するエラー状態
Original: error condition corresponding to POSIX code EDEADLK The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
resource_unavailable_try_again
|
POSIXのコードEAGAINに対応するエラー状態
Original: error condition corresponding to POSIX code EAGAIN The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
result_out_of_range
|
POSIXのコードERANGEに対応するエラー状態
Original: error condition corresponding to POSIX code ERANGE The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
state_not_recoverable
|
ENOTRECOVERABLE POSIXのコードに対応するエラー状態
Original: error condition corresponding to POSIX code ENOTRECOVERABLE The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
stream_timeout
|
POSIXのコードETIMEに対応するエラー状態
Original: error condition corresponding to POSIX code ETIME The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
text_file_busy
|
POSIXのコードETXTBSYに対応するエラー状態
Original: error condition corresponding to POSIX code ETXTBSY The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
timed_out
|
POSIXのコードETIMEDOUTに対応するエラー状態
Original: error condition corresponding to POSIX code ETIMEDOUT The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
too_many_files_open_in_system
|
POSIXのコードENFILEに対応するエラー状態
Original: error condition corresponding to POSIX code ENFILE The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
too_many_files_open
|
POSIXのコードEMFILEに対応するエラー状態
Original: error condition corresponding to POSIX code EMFILE The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
too_many_links
|
POSIXのコードEMLINKに対応するエラー状態
Original: error condition corresponding to POSIX code EMLINK The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
too_many_symbolic_link_levels
|
POSIXのコードELOOPに対応するエラー状態
Original: error condition corresponding to POSIX code ELOOP The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
value_too_large
|
POSIXのコードEOVERFLOWに対応するエラー状態
Original: error condition corresponding to POSIX code EOVERFLOW The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
wrong_protocol_type
|
POSIXのコードEPROTOTYPEに対応するエラー状態
Original: error condition corresponding to POSIX code EPROTOTYPE The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[編集] ヘルパークラス
| エラー条件としてstd::is_error_condition_enum値を識別する型形質std::errcを拡張します Original: extends the type trait std::is_error_condition_enum to identify the the std::errc values as error conditions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) | |
[編集] 非メンバ関数
| (C++11) |
std::errcエラー·コードを作成します Original: constructs an std::errc error code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) |
| std::errcエラー条件を構築します Original: constructs an std::errc error condition The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
[編集] 例
このコードを実行します
#include <iostream> #include <system_error> #include <thread> int main() { try { std::thread().detach(); // detaching a not-a-thread } catch (const std::system_error& e) { std::cout << "Caught a system_error\n"; if(e.code() == std::errc::invalid_argument) std::cout << "The error condition is std::errc::invalid_argument\n"; std::cout << "the error description is " << e.what() << '\n'; } }
出力:
Caught a system_error The error condition is std::errc::invalid_argument the error description is Invalid argument
[編集] 参照
| (C++11) |
プラットフォーム依存のエラーコードを取得しています Original: holds a platform-dependent error code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラス) |
| (C++11) |
携帯用のエラーコードを取得しています Original: holds a portable error code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラス) |

