MCPcopy
hub / github.com/dresende/node-orm2 / ORM_Error

Function ORM_Error

lib/ORM.js:432–446  ·  view source on GitHub ↗
(err, cb)

Source from the content-addressed store, hash-verified

430};
431
432function ORM_Error(err, cb) {
433 var Emitter = new events.EventEmitter();
434
435 Emitter.use = Emitter.define = Emitter.sync = Emitter.load = function () {};
436
437 if (typeof cb === "function") {
438 cb(err);
439 }
440
441 process.nextTick(function () {
442 Emitter.emit("connect", err);
443 });
444
445 return Emitter;
446}
447
448function queryParamCast (val) {
449 if (typeof val == 'string') {

Callers 1

ORM.jsFile · 0.85

Calls 1

cbFunction · 0.85

Tested by

no test coverage detected