(
message: string,
public readonly code: string,
public readonly statusCode: number = 400
)
| 4 | */ |
| 5 | export class ServiceError extends Error { |
| 6 | constructor( |
| 7 | message: string, |
| 8 | public readonly code: string, |
| 9 | public readonly statusCode: number = 400 |
| 10 | ) { |
| 11 | super(message); |
| 12 | this.name = 'ServiceError'; |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | /** 资源未找到 */ |
nothing calls this directly
no outgoing calls
no test coverage detected