2025-03-07 22:47:03 +01:00
|
|
|
import HttpError from "./http_error.js";
|
|
|
|
|
|
|
|
|
|
class NotFoundError extends HttpError {
|
|
|
|
|
|
2024-02-16 22:50:49 +02:00
|
|
|
constructor(message: string) {
|
2025-03-07 22:47:03 +01:00
|
|
|
super(message, 404);
|
2025-03-07 22:22:44 +01:00
|
|
|
this.name = "NotFoundError";
|
2022-12-09 16:04:13 +01:00
|
|
|
}
|
2025-03-07 22:47:03 +01:00
|
|
|
|
2022-12-09 16:04:13 +01:00
|
|
|
}
|
|
|
|
|
|
2024-12-22 15:45:54 +02:00
|
|
|
export default NotFoundError;
|