* 创建超时错误
(operation: string, timeoutMs: number)
| 121 | * 创建超时错误 |
| 122 | */ |
| 123 | static timeout(operation: string, timeoutMs: number): AppError { |
| 124 | return new AppError({ |
| 125 | message: `操作 "${operation}" 超时 (${timeoutMs}ms)`, |
| 126 | type: ErrorType.TIMEOUT, |
| 127 | severity: ErrorSeverity.WARNING, |
| 128 | code: 'TIMEOUT_ERROR', |
| 129 | details: { operation, timeoutMs }, |
| 130 | recoverable: true, |
| 131 | }) |
| 132 | } |
| 133 | |
| 134 | /** |
| 135 | * 创建未找到错误 |
no outgoing calls
no test coverage detected