AFIError
public enum AFIError : Error
extension AFIError: LocalizedError
AFIError
is the error type returned by AlamofireImage.
- requestCancelled: The request was explicitly cancelled.
- imageSerializationFailed: Response data could not be serialized into an image.
-
Undocumented
Declaration
Swift
case requestCancelled
-
Undocumented
Declaration
Swift
case imageSerializationFailed
-
Undocumented
Declaration
Swift
case alamofireError(AFError)
-
Returns
true
if theAFIError
is a request cancellation error,false
otherwise.Declaration
Swift
public var isRequestCancelledError: Bool { get }
-
Returns
true
if theAFIError
is an image serialization error,false
otherwise.Declaration
Swift
public var isImageSerializationFailedError: Bool { get }
-
Undocumented
Declaration
Swift
public var isAlamofireError: Bool { get }
-
Declaration
Swift
public var errorDescription: String? { get }