2025SELab2-project-Dwengo/backend/src/exceptions/server-error-exception.ts
2025-04-17 17:08:18 +00:00

12 lines
325 B
TypeScript

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);
}
}