mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-13 08:03:09 +02:00
3a7182bfb5
* wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * fix * Update SignupApiService.ts * wip * wip * Update ClientServerService.ts * wip * wip * wip * Update WellKnownServerService.ts * wip * wip * update des * wip * Update ApiServerService.ts * wip * update deps * Update WellKnownServerService.ts * wip * update deps * Update ApiCallService.ts * Update ApiCallService.ts * Update ApiServerService.ts
11 lines
314 B
TypeScript
11 lines
314 B
TypeScript
// https://www.fastify.io/docs/latest/Reference/Reply/#async-await-and-promises
|
|
export class FastifyReplyError extends Error {
|
|
public message: string;
|
|
public statusCode: number;
|
|
|
|
constructor(statusCode: number, message: string) {
|
|
super(message);
|
|
this.message = message;
|
|
this.statusCode = statusCode;
|
|
}
|
|
}
|