tethys.backend/app/exceptions/InternalServerException.ts

11 lines
348 B
TypeScript
Raw Normal View History

import { StatusCodes } from 'http-status-codes';
2024-03-14 19:25:27 +00:00
import HTTPException from './HttpException.js';
class InternalServerErrorException extends HTTPException {
constructor(message?: string) {
super(StatusCodes.INTERNAL_SERVER_ERROR, message || 'Server Error');
this.stack = '';
}
}
export default InternalServerErrorException;