(err: any)
| 45 | |
| 46 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
| 47 | public static unwrap(err: any) { |
| 48 | if (!err) { |
| 49 | return err; |
| 50 | } |
| 51 | // Unwrap the errors. |
| 52 | if (err instanceof WrappedError && err.originalException && err.originalException instanceof BaseError) { |
| 53 | err = err.originalException; |
| 54 | } |
| 55 | return err; |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | export function getErrorCategory(error?: Error): ErrorCategory { |
no outgoing calls
no test coverage detected