Structure

LPError

An error returned by the LinkPresentation framework.

Declaration

struct LPError

Topics

Error Details

var errorCode: Int

A code for the error.

var errorUserInfo: [String : Any]

Information about the error.

var localizedDescription: String

A localized, human-readable explanation of the error.

Error Domain

static var errorDomain: String

The domain for the error.

let LPErrorDomain: String

The domain for Link Presentation errors.

Error Codes

static var metadataFetchCancelled: LPError.Code

An error indicating that the metadata fetch was canceled by the client.

static var metadataFetchFailed: LPError.Code

An error indicating that a metadata fetch failed.

static var metadataFetchTimedOut: LPError.Code

An error indicating that the metadata fetch took longer than allowed.

enum LPError.Code

Possible error values that can be returned from LinkPresentation APIs.

Comparison Operator

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

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