/** * 核心异常类 * ImATeapotException * code 418 * @author ranyunlong<549510622@qq.com> * license MIT */ import { HttpException, Properties } from "./HttpException"; import { HttpStatus } from "../enum"; /** * @code 418 */ export class ImATeapotException extends HttpException { constructor(properties?: Properties | boolean, error?: Properties, message?: string) { super({ message, properties, error, status: HttpStatus.I_AM_A_TEAPOT }) } }