(error: unknown)
| 3612 | } |
| 3613 | |
| 3614 | async failStart(error: unknown): Promise<never> { |
| 3615 | this.settleReservedExecution({ ok: false, error }); |
| 3616 | let failure = error; |
| 3617 | if (this.interactionRun) { |
| 3618 | try { |
| 3619 | await this.interactionRun.close(interactionClosureReason(this.run)); |
| 3620 | await this.interactionRun.settleLocalClosures(); |
| 3621 | this.callbacks.releaseInteraction(this.interactionRun); |
| 3622 | } catch (closeError) { |
| 3623 | failure = new AggregateError( |
| 3624 | [failure, closeError], |
| 3625 | 'Interaction owner bind cleanup failed', |
| 3626 | ); |
| 3627 | } |
| 3628 | } |
| 3629 | try { |
| 3630 | this.releaseMessage(); |
| 3631 | } catch (releaseError) { |
| 3632 | failure = new AggregateError([failure, releaseError], 'Message owner bind cleanup failed'); |
| 3633 | } |
| 3634 | await this.run.recordFailure(failure); |
| 3635 | await this.callbacks.finalizeExecution(() => this.run.finalize()); |
| 3636 | throw failure; |
| 3637 | } |
| 3638 | |
| 3639 | async abandonUnstartedContinuation(error: unknown): Promise<never> { |
| 3640 | this.settleReservedExecution({ ok: false, error }); |
no test coverage detected