UNPKG

798 BJavaScriptView Raw
1// Generated by CoffeeScript 1.10.0
2var ModuleNotFound,
3 extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
4 hasProp = {}.hasOwnProperty;
5
6module.exports = ModuleNotFound = (function(superClass) {
7 extend(ModuleNotFound, superClass);
8
9 function ModuleNotFound(module1, caller) {
10 this.module = module1;
11 this.caller = caller;
12 this.message = 'Could not find any module with name ' + this.module;
13 if (this.caller != null) {
14 this.message = this.message + ', required from module ' + this.caller;
15 }
16 }
17
18 return ModuleNotFound;
19
20})(Error);