mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2024-11-14 18:43:57 +00:00
14 lines
333 B
TypeScript
14 lines
333 B
TypeScript
export default class HttpException extends Error {
|
|
statusCode: number;
|
|
message: string;
|
|
error: string | null;
|
|
|
|
constructor(statusCode: number, message: string, error?: string) {
|
|
super(message);
|
|
|
|
this.statusCode = statusCode;
|
|
this.message = message;
|
|
this.error = error || null;
|
|
}
|
|
}
|