2025SELab2-project-Dwengo/backend/src/exceptions/exception-with-http-state.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

9 lines
222 B
TypeScript

/**
* Exceptions which are associated with a HTTP error code.
*/
export abstract class ExceptionWithHttpState extends Error {
constructor(public status: number, public error: string) {
super(error);
}
}