2025SELab2-project-Dwengo/backend/src/exceptions/bad-request-exception.ts
Gerald Schmittinger aaa71aa648 feat(backend): Eigen error handler toegevoegd.
Hiervoor was ook refactoring aan de exception-klassen nodig.
2025-03-30 12:25:41 +02:00

10 lines
261 B
TypeScript

import {ExceptionWithHttpState} from "./exception-with-http-state.js";
/**
* Exception for HTTP 400 Bad Request
*/
export abstract class BadRequestException extends ExceptionWithHttpState {
constructor(error: string) {
super(400, error);
}
}