11 lines
348 B
TypeScript
11 lines
348 B
TypeScript
import { StatusCodes } from 'http-status-codes';
|
|
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;
|