(code: ErrorCode)
| 267 | * @returns 处理策略 |
| 268 | */ |
| 269 | export function getErrorHandlingStrategy(code: ErrorCode): ErrorHandlingAction { |
| 270 | return ErrorHandlingStrategy[code] || 'warn_and_skip'; |
| 271 | } |
| 272 | |
| 273 | /** |
| 274 | * 根据错误处理策略处理错误 |
no outgoing calls
no test coverage detected