(resource: string, id: string)
| 16 | /** 资源未找到 */ |
| 17 | export class NotFoundError extends ServiceError { |
| 18 | constructor(resource: string, id: string) { |
| 19 | super(`${resource} not found: ${id}`, 'NOT_FOUND', 404); |
| 20 | this.name = 'NotFoundError'; |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | /** 数据校验失败 */ |
nothing calls this directly
no outgoing calls
no test coverage detected