---
title: PHPhotosError
framework: photos
role: symbol
role_heading: Structure
path: photos/phphotoserror-swift.struct
---

# PHPhotosError

A structure that represents a framework error.

## Declaration

```swift
struct PHPhotosError
```

## Topics

### Inspecting an Error

- [errorDomain](photos/phphotoserror-swift.struct/errordomain.md)
- [PHPhotosError.Code](photos/phphotoserror-swift.struct/code.md)
- [Error Constants](photokit/error-constants.md)
- [PHLocalIdentifiersErrorKey](photos/phlocalidentifierserrorkey.md)

### Deprecated Symbols

- [Deprecated Errors](photokit/deprecated-errors.md)

## Relationships

### Conforms To

- [CustomNSError](foundation/customnserror.md)
- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Errors

- [PHPhotosErrorDomain](photos/phphotoserrordomain.md)
