()
| 82 | } |
| 83 | |
| 84 | export function createRequestCanceledError(): AppError { |
| 85 | return new AppError('COMMAND_FAILED', REQUEST_CANCELED_MESSAGE, { |
| 86 | reason: REQUEST_CANCELED_REASON, |
| 87 | }); |
| 88 | } |
| 89 | |
| 90 | export function throwIfRequestCanceled(requestId: string | undefined): void { |
| 91 | if (isRequestCanceled(requestId)) { |
no outgoing calls
no test coverage detected