forked from mirrors/amnezia-wg-easy
wip
This commit is contained in:
parent
eaf3d5c3fb
commit
d7bb645470
25 changed files with 4632 additions and 2 deletions
10
src/lib/ServerError.js
Normal file
10
src/lib/ServerError.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = class ServerError extends Error {
|
||||
|
||||
constructor(message, statusCode = 500) {
|
||||
super(message);
|
||||
this.statusCode = statusCode;
|
||||
}
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue