RequestErrorReason
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.
-
The request is empty. Code 1001.
Declaration
Swift
case emptyRequest
-
The URL of request is invalid. Code 1002.
- request: The request is tend to be sent but its URL is invalid.
Declaration
Swift
case invalidURL(request: URLRequest)
-
The downloading task is cancelled by user. Code 1003.
- task: The session data task which is cancelled.
- token: The cancel token which is used for cancelling the task.
Declaration
Swift
case taskCancelled(task: SessionDataTask, token: SessionDataTask.CancelToken)