Versions in this module Expand all Collapse all v1 v1.0.1 Apr 30, 2024 Changes in this version + var E2BIG = errors.New(errno.E2BIG, "argument list too long") + var EACCES = errors.New(errno.EACCES, "permission denied") + var EADDRINUSE = errors.New(errno.EADDRINUSE, "address already in use") + var EADDRNOTAVAIL = errors.New(errno.EADDRNOTAVAIL, "cannot assign requested address") + var EADV = errors.New(errno.EADV, "advertise error") + var EAFNOSUPPORT = errors.New(errno.EAFNOSUPPORT, "address family not supported by protocol") + var EAGAIN = errors.New(errno.EAGAIN, "try again") + var EALREADY = errors.New(errno.EALREADY, "operation already in progress") + var EBADE = errors.New(errno.EBADE, "invalid exchange") + var EBADF = errors.New(errno.EBADF, "bad file number") + var EBADFD = errors.New(errno.EBADFD, "file descriptor in bad state") + var EBADMSG = errors.New(errno.EBADMSG, "not a data message") + var EBADR = errors.New(errno.EBADR, "invalid request descriptor") + var EBADRQC = errors.New(errno.EBADRQC, "invalid request code") + var EBADSLT = errors.New(errno.EBADSLT, "invalid slot") + var EBFONT = errors.New(errno.EBFONT, "bad font file format") + var EBUSY = errors.New(errno.EBUSY, "device or resource busy") + var ECANCELED = errors.New(errno.ECANCELED, "operation Canceled") + var ECHILD = errors.New(errno.ECHILD, "no child processes") + var ECHRNG = errors.New(errno.ECHRNG, "channel number out of range") + var ECOMM = errors.New(errno.ECOMM, "communication error on send") + var ECONNABORTED = errors.New(errno.ECONNABORTED, "software caused connection abort") + var ECONNREFUSED = errors.New(errno.ECONNREFUSED, "connection refused") + var ECONNRESET = errors.New(errno.ECONNRESET, "connection reset by peer") + var EDEADLK = errors.New(errno.EDEADLK, "resource deadlock would occur") + var EDEADLOCK = EDEADLK + var EDESTADDRREQ = errors.New(errno.EDESTADDRREQ, "destination address required") + var EDOM = errors.New(errno.EDOM, "math argument out of domain of func") + var EDOTDOT = errors.New(errno.EDOTDOT, "RFS specific error") + var EDQUOT = errors.New(errno.EDQUOT, "quota exceeded") + var EEXIST = errors.New(errno.EEXIST, "file exists") + var EFAULT = errors.New(errno.EFAULT, "bad address") + var EFBIG = errors.New(errno.EFBIG, "file too large") + var EHOSTDOWN = errors.New(errno.EHOSTDOWN, "host is down") + var EHOSTUNREACH = errors.New(errno.EHOSTUNREACH, "no route to host") + var EHWPOISON = errors.New(errno.EHWPOISON, "memory page has hardware error") + var EIDRM = errors.New(errno.EIDRM, "identifier removed") + var EILSEQ = errors.New(errno.EILSEQ, "illegal byte sequence") + var EINPROGRESS = errors.New(errno.EINPROGRESS, "operation now in progress") + var EINTR = errors.New(errno.EINTR, "interrupted system call") + var EINVAL = errors.New(errno.EINVAL, "invalid argument") + var EIO = errors.New(errno.EIO, "I/O error") + var EISCONN = errors.New(errno.EISCONN, "transport endpoint is already connected") + var EISDIR = errors.New(errno.EISDIR, "is a directory") + var EISNAM = errors.New(errno.EISNAM, "is a named type file") + var EKEYEXPIRED = errors.New(errno.EKEYEXPIRED, "key has expired") + var EKEYREJECTED = errors.New(errno.EKEYREJECTED, "key was rejected by service") + var EKEYREVOKED = errors.New(errno.EKEYREVOKED, "key has been revoked") + var EL2HLT = errors.New(errno.EL2HLT, "level 2 halted") + var EL2NSYNC = errors.New(errno.EL2NSYNC, "level 2 not synchronized") + var EL3HLT = errors.New(errno.EL3HLT, "level 3 halted") + var EL3RST = errors.New(errno.EL3RST, "level 3 reset") + var ELIBACC = errors.New(errno.ELIBACC, "can not access a needed shared library") + var ELIBBAD = errors.New(errno.ELIBBAD, "accessing a corrupted shared library") + var ELIBEXEC = errors.New(errno.ELIBEXEC, "cannot exec a shared library directly") + var ELIBMAX = errors.New(errno.ELIBMAX, "attempting to link in too many shared libraries") + var ELIBSCN = errors.New(errno.ELIBSCN, ".lib section in a.out corrupted") + var ELNRNG = errors.New(errno.ELNRNG, "link number out of range") + var ELOOP = errors.New(errno.ELOOP, "too many symbolic links encountered") + var EMEDIUMTYPE = errors.New(errno.EMEDIUMTYPE, "wrong medium type") + var EMFILE = errors.New(errno.EMFILE, "too many open files") + var EMLINK = errors.New(errno.EMLINK, "too many links") + var EMSGSIZE = errors.New(errno.EMSGSIZE, "message too long") + var EMULTIHOP = errors.New(errno.EMULTIHOP, "multihop attempted") + var ENAMETOOLONG = errors.New(errno.ENAMETOOLONG, "file name too long") + var ENAVAIL = errors.New(errno.ENAVAIL, "no XENIX semaphores available") + var ENETDOWN = errors.New(errno.ENETDOWN, "network is down") + var ENETRESET = errors.New(errno.ENETRESET, "network dropped connection because of reset") + var ENETUNREACH = errors.New(errno.ENETUNREACH, "network is unreachable") + var ENFILE = errors.New(errno.ENFILE, "file table overflow") + var ENOANO = errors.New(errno.ENOANO, "no anode") + var ENOATTR = ENODATA + var ENOBUFS = errors.New(errno.ENOBUFS, "no buffer space available") + var ENOCSI = errors.New(errno.ENOCSI, "no CSI structure available") + var ENODATA = errors.New(errno.ENODATA, "no data available") + var ENODEV = errors.New(errno.ENODEV, "no such device") + var ENOENT = errors.New(errno.ENOENT, "no such file or directory") + var ENOEXEC = errors.New(errno.ENOEXEC, "exec format error") + var ENOKEY = errors.New(errno.ENOKEY, "required key not available") + var ENOLCK = errors.New(errno.ENOLCK, "no record locks available") + var ENOLINK = errors.New(errno.ENOLINK, "link has been severed") + var ENOMEDIUM = errors.New(errno.ENOMEDIUM, "no medium found") + var ENOMEM = errors.New(errno.ENOMEM, "out of memory") + var ENOMSG = errors.New(errno.ENOMSG, "no message of desired type") + var ENONET = ENOENT + var ENOPKG = errors.New(errno.ENOPKG, "package not installed") + var ENOPROTOOPT = errors.New(errno.ENOPROTOOPT, "protocol not available") + var ENOSPC = errors.New(errno.ENOSPC, "no space left on device") + var ENOSR = errors.New(errno.ENOSR, "out of streams resources") + var ENOSTR = errors.New(errno.ENOSTR, "device not a stream") + var ENOSYS = errors.New(errno.ENOSYS, "invalid system call number") + var ENOTBLK = errors.New(errno.ENOTBLK, "block device required") + var ENOTCONN = errors.New(errno.ENOTCONN, "transport endpoint is not connected") + var ENOTDIR = errors.New(errno.ENOTDIR, "not a directory") + var ENOTEMPTY = errors.New(errno.ENOTEMPTY, "directory not empty") + var ENOTNAM = errors.New(errno.ENOTNAM, "not a XENIX named type file") + var ENOTRECOVERABLE = errors.New(errno.ENOTRECOVERABLE, "state not recoverable") + var ENOTSOCK = errors.New(errno.ENOTSOCK, "socket operation on non-socket") + var ENOTSUP = EOPNOTSUPP + var ENOTTY = errors.New(errno.ENOTTY, "not a typewriter") + var ENOTUNIQ = errors.New(errno.ENOTUNIQ, "name not unique on network") + var ENXIO = errors.New(errno.ENXIO, "no such device or address") + var EOPNOTSUPP = errors.New(errno.EOPNOTSUPP, "operation not supported on transport endpoint") + var EOVERFLOW = errors.New(errno.EOVERFLOW, "value too large for defined data type") + var EOWNERDEAD = errors.New(errno.EOWNERDEAD, "owner died") + var EPERM = errors.New(errno.EPERM, "operation not permitted") + var EPFNOSUPPORT = errors.New(errno.EPFNOSUPPORT, "protocol family not supported") + var EPIPE = errors.New(errno.EPIPE, "broken pipe") + var EPROTO = errors.New(errno.EPROTO, "protocol error") + var EPROTONOSUPPORT = errors.New(errno.EPROTONOSUPPORT, "protocol not supported") + var EPROTOTYPE = errors.New(errno.EPROTOTYPE, "protocol wrong type for socket") + var ERANGE = errors.New(errno.ERANGE, "math result not representable") + var EREMCHG = errors.New(errno.EREMCHG, "remote address changed") + var EREMOTE = errors.New(errno.EREMOTE, "object is remote") + var EREMOTEIO = errors.New(errno.EREMOTEIO, "remote I/O error") + var ERESTART = errors.New(errno.ERESTART, "interrupted system call should be restarted") + var ERESTARTNOHAND = errors.New(errno.ERESTARTNOHAND, "to be restarted if no handler") + var ERESTARTNOINTR = errors.New(errno.ERESTARTNOINTR, "to be restarted") + var ERESTARTSYS = errors.New(errno.ERESTARTSYS, "to be restarted if SA_RESTART is set") + var ERESTART_RESTARTBLOCK = errors.New(errno.ERESTART_RESTARTBLOCK, "interrupted by signal") + var ERFKILL = errors.New(errno.ERFKILL, "operation not possible due to RF-kill") + var EROFS = errors.New(errno.EROFS, "read-only file system") + var ESHUTDOWN = errors.New(errno.ESHUTDOWN, "cannot send after transport endpoint shutdown") + var ESOCKTNOSUPPORT = errors.New(errno.ESOCKTNOSUPPORT, "socket type not supported") + var ESPIPE = errors.New(errno.ESPIPE, "illegal seek") + var ESRCH = errors.New(errno.ESRCH, "no such process") + var ESRMNT = errors.New(errno.ESRMNT, "srmount error") + var ESTALE = errors.New(errno.ESTALE, "stale file handle") + var ESTRPIPE = errors.New(errno.ESTRPIPE, "streams pipe error") + var ETIME = errors.New(errno.ETIME, "timer expired") + var ETIMEDOUT = errors.New(errno.ETIMEDOUT, "connection timed out") + var ETOOMANYREFS = errors.New(errno.ETOOMANYREFS, "too many references: cannot splice") + var ETXTBSY = errors.New(errno.ETXTBSY, "text file busy") + var EUCLEAN = errors.New(errno.EUCLEAN, "structure needs cleaning") + var EUNATCH = errors.New(errno.EUNATCH, "protocol driver not attached") + var EUSERS = errors.New(errno.EUSERS, "too many users") + var EWOULDBLOCK = EAGAIN + var EXDEV = errors.New(errno.EXDEV, "cross-device link") + var EXFULL = errors.New(errno.EXFULL, "exchange full") + var ErrExceedsFileSizeLimit = errors.New(errno.E2BIG, "exceeds file size limit") + var ErrInterrupted = errors.New(errno.EINTR, "request was interrupted") + var ErrWouldBlock = errors.New(errno.EWOULDBLOCK, "request would block") + func AddErrorUnwrapper(unwrap func(e error) (*errors.Error, bool)) + func ConvertIntr(err, intr error) error + func Equals(e *errors.Error, err error) bool + func ErrorFromUnix(err unix.Errno) error + func IsRestartError(err error) bool + func SyscallRestartErrorFromReturn(rv uintptr) (*errors.Error, bool) + func ToError(err *errors.Error) error + func ToUnix(e *errors.Error) unix.Errno + func TranslateError(from error) (*errors.Error, bool)