DownloadError

public struct DownloadError<T, Failure> : Error where Failure : Error

Error that is created in case DownloadAPIRequest errors out, but Alamofire and URL loading system report error as nil. Practically, this should never happen ¯_(ツ)_/¯ .

  • Reported DownloadResponse

    Declaration

    Swift

    public let response: DownloadResponse<T, Failure>
  • Creates DownloadError for DownloadAPIRequest.

    Declaration

    Swift

    public init(_ response: DownloadResponse<T, Failure>)

    Parameters

    response

    response created by Alamofire.