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.

Error Booleans

  • Returns true if the AFIError is a request cancellation error, false otherwise.

    Declaration

    Swift

    public var isRequestCancelledError: Bool { get }
  • Returns true if the AFIError is an image serialization error, false otherwise.

    Declaration

    Swift

    public var isImageSerializationFailedError: Bool { get }
  • Undocumented

    Declaration

    Swift

    public var isAlamofireError: Bool { get }

Error Descriptions

  • Declaration

    Swift

    public var errorDescription: String? { get }