task-svr/src/common/ZError.ts
CounterFire2023 ad094f7a47 project init
2023-12-14 17:19:44 +08:00

14 lines
276 B
TypeScript

import { FastifyError } from 'fastify'
export class ZError implements FastifyError {
code: string
statusCode?: number
message: string
name: string
constructor(statusCode: number, message: string) {
this.statusCode = statusCode
this.message = message
}
}