---
title: PHPhotosError.Code
framework: photos
role: symbol
role_heading: Enumeration
path: photos/phphotoserror-swift.struct/code
---

# PHPhotosError.Code

Error codes for framework operations.

## Declaration

```swift
enum Code
```

## Topics

### Error Codes

- [PHPhotosError.Code.accessRestricted](photos/phphotoserror-swift.struct/code/accessrestricted.md)
- [PHPhotosError.Code.accessUserDenied](photos/phphotoserror-swift.struct/code/accessuserdenied.md)
- [PHPhotosError.Code.changeNotSupported](photos/phphotoserror-swift.struct/code/changenotsupported.md)
- [PHPhotosError.Code.identifierNotFound](photos/phphotoserror-swift.struct/code/identifiernotfound.md)
- [PHPhotosError.Code.internalError](photos/phphotoserror-swift.struct/code/internalerror.md)
- [invalid](photos/phphotoserror-swift.struct/code/invalid.md)
- [PHPhotosError.Code.invalidResource](photos/phphotoserror-swift.struct/code/invalidresource.md)
- [PHPhotosError.Code.libraryVolumeOffline](photos/phphotoserror-swift.struct/code/libraryvolumeoffline.md)
- [PHPhotosError.Code.libraryInFileProviderSyncRoot](photos/phphotoserror-swift.struct/code/libraryinfileprovidersyncroot.md)
- [PHPhotosError.Code.limitExceeded](photos/phphotoserror-swift.struct/code/limitexceeded.md)
- [PHPhotosError.Code.missingResource](photos/phphotoserror-swift.struct/code/missingresource.md)
- [PHPhotosError.Code.multipleIdentifiersFound](photos/phphotoserror-swift.struct/code/multipleidentifiersfound.md)
- [PHPhotosError.Code.networkAccessRequired](photos/phphotoserror-swift.struct/code/networkaccessrequired.md)
- [PHPhotosError.Code.networkError](photos/phphotoserror-swift.struct/code/networkerror.md)
- [PHPhotosError.Code.notEnoughSpace](photos/phphotoserror-swift.struct/code/notenoughspace.md)
- [PHPhotosError.Code.operationInterrupted](photos/phphotoserror-swift.struct/code/operationinterrupted.md)
- [PHPhotosError.Code.persistentChangeDetailsUnavailable](photos/phphotoserror-swift.struct/code/persistentchangedetailsunavailable.md)
- [PHPhotosError.Code.persistentChangeTokenExpired](photos/phphotoserror-swift.struct/code/persistentchangetokenexpired.md)
- [PHPhotosError.Code.relinquishingLibraryBundleToWriter](photos/phphotoserror-swift.struct/code/relinquishinglibrarybundletowriter.md)
- [PHPhotosError.Code.requestNotSupportedForAsset](photos/phphotoserror-swift.struct/code/requestnotsupportedforasset.md)
- [PHPhotosError.Code.switchingSystemPhotoLibrary](photos/phphotoserror-swift.struct/code/switchingsystemphotolibrary.md)
- [PHPhotosError.Code.userCancelled](photos/phphotoserror-swift.struct/code/usercancelled.md)

### Initializers

- [init(rawValue:)](photos/phphotoserror-swift.struct/code/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Inspecting an Error

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