PathFinders / backend /src /utils /appError.ts
cuteepeiarchu's picture
Prepare PathFinders Space deployment
18b71c5
Raw
History Blame Contribute Delete
200 Bytes
export class AppError extends Error {
statusCode: number;
constructor(message: string, statusCode = 400) {
super(message);
this.name = "AppError";
this.statusCode = statusCode;
}
}