init commit

This commit is contained in:
2025-11-07 22:24:40 +01:00
parent a5373286bf
commit 15b8f36d4d
217 changed files with 168229 additions and 0 deletions

25
server/api/myError.ts Executable file
View File

@@ -0,0 +1,25 @@
import { cli } from "winston/lib/winston/config";
export default class myError extends Error {
messageEnglish: string;
statusCode: Number;
clientCode: Number;
clientMessage: string;
title: string;
constructor(
messageEnglish ?: string,
statusCode?: Number,
clientCode?: Number,
clientMessage?: string,
title?: string
) {
super(messageEnglish);
this.messageEnglish = messageEnglish;
this.statusCode = statusCode;
this.clientCode = clientCode;
this.clientMessage = clientMessage;
this.title = title;
Object.setPrototypeOf(this, new.target.prototype); // restore prototype chain
}
}