Structure

MPError

Error codes for the MPError domain.

Declaration

struct MPError

Topics

Error Information

var errorCode: Int

The error code within the domain.

var errorUserInfo: [String : Any]

The user-information dictionary.

var localizedDescription: String

A string containing the localized description of the error.

Error Codes

static var unknown: MPError.Code

The requested operation could not be completed due to an unknown error.

static var permissionDenied: MPError.Code

The operation could not be performed because the user does not have permission for the request.

static var cloudServiceCapabilityMissing: MPError.Code

The operation could not be performed because iCloud services are not enabled.

static var networkConnectionFailed: MPError.Code

The operation failed due to the device not being able to connect to the network.

static var notFound: MPError.Code

The operation failed because the requested identifier could not be found in the current storefront.

static var notSupported: MPError.Code

The operation failed because the requested operation is not supported.

static var cancelled: MPError.Code

The requested operation was cancelled before it was completed.

static var requestTimedOut: MPError.Code

The requested operation timed out.

enum MPError.Code

Error codes for the Media Player error domain.

Error Domain

static var errorDomain: String

The error domain for this error.

let MPErrorDomain: String

The Media Player framework error domain.

Operators

static func != (MPError, MPError) -> Bool

Returns a Boolean value indicating whether two values are not equal.

See Also

Errors

enum MPError.Code

Error codes for the Media Player error domain.

let MPErrorDomain: String

The Media Player framework error domain.