<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "LinkPresentation",
  "identifier" : "/documentation/LinkPresentation/LPError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Link Presentation"
    ],
    "preciseIdentifier" : "s:SC11LPErrorCodeLeV"
  },
  "title" : "LPError"
}
-->

# LPError

An error returned by the LinkPresentation framework.

```
struct LPError
```

## Topics

### Error details

[`errorCode`](/documentation/LinkPresentation/LPError/errorCode)

A code for the error.

[`errorUserInfo`](/documentation/LinkPresentation/LPError/errorUserInfo)

### Error domain

[`errorDomain`](/documentation/LinkPresentation/LPError/errorDomain)

The domain for the error.

[`LPErrorDomain`](/documentation/LinkPresentation/LPErrorDomain)

The domain for Link Presentation errors.

### Error codes

[`metadataFetchCancelled`](/documentation/LinkPresentation/LPError/metadataFetchCancelled)

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

[`metadataFetchFailed`](/documentation/LinkPresentation/LPError/metadataFetchFailed)

An error indicating that a metadata fetch failed.

[`metadataFetchTimedOut`](/documentation/LinkPresentation/LPError/metadataFetchTimedOut)

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

[`unknown`](/documentation/LinkPresentation/LPError/unknown)

[`Code`](/documentation/LinkPresentation/LPError/Code)

Possible error values that can be returned from LinkPresentation APIs.

### Comparison operator

## Relationships

### Conforms To

[`Error`](/documentation/Swift/Error)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomNSError`](/documentation/Foundation/CustomNSError)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)