1 | function MiaowError(file, error) {
|
2 | Error.call(this);
|
3 | Error.captureStackTrace(this, MiaowError);
|
4 | this.name = 'MiaowError';
|
5 | this.error = error;
|
6 | this.message = error.message;
|
7 | this.details = error.stack;
|
8 | this.file = file;
|
9 | }
|
10 |
|
11 | module.exports = MiaowError;
|
12 |
|
13 | MiaowError.prototype = Object.create(Error.prototype);
|