From ecfe32e3a0a4f6b62063a2b56fbb23599cfb51f1 Mon Sep 17 00:00:00 2001 From: Erik Dubbelboer Date: Wed, 18 Apr 2012 15:56:14 +0200 Subject: [PATCH] dns: add more error codes --- lib/dns.js | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/lib/dns.js b/lib/dns.js index 17f8b32d0b8089..bd7789c6fa9126 100644 --- a/lib/dns.js +++ b/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';