tethys.api/src/exceptions/InternalServerError.ts

12 lines
346 B
TypeScript
Raw Normal View History

2022-11-07 12:55:02 +00:00
import { StatusCodes } from "http-status-codes";
import HTTPException from "./HttpException";
class InternalServerErrorException extends HTTPException {
constructor(message?: string) {
super(StatusCodes.INTERNAL_SERVER_ERROR, message || "Server Error");
this.stack = "";
}
}
export default InternalServerErrorException;