PMKError
public enum PMKError : Error
extension PMKError: CustomDebugStringConvertible
extension PMKError: LocalizedError
Undocumented
-
The completionHandler with form
(T?, Error?)was called with(nil, nil). This is invalid as per Cocoa/Apple calling conventions.Declaration
Swift
case invalidCallingConvention -
A handler returned its own promise. 99% of the time, this is likely a programming error. It is also invalid per Promises/A+.
Declaration
Swift
case returnedSelf -
when(),race()etc. were called with invalid parameters, eg. an empty array.Declaration
Swift
case badInput -
The operation was cancelled
Declaration
Swift
case cancelled -
The operation timed out and was cancelled
Declaration
Swift
case timedOut -
nilwas returned fromflatMapDeclaration
Swift
case flatMap(Any, Any.Type) -
nilwas returned fromcompactMapDeclaration
Swift
case compactMap(Any, Any.Type) -
The lastValue or firstValue of a sequence was requested but the sequence was empty.
Also used if all values of this collection failed the test passed to
firstValue(where:).Declaration
Swift
case emptySequence -
no winner in
race(fulfilled:)Declaration
Swift
case noWinner -
Declaration
Swift
public var debugDescription: String { get } -
Declaration
Swift
public var errorDescription: String? { get }
View on GitHub
PMKError Enumeration Reference