美文网首页Nodejs
nodejs 错误代码参考

nodejs 错误代码参考

作者: tarlight | 来源:发表于2014-02-10 13:57 被阅读2754次

    node源代码的uv.h文件里的:

    /* Expand this list if necessary. */

    define UV_ERRNO_MAP(XX) \

    XX( -1, UNKNOWN, "unknown error")
    XX( 0, OK, "success")
    XX( 1, EOF, "end of file")
    XX( 2, EADDRINFO, "getaddrinfo error")
    XX( 3, EACCES, "permission denied")
    XX( 4, EAGAIN, "resource temporarily unavailable")
    XX( 5, EADDRINUSE, "address already in use")
    XX( 6, EADDRNOTAVAIL, "address not available")
    XX( 7, EAFNOSUPPORT, "address family not supported")
    XX( 8, EALREADY, "connection already in progress")
    XX( 9, EBADF, "bad file descriptor")
    XX( 10, EBUSY, "resource busy or locked")
    XX( 11, ECONNABORTED, "software caused connection abort")
    XX( 12, ECONNREFUSED, "connection refused")
    XX( 13, ECONNRESET, "connection reset by peer")
    XX( 14, EDESTADDRREQ, "destination address required")
    XX( 15, EFAULT, "bad address in system call argument")
    XX( 16, EHOSTUNREACH, "host is unreachable")
    XX( 17, EINTR, "interrupted system call")
    XX( 18, EINVAL, "invalid argument")
    XX( 19, EISCONN, "socket is already connected")
    XX( 20, EMFILE, "too many open files")
    XX( 21, EMSGSIZE, "message too long")
    XX( 22, ENETDOWN, "network is down")
    XX( 23, ENETUNREACH, "network is unreachable")
    XX( 24, ENFILE, "file table overflow")
    XX( 25, ENOBUFS, "no buffer space available")
    XX( 26, ENOMEM, "not enough memory")
    XX( 27, ENOTDIR, "not a directory")
    XX( 28, EISDIR, "illegal operation on a directory")
    XX( 29, ENONET, "machine is not on the network")
    XX( 31, ENOTCONN, "socket is not connected")
    XX( 32, ENOTSOCK, "socket operation on non-socket")
    XX( 33, ENOTSUP, "operation not supported on socket")
    XX( 34, ENOENT, "no such file or directory")
    XX( 35, ENOSYS, "function not implemented")
    XX( 36, EPIPE, "broken pipe")
    XX( 37, EPROTO, "protocol error")
    XX( 38, EPROTONOSUPPORT, "protocol not supported")
    XX( 39, EPROTOTYPE, "protocol wrong type for socket")
    XX( 40, ETIMEDOUT, "connection timed out")
    XX( 41, ECHARSET, "invalid Unicode character")
    XX( 42, EAIFAMNOSUPPORT, "address family for hostname not supported")
    XX( 44, EAISERVICE, "servname not supported for ai_socktype")
    XX( 45, EAISOCKTYPE, "ai_socktype not supported")
    XX( 46, ESHUTDOWN, "cannot send after transport endpoint shutdown")
    XX( 47, EEXIST, "file already exists")
    XX( 48, ESRCH, "no such process")
    XX( 49, ENAMETOOLONG, "name too long")
    XX( 50, EPERM, "operation not permitted")
    XX( 51, ELOOP, "too many symbolic links encountered")
    XX( 52, EXDEV, "cross-device link not permitted")
    XX( 53, ENOTEMPTY, "directory not empty")
    XX( 54, ENOSPC, "no space left on device")
    XX( 55, EIO, "i/o error")
    XX( 56, EROFS, "read-only file system")
    XX( 57, ENODEV, "no such device")
    XX( 58, ESPIPE, "invalid seek")
    XX( 59, ECANCELED, "operation canceled") \

    相关文章

      网友评论

      • LostAbaddon:前年我也琢磨过node.js的源码。。。

      本文标题:nodejs 错误代码参考

      本文链接:https://www.haomeiwen.com/subject/jkhhtttx.html