import { ErrorCode } from "../ErrorCode" ; import { FlatError } from "./FlatError" ; import { ResponseError } from "../types/Server" ; import { Status } from "../constants/Project" ; export class ControllerError extends FlatError { constructor ( public errorCode , public status = Status . Failed ) { super ( `${ status }: ${ errorCode }` ) ; this . name = "ControllerError" ; } }