mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-10-26 01:21:34 +08:00
13 lines
243 B
TypeScript
13 lines
243 B
TypeScript
class HttpError extends Error {
|
|
|
|
statusCode: number;
|
|
|
|
constructor(message: string, statusCode: number) {
|
|
super(message);
|
|
this.name = "HttpError";
|
|
this.statusCode = statusCode;
|
|
}
|
|
|
|
}
|
|
|
|
export default HttpError; |