burn
Version:
Super lightweight JS module/asset loader
30 lines (26 loc) • 673 B
JavaScript
(function() {
/*
* Any error during script compile will raise this
*/
function CompileError(message) {
Error.call(this);
Error.captureStackTrace(this, arguments.callee);
this.message = message;
this.statusCode = 404;
}
CompileError.prototype.__proto__ = Error.prototype;
/*
* Any error during config will raise this
*/
function ConfigError(message) {
Error.call(this);
Error.captureStackTrace(this, arguments.callee);
this.message = message;
this.statusCode = 404;
}
ConfigError.prototype.__proto__ = Error.prototype;
module.exports = {
CompileError: CompileError,
ConfigError: ConfigError
}
})();