errno
--- 標準 errno 系統(tǒng)符號?
This module makes available standard errno
system symbols. The value of each
symbol is the corresponding integer value. The names and descriptions are
borrowed from linux/include/errno.h
, which should be
all-inclusive.
- errno.errorcode?
提供從 errno 值到底層系統(tǒng)中字符串名稱的映射的字典。例如,
errno.errorcode[errno.EPERM]
映射為'EPERM'
。
如果要將數(shù)字的錯誤代碼轉換為錯誤信息,請使用 os.strerror()
。
在下面的列表中,當前平臺上沒有使用的符號沒有被本模塊定義。 已定義的符號的具體列表可參見 errno.errorcode.keys()
。 可用的符號包括:
- errno.EPERM?
Operation not permitted. This error is mapped to the exception
PermissionError
.
- errno.ENOENT?
No such file or directory. This error is mapped to the exception
FileNotFoundError
.
- errno.ESRCH?
No such process. This error is mapped to the exception
ProcessLookupError
.
- errno.EINTR?
Interrupted system call. This error is mapped to the exception
InterruptedError
.
- errno.EIO?
I/O 錯誤
- errno.ENXIO?
無此設備或地址
- errno.E2BIG?
參數(shù)列表過長
- errno.ENOEXEC?
執(zhí)行格式錯誤
- errno.EBADF?
錯誤的文件號
- errno.ECHILD?
No child processes. This error is mapped to the exception
ChildProcessError
.
- errno.EAGAIN?
Try again. This error is mapped to the exception
BlockingIOError
.
- errno.ENOMEM?
內存不足
- errno.EACCES?
Permission denied. This error is mapped to the exception
PermissionError
.
- errno.EFAULT?
錯誤的地址
- errno.ENOTBLK?
需要塊設備
- errno.EBUSY?
設備或資源忙
- errno.EEXIST?
File exists. This error is mapped to the exception
FileExistsError
.
- errno.EXDEV?
跨設備鏈接
- errno.ENODEV?
無此設備
- errno.ENOTDIR?
Not a directory. This error is mapped to the exception
NotADirectoryError
.
- errno.EISDIR?
Is a directory. This error is mapped to the exception
IsADirectoryError
.
- errno.EINVAL?
無效的參數(shù)
- errno.ENFILE?
文件表溢出
- errno.EMFILE?
打開的文件過多
- errno.ENOTTY?
不是打字機
- errno.ETXTBSY?
文本文件忙
- errno.EFBIG?
文件過大
- errno.ENOSPC?
設備已無可用空間
- errno.ESPIPE?
非法查找
- errno.EROFS?
只讀文件系統(tǒng)
- errno.EMLINK?
鏈接過多
- errno.EPIPE?
Broken pipe. This error is mapped to the exception
BrokenPipeError
.
- errno.EDOM?
數(shù)學參數(shù)超出函數(shù)范圍
- errno.ERANGE?
數(shù)學運算結果無法表示
- errno.EDEADLK?
將發(fā)生資源死鎖
- errno.ENAMETOOLONG?
文件名過長
- errno.ENOLCK?
沒有可用的記錄鎖
- errno.ENOSYS?
功能未實現(xiàn)
- errno.ENOTEMPTY?
目錄非空
- errno.ELOOP?
遇到過多的符號鏈接
- errno.EWOULDBLOCK?
Operation would block. This error is mapped to the exception
BlockingIOError
.
- errno.ENOMSG?
沒有所需類型的消息
- errno.EIDRM?
標識符被移除
- ECHRNG?
信道編號超出范圍
- errno.EL2NSYNC?
級別 2 未同步
- errno.EL3HLT?
級別 3 已停止
- errno.EL3RST?
級別 3 重置
- errno.ELNRNG?
鏈接編號超出范圍
- errno.EUNATCH?
未附加協(xié)議驅動
- errno.ENOCSI?
沒有可用的 CSI 結構
- errno.EL2HLT?
級別 2 已停止
- errno.EBADE?
無效的交換
- errno.EBADR?
無效的請求描述符
- errno.EXFULL?
交換已滿
- errno.ENOANO?
沒有陽極
- errno.EBADRQC?
無效的請求碼·
- errno.EBADSLT?
無效的槽位
- errno.EDEADLOCK?
文件鎖定死鎖錯誤
- errno.EBFONT?
錯誤的字體文件格式
- errno.ENOSTR?
設備不是流
- errno.ENODATA?
沒有可用的數(shù)據(jù)
- errno.ETIME?
計時器已到期
- errno.ENOSR?
流資源不足
- errno.ENONET?
機器不在網(wǎng)絡上
- errno.ENOPKG?
包未安裝
- errno.EREMOTE?
對象是遠程的
- errno.ENOLINK?
鏈接已被切斷
- errno.EADV?
廣告錯誤
- errno.ESRMNT?
掛載錯誤
- errno.ECOMM?
發(fā)送時通訊錯誤
- errno.EPROTO?
協(xié)議錯誤
- errno.EMULTIHOP?
已嘗試多跳
- errno.EDOTDOT?
RFS 專屬錯誤
- errno.EBADMSG?
非數(shù)據(jù)消息
- errno.EOVERFLOW?
值相對于已定義數(shù)據(jù)類型過大
- errno.ENOTUNIQ?
名稱在網(wǎng)絡上不唯一
- errno.EBADFD?
文件描述符處于錯誤狀態(tài)
- errno.EREMCHG?
遠端地址已改變
- errno.ELIBACC?
無法訪問所需的共享庫
- errno.ELIBBAD?
訪問已損壞的共享庫
- errno.ELIBSCN?
a.out 中的 .lib 部分已損壞
- errno.ELIBMAX?
嘗試鏈接過多的共享庫
- errno.ELIBEXEC?
無法直接執(zhí)行共享庫
- errno.EILSEQ?
非法字節(jié)序列
- errno.ERESTART?
已中斷系統(tǒng)調用需要重啟
- errno.ESTRPIPE?
流管道錯誤
- errno.EUSERS?
用戶過多
- errno.ENOTSOCK?
在非套接字上執(zhí)行套接字操作
- errno.EDESTADDRREQ?
需要目標地址
- errno.EMSGSIZE?
消息過長
- errno.EPROTOTYPE?
套接字的協(xié)議類型錯誤
- errno.ENOPROTOOPT?
協(xié)議不可用
- errno.EPROTONOSUPPORT?
協(xié)議不受支持
- errno.ESOCKTNOSUPPORT?
套接字類型不受支持
- errno.EOPNOTSUPP?
操作在傳輸端點上不受支持
- errno.EPFNOSUPPORT?
協(xié)議族不受支持
- errno.EAFNOSUPPORT?
地址族不受協(xié)議支持
- errno.EADDRINUSE?
地址已被使用
- errno.EADDRNOTAVAIL?
無法分配要求的地址
- errno.ENETDOWN?
網(wǎng)絡已斷開
- errno.ENETUNREACH?
網(wǎng)絡不可達
- errno.ENETRESET?
網(wǎng)絡因重置而斷開連接
- errno.ECONNABORTED?
Software caused connection abort. This error is mapped to the exception
ConnectionAbortedError
.
- errno.ECONNRESET?
Connection reset by peer. This error is mapped to the exception
ConnectionResetError
.
- errno.ENOBUFS?
沒有可用的緩沖區(qū)空間
- errno.EISCONN?
傳輸端點已連接
- errno.ENOTCONN?
傳輸端點未連接
- errno.ESHUTDOWN?
Cannot send after transport endpoint shutdown. This error is mapped to the exception
BrokenPipeError
.
- errno.ETOOMANYREFS?
引用過多:無法拼接
- errno.ETIMEDOUT?
Connection timed out. This error is mapped to the exception
TimeoutError
.
- errno.ECONNREFUSED?
Connection refused. This error is mapped to the exception
ConnectionRefusedError
.
- errno.EHOSTDOWN?
主機已關閉
- errno.EHOSTUNREACH?
沒有到主機的路由
- errno.EALREADY?
Operation already in progress. This error is mapped to the exception
BlockingIOError
.
- errno.EINPROGRESS?
Operation now in progress. This error is mapped to the exception
BlockingIOError
.
- errno.ESTALE?
過期的 NFS 文件句柄
- errno.EUCLEAN?
結構需要清理
- errno.ENOTNAM?
不是 XENIX 命名類型文件
- errno.ENAVAIL?
沒有可用的 XENIX 信標
- errno.EISNAM?
是命名類型文件
- errno.EREMOTEIO?
遠程 I/O 錯誤
- errno.EDQUOT?
超出配額
- errno.EQFULL?
Interface output queue is full
3.11 新版功能.