mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-03 04:19:06 +08:00
converted to ts
This commit is contained in:
parent
5b0f170b10
commit
d4b7ab90ca
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,10 @@
|
|||
import * as uuid from "uuid";
|
||||
|
||||
class MonkeyError extends Error {
|
||||
constructor(status, message, stack = null, uid = null) {
|
||||
status: number;
|
||||
errorId: string;
|
||||
uid: string;
|
||||
constructor(status: number, message: string, stack = null, uid = null) {
|
||||
super();
|
||||
this.status = status ?? 500;
|
||||
this.errorId = uuid.v4();
|
Loading…
Reference in a new issue