---
title: PHImageErrorKey
framework: photos
role: symbol
role_heading: Global Variable
path: photos/phimageerrorkey
---

# PHImageErrorKey

A key whose value is an error that occurred when Photos attempted to load the image.

## Declaration

```swift
let PHImageErrorKey: String
```

## Discussion

Discussion This key provides information about an image loading result in the resultHandler block for methods listed in Requesting Images. The corresponding value is an NSError object.Photos provides an error object for this key if it cannot provide an image for your handler block’s result parameter. Examine the error object for information about the cause of the error.

## See Also

### Constants

- [PHImageResultIsInCloudKey](photos/phimageresultisincloudkey.md)
- [PHImageResultIsDegradedKey](photos/phimageresultisdegradedkey.md)
- [PHImageResultRequestIDKey](photos/phimageresultrequestidkey.md)
- [PHImageCancelledKey](photos/phimagecancelledkey.md)
