2025SELab2-project-Dwengo/backend/src/exceptions/not-found-exception.ts
2025-03-30 12:54:22 +00:00

12 lines
276 B
TypeScript

import { ExceptionWithHttpState } from './exception-with-http-state.js';
/**
* Exception for HTTP 404 Not Found
*/
export class NotFoundException extends ExceptionWithHttpState {
public status = 404;
constructor(error: string) {
super(404, error);
}
}