feat: server error exception type toegevoegd

This commit is contained in:
Adriaan Jacquet 2025-04-15 19:54:43 +02:00
parent 9c638b11f6
commit 94a8456bdd

View file

@ -0,0 +1,12 @@
import { ExceptionWithHttpState } from "./exception-with-http-state";
/**
* Exception for HTTP 500 Internal Server Error
*/
export class ServerErrorException extends ExceptionWithHttpState {
status = 500;
constructor(message = 'Internal server error, something went wrong') {
super(500, message);
}
}