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
-
nil
was returned fromflatMap
Declaration
Swift
case flatMap(Any, Any.Type)
-
nil
was returned fromcompactMap
Declaration
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 }