|
| 1 | +--- |
| 2 | +tags: |
| 3 | + - Topic |
| 4 | + - Error |
| 5 | +--- |
| 6 | + |
| 7 | +# error |
| 8 | + |
| 9 | +## Postgres |
| 10 | + |
| 11 | +- https://github.com/jackc/pgerrcode/blob/master/errcode.go |
| 12 | +- https://www.postgresql.org/docs/current/errcodes-appendix.html |
| 13 | +- https://github.com/postgres/postgres/blob/master/src/backend/utils/errcodes.txt |
| 14 | + |
| 15 | +## libc |
| 16 | + |
| 17 | +```bash |
| 18 | +apk add moreutils |
| 19 | +errno -l |
| 20 | +``` |
| 21 | + |
| 22 | +| Error | NO | Description | |
| 23 | +| --------------- | --- | ------------------------------------------- | |
| 24 | +| EPERM | 1 | Operation not permitted | |
| 25 | +| ENOENT | 2 | No such file or directory | |
| 26 | +| ESRCH | 3 | No such process | |
| 27 | +| EINTR | 4 | Interrupted system call | |
| 28 | +| EIO | 5 | I/O error | |
| 29 | +| ENXIO | 6 | No such device or address | |
| 30 | +| E2BIG | 7 | Argument list too long | |
| 31 | +| ENOEXEC | 8 | Exec format error | |
| 32 | +| EBADF | 9 | Bad file descriptor | |
| 33 | +| ECHILD | 10 | No child process | |
| 34 | +| EAGAIN | 11 | Resource temporarily unavailable | |
| 35 | +| EWOULDBLOCK | 11 | Resource temporarily unavailable | |
| 36 | +| ENOMEM | 12 | Out of memory | |
| 37 | +| EACCES | 13 | Permission denied | |
| 38 | +| EFAULT | 14 | Bad address | |
| 39 | +| ENOTBLK | 15 | Block device required | |
| 40 | +| EBUSY | 16 | Resource busy | |
| 41 | +| EEXIST | 17 | File exists | |
| 42 | +| EXDEV | 18 | Cross-device link | |
| 43 | +| ENODEV | 19 | No such device | |
| 44 | +| ENOTDIR | 20 | Not a directory | |
| 45 | +| EISDIR | 21 | Is a directory | |
| 46 | +| EINVAL | 22 | Invalid argument | |
| 47 | +| ENFILE | 23 | Too many open files in system | |
| 48 | +| EMFILE | 24 | No file descriptors available | |
| 49 | +| ENOTTY | 25 | Not a tty | |
| 50 | +| ETXTBSY | 26 | Text file busy | |
| 51 | +| EFBIG | 27 | File too large | |
| 52 | +| ENOSPC | 28 | No space left on device | |
| 53 | +| ESPIPE | 29 | Invalid seek | |
| 54 | +| EROFS | 30 | Read-only file system | |
| 55 | +| EMLINK | 31 | Too many links | |
| 56 | +| EPIPE | 32 | Broken pipe | |
| 57 | +| EDOM | 33 | Domain error | |
| 58 | +| ERANGE | 34 | Result not representable | |
| 59 | +| EDEADLK | 35 | Resource deadlock would occur | |
| 60 | +| EDEADLOCK | 35 | Resource deadlock would occur | |
| 61 | +| ENAMETOOLONG | 36 | File name too long | |
| 62 | +| ENOLCK | 37 | No locks available | |
| 63 | +| ENOSYS | 38 | Function not implemented | |
| 64 | +| ENOTEMPTY | 39 | Directory not empty | |
| 65 | +| ELOOP | 40 | Too many symbolic links | |
| 66 | +| ENOMSG | 42 | No message of desired type | |
| 67 | +| EIDRM | 43 | Identifier removed | |
| 68 | +| ECHRNG | 44 | Channel number out of range | |
| 69 | +| EL2NSYNC | 45 | Level 2 not synchronized | |
| 70 | +| EL3HLT | 46 | Level 3 halted | |
| 71 | +| EL3RST | 47 | Level 3 reset | |
| 72 | +| ELNRNG | 48 | Link number out of range | |
| 73 | +| EUNATCH | 49 | Protocol driver not attached | |
| 74 | +| ENOCSI | 50 | No CSI structure available | |
| 75 | +| EL2HLT | 51 | Level 2 halted | |
| 76 | +| EBADE | 52 | Invalid exchange | |
| 77 | +| EBADR | 53 | Invalid request descriptor | |
| 78 | +| EXFULL | 54 | Exchange full | |
| 79 | +| ENOANO | 55 | No anode | |
| 80 | +| EBADRQC | 56 | Invalid request code | |
| 81 | +| EBADSLT | 57 | Invalid slot | |
| 82 | +| EBFONT | 59 | Bad font file format | |
| 83 | +| ENOSTR | 60 | Device not a stream | |
| 84 | +| ENODATA | 61 | No data available | |
| 85 | +| ETIME | 62 | Timer expired | |
| 86 | +| ENOSR | 63 | Out of streams resources | |
| 87 | +| ENONET | 64 | Machine is not on the network | |
| 88 | +| ENOPKG | 65 | Package not installed | |
| 89 | +| EREMOTE | 66 | Object is remote | |
| 90 | +| ENOLINK | 67 | Link has been severed | |
| 91 | +| EADV | 68 | Advertise error | |
| 92 | +| ESRMNT | 69 | Srmount error | |
| 93 | +| ECOMM | 70 | Communication error on send | |
| 94 | +| EPROTO | 71 | Protocol error | |
| 95 | +| EMULTIHOP | 72 | Multihop attempted | |
| 96 | +| EDOTDOT | 73 | RFS specific error | |
| 97 | +| EBADMSG | 74 | Not a data message | |
| 98 | +| EOVERFLOW | 75 | Value too large | |
| 99 | +| ENOTUNIQ | 76 | Name not unique on network | |
| 100 | +| EBADFD | 77 | File descriptor in bad state | |
| 101 | +| EREMCHG | 78 | Remote address changed | |
| 102 | +| ELIBACC | 79 | Can not access a needed shared library | |
| 103 | +| ELIBBAD | 80 | Accessing a corrupted shared library | |
| 104 | +| ELIBSCN | 81 | .lib section in a.out corrupted | |
| 105 | +| ELIBMAX | 82 | Too many shared libraries | |
| 106 | +| ELIBEXEC | 83 | Cannot exec a shared library directly | |
| 107 | +| EILSEQ | 84 | Illegal byte sequence | |
| 108 | +| ERESTART | 85 | Interrupted system call should be restarted | |
| 109 | +| ESTRPIPE | 86 | Streams pipe error | |
| 110 | +| EUSERS | 87 | Too many users | |
| 111 | +| ENOTSOCK | 88 | Socket operation on non-socket | |
| 112 | +| EDESTADDRREQ | 89 | Destination address required | |
| 113 | +| EMSGSIZE | 90 | Message too long | |
| 114 | +| EPROTOTYPE | 91 | Protocol wrong type for socket | |
| 115 | +| ENOPROTOOPT | 92 | Protocol not available | |
| 116 | +| EPROTONOSUPPORT | 93 | Protocol not supported | |
| 117 | +| ESOCKTNOSUPPORT | 94 | Socket type not supported | |
| 118 | +| EOPNOTSUPP | 95 | Operation not supported | |
| 119 | +| ENOTSUP | 95 | Operation not supported | |
| 120 | +| EPFNOSUPPORT | 96 | Protocol family not supported | |
| 121 | +| EAFNOSUPPORT | 97 | Address family not supported | |
| 122 | +| EADDRINUSE | 98 | Address already in use | |
| 123 | +| EADDRNOTAVAIL | 99 | Cannot assign requested address | |
| 124 | +| ENETDOWN | 100 | Network is down | |
| 125 | +| ENETUNREACH | 101 | Network is unreachable | |
| 126 | +| ENETRESET | 102 | Network dropped connection | |
| 127 | +| ECONNABORTED | 103 | Software caused connection abort | |
| 128 | +| ECONNRESET | 104 | Connection reset by peer | |
| 129 | +| ENOBUFS | 105 | No buffer space available | |
| 130 | +| EISCONN | 106 | Transport endpoint is connected | |
| 131 | +| ENOTCONN | 107 | Transport endpoint not connected | |
| 132 | +| ESHUTDOWN | 108 | Cannot send after shutdown | |
| 133 | +| ETOOMANYREFS | 109 | Too many references | |
| 134 | +| ETIMEDOUT | 110 | Connection timed out | |
| 135 | +| ECONNREFUSED | 111 | Connection refused | |
| 136 | +| EHOSTDOWN | 112 | Host is down | |
| 137 | +| EHOSTUNREACH | 113 | No route to host | |
| 138 | +| EALREADY | 114 | Operation already in progress | |
| 139 | +| EINPROGRESS | 115 | Operation now in progress | |
| 140 | +| ESTALE | 116 | Stale file handle | |
| 141 | +| EUCLEAN | 117 | Structure needs cleaning | |
| 142 | +| ENOTNAM | 118 | Not a XENIX named type file | |
| 143 | +| ENAVAIL | 119 | No XENIX semaphores available | |
| 144 | +| EISNAM | 120 | Is a named type file | |
| 145 | +| EREMOTEIO | 121 | Remote I/O error | |
| 146 | +| EDQUOT | 122 | Quota exceeded | |
| 147 | +| ENOMEDIUM | 123 | No medium found | |
| 148 | +| EMEDIUMTYPE | 124 | Wrong medium type | |
| 149 | +| ECANCELED | 125 | Operation canceled | |
| 150 | +| ENOKEY | 126 | Required key not available | |
| 151 | +| EKEYEXPIRED | 127 | Key has expired | |
| 152 | +| EKEYREVOKED | 128 | Key has been revoked | |
| 153 | +| EKEYREJECTED | 129 | Key was rejected by service | |
| 154 | +| EOWNERDEAD | 130 | Owner died | |
| 155 | +| ENOTRECOVERABLE | 131 | State not recoverable | |
| 156 | +| ERFKILL | 132 | Operation not possible due to RF-kill | |
| 157 | +| EHWPOISON | 133 | Memory page has hardware error | |
| 158 | + |
| 159 | +- ERRNO |
| 160 | +- https://github.com/bminor/musl/blob/master/arch/generic/bits/errno.h |
| 161 | +- https://man7.org/linux/man-pages/man3/errno.3.html |
0 commit comments