mirror of
https://github.com/nodejs/node.git
synced 2025-05-21 14:39:17 +00:00
dns: add more error codes
This commit is contained in:
parent
605927fbd9
commit
ecfe32e3a0
28
lib/dns.js
28
lib/dns.js
@ -191,15 +191,27 @@ exports.resolve = function(domain, type_, callback_) {
|
||||
|
||||
|
||||
// ERROR CODES
|
||||
exports.BADNAME = 'EBADNAME';
|
||||
exports.BADRESP = 'EBADRESP';
|
||||
exports.CONNREFUSED = 'ECONNREFUSED';
|
||||
exports.DESTRUCTION = 'EDESTRUCTION';
|
||||
exports.REFUSED = 'EREFUSED';
|
||||
exports.FORMERR = 'EFORMERR';
|
||||
exports.NODATA = 'ENODATA';
|
||||
exports.NOMEM = 'ENOMEM';
|
||||
exports.FORMERR = 'EFORMERR';
|
||||
exports.SERVFAIL = 'ESERVFAIL';
|
||||
exports.NOTFOUND = 'ENOTFOUND';
|
||||
exports.NOTIMP = 'ENOTIMP';
|
||||
exports.SERVFAIL = 'ESERVFAIL';
|
||||
exports.REFUSED = 'EREFUSED';
|
||||
exports.BADQUERY = 'EBADQUERY';
|
||||
exports.ADNAME = 'EADNAME';
|
||||
exports.BADFAMILY = 'EBADFAMILY';
|
||||
exports.BADRESP = 'EBADRESP';
|
||||
exports.CONNREFUSED = 'ECONNREFUSED';
|
||||
exports.TIMEOUT = 'ETIMEOUT';
|
||||
exports.EOF = 'EOF';
|
||||
exports.FILE = 'EFILE';
|
||||
exports.NOMEM = 'ENOMEM';
|
||||
exports.DESTRUCTION = 'EDESTRUCTION';
|
||||
exports.BADSTR = 'EBADSTR';
|
||||
exports.BADFLAGS = 'EBADFLAGS';
|
||||
exports.NONAME = 'ENONAME';
|
||||
exports.BADHINTS = 'EBADHINTS';
|
||||
exports.NOTINITIALIZED = 'ENOTINITIALIZED';
|
||||
exports.LOADIPHLPAPI = 'ELOADIPHLPAPI';
|
||||
exports.ADDRGETNETWORKPARAMS = 'EADDRGETNETWORKPARAMS';
|
||||
exports.CANCELLED = 'ECANCELLED';
|
||||
|
Loading…
Reference in New Issue
Block a user