MCPcopy Create free account
hub / github.com/appium/appium / throwIfFailed

Method throwIfFailed

packages/support/lib/internal/write-queue.ts:68–72  ·  view source on GitHub ↗

* Reports a failure of any job so far, so that the caller does not carry on with the work which is not needed anymore. * * @throws {unknown} The first failure of any job

()

Source from the content-addressed store, hash-verified

66 * @throws {unknown} The first failure of any job
67 */
68 throwIfFailed(): void {
69 if (this.failure) {
70 throw this.failure.error;
71 }
72 }
73
74 /**
75 * Waits for all jobs.

Callers 5

submitMethod · 0.95
waitForKeyMethod · 0.95
drainMethod · 0.95
extractEntryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected