名前空間
変種
操作

std::errc

提供: cppreference.com
< cpp‎ | error

 
 
ユーティリティライブラリ
支援を入力します (basic types, RTTI, type traits)
動的なメモリ管理
エラー処理
プログラムユーティリティ
可変個引数関数
日付と時刻
関数オブジェクト
initializer_list(C++11)
bitset
hash(C++11)
関係演算子
Original:
Relational operators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
rel_ops::operator!=
rel_ops::operator>
rel_ops::operator<=
rel_ops::operator>=
ペアとタプル
Original:
Pairs and tuples
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
pair
tuple(C++11)
piecewise_construct_t(C++11)
piecewise_construct(C++11)
フォワード、スワップ、および移動
Original:
Swap, forward and move
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
swap
forward(C++11)
move(C++11)
move_if_noexcept(C++11)
declval(C++11)
 
エラー処理
例外処理
Original:
Exception handling
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
exception
uncaught_exception
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)
例外処理の失敗
Original:
Exception handling failures
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
terminate
terminate_handler
get_terminate(C++11)
set_terminate
unexpected(廃止予定)
bad_exception
unexpected_handler(廃止予定)
get_unexpected(C++11)(廃止予定)
set_unexpected(廃止予定)
例外カテゴリ
Original:
Exception categories
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
logic_error
invalid_argument
domain_error
length_error
out_of_range
runtime_error
range_error
overflow_error
underflow_error
エラーコード
Original:
Error codes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
エラーコード
errno
アサーション
Original:
Assertions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
assert
SYSTEM_ERROR施設
Original:
system_error facility
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
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)
 
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.

目次

[編集] メンバー定数

定数
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.

(関数テンプレート)

[編集] 非メンバ関数

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';
    }
}

Output:

Caught a system_error
The error condition is std::errc::invalid_argument
the error description is Invalid argument

[編集] も参照してください

プラットフォーム依存のエラーコードを取得しています
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.

(クラス) [edit]
携帯用のエラーコードを取得しています
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.

(クラス) [edit]