var cluster;
var errnoException = util._errnoException;
+var detailedException = util._detailedException;
function noop() {}
return util.isString(s) && toNumber(s) === false;
}
-// format exceptions
-function detailedException(err, syscall, address, port, additional) {
- var details;
- if (port && port > 0) {
- details = address + ':' + port;
- } else {
- details = address;
- }
-
- if (additional) {
- details += ' - Local (' + additional + ')';
- }
- var ex = errnoException(err, syscall, details);
- ex.address = address;
- if (port) {
- ex.port = port;
- }
- return ex;
-}
-
exports.createServer = function() {
return new Server(arguments[0], arguments[1]);
};
e.syscall = syscall;
return e;
};
+
+
+exports._detailedException = function(err, syscall, address, port, additional) {
+ var details;
+ if (port && port > 0) {
+ details = address + ':' + port;
+ } else {
+ details = address;
+ }
+
+ if (additional) {
+ details += ' - Local (' + additional + ')';
+ }
+ var ex = exports._errnoException(err, syscall, details);
+ ex.address = address;
+ if (port) {
+ ex.port = port;
+ }
+ return ex;
+};