<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHPhotosError-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "s:SC13PHPhotosErrorLeV"
  },
  "title" : "PHPhotosError"
}
-->

# PHPhotosError

A structure that represents a framework error.

```
struct PHPhotosError
```

## Topics

### Inspecting an Error

[`errorDomain`](/documentation/Photos/PHPhotosError-swift.struct/errorDomain)

[`PHPhotosError.Code`](/documentation/Photos/PHPhotosError-swift.struct/Code)

Error codes for framework operations.

  <doc://com.apple.photokit/documentation/PhotoKit/error-constants>

[`PHLocalIdentifiersErrorKey`](/documentation/Photos/PHLocalIdentifiersErrorKey)

An error key that retrieves an array of string values representing local identifiers matched to a cloud identifier.

### Deprecated Symbols

  <doc://com.apple.photokit/documentation/PhotoKit/deprecated-errors>



---

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)