(err: any)
| 5 | * @returns The root cause of the error, or the original error if no further cause is found. |
| 6 | */ |
| 7 | export function getRootCause(err: any): any { |
| 8 | if (err.cause) { |
| 9 | return getRootCause(err.cause); |
| 10 | } |
| 11 | return err; |
| 12 | } |
| 13 | |
| 14 | export class ContinueError extends Error { |
| 15 | reason: ContinueErrorReason; |
no outgoing calls
no test coverage detected