名前空間
変種
操作

Error numbers

提供: 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)
 
<cerrno>で定義されているマクロのそれぞれがintのほとんどをマッチング、型POSIX error codesを持つ整数定数式で、正の値を持つそれぞれに展開されます。以下の定数が定義されています(実装は、限り、彼らは数字または大文字に続いて'E'で始まるように、よりを定義するかもしれません)
Original:
Each of the macros defined in <cerrno> expands to integer constant expressions with type int, each with a positive value, matching most of the POSIX error codes. The following constants are defined (the implementation may define more, as long as they begin with 'E' followed by digits or uppercase letters)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Defined in header <cerrno>
E2BIG
(C++11)
あまりにも長い引数リスト
Original:
Argument list too long
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EACCES
(C++11)
アクセスが拒否されました
Original:
Permission denied
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EADDRINUSE
(C++11)
使用中のアドレス
Original:
Address in use
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EADDRNOTAVAIL
(C++11)
利用できないアドレス
Original:
Address not available
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EAFNOSUPPORT
(C++11)
アドレスファミリがサポートされていません
Original:
Address family not supported
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EAGAIN
(C++11)
リソース使用不可は、もう一度やり直してください
Original:
Resource unavailable, try again
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EALREADY
(C++11)
すでに進行中の接続
Original:
Connection already in progress
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EBADF
(C++11)
不正なファイル記述子
Original:
Bad file descriptor
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EBADMSG
(C++11)
不正なメッセージ
Original:
Bad message
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EBUSY
(C++11)
デバイスまたはリソースがビジー状態です
Original:
Device or resource busy
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ECANCELED
(C++11)
操作はキャンセルされました
Original:
Operation canceled
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ECHILD
(C++11)
子プロセスがありません
Original:
No child processes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ECONNABORTED
(C++11)
接続が中断されました
Original:
Connection aborted
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ECONNREFUSED
(C++11)
接続が拒否されました
Original:
Connection refused
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ECONNRESET
(C++11)
接続がリセットされました
Original:
Connection reset
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EDEADLK
(C++11)
リソースのデッドロックが発生します
Original:
Resource deadlock would occur
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EDESTADDRREQ
(C++11)
宛先アドレスが必要です
Original:
Destination address required
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EDOM
関数の定義域のうち、数学は引数
Original:
Mathematics argument out of domain of function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EEXIST
(C++11)
ファイルが存在します
Original:
File exists
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EFAULT
(C++11)
不正なアドレス
Original:
Bad address
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EFBIG
(C++11)
あまりに大きなファイル
Original:
File too large
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EHOSTUNREACH
(C++11)
ホストが到達不能である
Original:
Host is unreachable
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EIDRM
(C++11)
識別子は削除されます
Original:
Identifier removed
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EILSEQ
(C++11)
不正なバイトシーケンス
Original:
Illegal byte sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EINPROGRESS
(C++11)
進行中の操作
Original:
Operation in progress
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EINTR
(C++11)
機能を中断しました
Original:
Interrupted function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EINVAL
(C++11)
引数が無効です
Original:
Invalid argument
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EIO
(C++11)
I / Oエラー
Original:
I/O error
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EISCONN
(C++11)
ソケットが接続されています
Original:
Socket is connected
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EISDIR
(C++11)
ディレクトリです
Original:
Is a directory
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ELOOP
(C++11)
シンボリックリンクのレベルが多すぎる
Original:
Too many levels of symbolic links
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EMFILE
(C++11)
大きすぎるファイル記述子の値
Original:
File descriptor value too large
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EMLINK
(C++11)
リンクが多すぎる
Original:
Too many links
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EMSGSIZE
(C++11)
大きすぎるメッセージ
Original:
Message too large
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENAMETOOLONG
(C++11)
あまりに長いファイル名
Original:
Filename too long
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENETDOWN
(C++11)
ネットワークがダウンしています
Original:
Network is down
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENETRESET
(C++11)
接続がネットワーク側から中断された
Original:
Connection aborted by network
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENETUNREACH
(C++11)
ネットワークに到達できません
Original:
Network unreachable
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENFILE
(C++11)
システムで開いているファイルが多すぎます
Original:
Too many files open in system
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENOBUFS
(C++11)
使用可能なバッファスペースがありません
Original:
No buffer space available
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENODATA
(C++11)
どのようなメッセージキューを読み取っSTREAMヘッドで提供されていません
Original:
No message is available on the STREAM head read queue
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENODEV
(C++11)
そのようなデバイスはありません
Original:
No such device
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENOENT
(C++11)
そのようなファイルやディレクトリはありません
Original:
No such file or directory
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENOEXEC
(C++11)
実行ファイルのフォーマットエラー
Original:
Executable file format error
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENOLCK
(C++11)
使用可能なロックがありません
Original:
No locks available
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENOLINK
(C++11)
リンクが切断されている
Original:
Link has been severed
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENOMEM
(C++11)
十分なスペースがありません
Original:
Not enough space
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENOMSG
(C++11)
目的のタイプのメッセージはありません
Original:
No message of the desired type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENOPROTOOPT
(C++11)
プロトコルは使用できません
Original:
Protocol not available
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENOSPC
(C++11)
デバイスに空きスペースを入れないこと
Original:
No space left on device
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENOSR
(C++11)
いいえストリームリソースはありません
Original:
No STREAM resources
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENOSTR
(C++11)
ストリーム型ではありません
Original:
Not a STREAM
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENOSYS
(C++11)
機能はサポートされません
Original:
Function not supported
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENOTCONN
(C++11)
ソケットが接続されていません
Original:
The socket is not connected
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENOTDIR
(C++11)
ディレクトリではありません
Original:
Not a directory
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENOTEMPTY
(C++11)
ディレクトリが空ではない
Original:
Directory not empty
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENOTRECOVERABLE
(C++11)
状態回復でき​​ません
Original:
State not recoverable
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENOTSOCK
(C++11)
ず、ソケット
Original:
Not a socket
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENOTSUP
(C++11)
サポートされていません
Original:
Not supported
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENOTTY
(C++11)
不適切なI / O制御操作
Original:
Inappropriate I/O control operation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ENXIO
(C++11)
そのようなデバイスはありませんまたはアドレス
Original:
No such device or address
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EOPNOTSUPP
(C++11)
操作がソケットでサポートされていません
Original:
Operation not supported on socket
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EOVERFLOW
(C++11)
データ型に格納するには大きすぎる値
Original:
Value too large to be stored in data type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EOWNERDEAD
(C++11)
前の所有者が死亡した
Original:
Previous owner died
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EPERM
(C++11)
操作は許可されません
Original:
Operation not permitted
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EPIPE
(C++11)
壊れたパイプ
Original:
Broken pipe
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EPROTO
(C++11)
プロトコルエラー
Original:
Protocol error
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EPROTONOSUPPORT
(C++11)
プロトコルがサポートされていません
Original:
Protocol not supported
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EPROTOTYPE
(C++11)
ソケットのプロトコルの型が間違っています
Original:
Protocol wrong type for socket
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ERANGE
あまりにも大きな結果
Original:
Result too large
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EROFS
(C++11)
読み取り専用のファイルシステムです
Original:
Read-only file system
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ESPIPE
(C++11)
無効を求める
Original:
Invalid seek
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ESRCH
(C++11)
そのようなプロセスはありません
Original:
No such process
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ETIME
(C++11)
ストリームのioctl()のタイムアウト
Original:
Stream ioctl() timeout
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ETIMEDOUT
(C++11)
接続がタイムアウトしました
Original:
Connection timed out
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
ETXTBSY
(C++11)
テキストフ​​ァイルがビジーです
Original:
Text file busy
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EWOULDBLOCK
(C++11)
操作はブロックされます
Original:
Operation would block
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EXDEV
(C++11)
クロスデバイスリンクです
Original:
Cross-device link
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
すべての値はEOPNOTSUPPのその値を除いて一意である必要があるとENOTSUPは、同一のものとEAGAINEWOULDBLOCKの値が同一であってもよい
Original:
All values are required to be unique except that the values of EOPNOTSUPP and ENOTSUP may be identical and the values of EAGAIN and EWOULDBLOCK may be identical
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集]

[edit]
#include <iostream>
#include <cmath>
#include <cerrno>
#include <cstring>
 
int main()
{
    double not_a_number = std::log(-1.0);
    if (errno == EDOM) {
        std::cout << "log(-1) failed: " << std::strerror(errno) << '\n';
    }
}

Output:

log(-1) failed: Numerical argument out of domain

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

(C++11)
すべての標準的なstd::error_conditionマクロ定数をリスト<cerrno>列挙
Original:
the std::error_condition enumeration listing all standard <cerrno> macro constants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(クラス) [edit]
POSIX準拠のスレッドローカルなエラー番号variable
(マクロ変数)に展開されるマクロ
Original:
macro which expands to POSIX-compatible thread-local error number variable
(マクロ変数)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
stderrに現在のエラーの対応する文字列が表示されます
Original:
displays a character string corresponding of the current error to stderr
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
指定したエラーコードのテキストバージョンを返します
Original:
returns a text version of a given 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]