PromiseException

Errors that can be thrown by the Promise machinery itself (separate from user errors surfaced via reject(_:)).

Inheritors

Types

Link copied to clipboard

Thrown by await() when the Promise was cancelled via .cancel() before resolving.

Link copied to clipboard

Returned by await() when the promise resolves with a null/missing result.

Link copied to clipboard

Generic resolution failure used as a fallback when neither a value nor an error is present.

Link copied to clipboard

await() did not receive a result before its timeout (when a timeout is configured).

Link copied to clipboard

A validation step inside a chained operation failed.

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?