首次放到 git

This commit is contained in:
Luk.Lu
2018-10-09 23:03:05 +08:00
commit 16cca302b7
37 changed files with 4203 additions and 0 deletions

11
utils/throw-error.js Normal file
View File

@@ -0,0 +1,11 @@
'use strict';
function throwError(message, params) {
var error = new Error(message);
for (var key in params) {
error[key] = params[key];
}
throw error;
}
module.exports = throwError;