Enumeration

URLError.BackgroundTaskCancelledReason

An enumeration of reasons used to explain the cancellation of a background task.

Declaration

enum BackgroundTaskCancelledReason : Int

Topics

Creating a Reason

init?(rawValue: Int)

Creates a background cancellation reason from the provided raw value.

Cancellation Reasons

case backgroundUpdatesDisabled

A reason that indicates the system canceled the background task because background tasks are disabled.

case insufficientSystemResources

A reason that indicates the system canceled the background task because it lacks sufficient resources to perform the task.

case userForceQuitApplication

A reason that indicates the system canceled the background task because the user force-quit the application.

Hashing

var hashValue: Int

The hash value.

func hash(into: inout Hasher)

Hashes the essential components of this value by feeding them into the given hasher.

Comparing Reasons

var rawValue: Int

The raw value of this background cancellation reason instance.

static func != (URLError.BackgroundTaskCancelledReason, URLError.BackgroundTaskCancelledReason) -> Bool

Returns a Boolean value that indicates whether two values are unequal.

See Also

Error Details

var errorCode: Int

The error code within the domain.

var errorUserInfo: [String : Any]

The error’s user-info dictionary.

var localizedDescription: String

A string containing the localized description of the error.

var failingURL: URL?

The URL which caused a load to fail.

var failureURLPeerTrust: SecTrust?

The state of a failed SSL handshake.

var failureURLString: String?

The string for the URL which caused a load to fail.

var downloadTaskResumeData: Data?

An opaque data object used to resume a failed download task.

var networkUnavailableReason: URLError.NetworkUnavailableReason?

The reason the network was unavailable for a task.

enum URLError.NetworkUnavailableReason

An enumeration of reasons explaining why a task couldn’t satisfy networking constraints.