Permalink
Browse files

dns: add more error codes

  • Loading branch information...
1 parent 605927f commit ecfe32e3a0a4f6b62063a2b56fbb23599cfb51f1 @erikdubbelboer erikdubbelboer committed with bnoordhuis Apr 18, 2012
Showing with 20 additions and 8 deletions.
  1. +20 −8 lib/dns.js
View
@@ -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';

0 comments on commit ecfe32e

Please sign in to comment.