public enum RequestErrorReason
Represents the error reason during networking request phase.
emptyRequest: The request is empty. Code 1001.
invalidURL: The URL of request is invalid. Code 1002.
taskCancelled: The downloading task is cancelled by user. Code 1003.
Represents all the errors which can happen in Kingfisher framework. Kingfisher related methods always throw a
KingfisherErroror invoke the callback with
KingfisherErroras its error type. To handle errors from Kingfisher, you switch over the error to get a reason catalog, then switch over the reason to know error detail.
The request is empty. Code 1001.
case invalidURL(request: URLRequest)
The URL of request is invalid. Code 1002.
request: The request is tend to be sent but its URL is invalid.