import { HttpStatus } from '../consts' ; export class HttpException extends Error { constructor ( public readonly message , public readonly status = HttpStatus . INTERNAL_SERVER_ERROR ) { super ( message ) ; } }