fix: revert ServerError.js
This commit is contained in:
parent
e8a160b14f
commit
7efdbf38e4
|
@ -0,0 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = class ServerError extends Error {
|
||||
|
||||
constructor(message, statusCode = 500) {
|
||||
super(message);
|
||||
this.statusCode = statusCode;
|
||||
}
|
||||
|
||||
};
|
Loading…
Reference in New Issue