1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | function h54sError(type, message, status) {
|
11 | if(Error.captureStackTrace) {
|
12 | Error.captureStackTrace(this);
|
13 | }
|
14 | this.message = message;
|
15 | this.type = type;
|
16 | this.status = status;
|
17 | }
|
18 |
|
19 | h54sError.prototype = Object.create(Error.prototype, {
|
20 | constructor: {
|
21 | configurable: false,
|
22 | enumerable: false,
|
23 | writable: false,
|
24 | value: h54sError
|
25 | },
|
26 | name: {
|
27 | configurable: false,
|
28 | enumerable: false,
|
29 | writable: false,
|
30 | value: 'h54sError'
|
31 | }
|
32 | });
|
33 |
|
34 | module.exports = h54sError;
|