---
title: ImageCreator.Error
framework: imageplayground
role: symbol
role_heading: Enumeration
path: imageplayground/imagecreator/error
---

# ImageCreator.Error

Errors that can occur during the image generation process.

## Declaration

```swift
enum Error
```

## Topics

### Getting the error codes

- [ImageCreator.Error.notSupported](imageplayground/imagecreator/error/notsupported.md)
- [ImageCreator.Error.unavailable](imageplayground/imagecreator/error/unavailable.md)
- [ImageCreator.Error.creationCancelled](imageplayground/imagecreator/error/creationcancelled.md)
- [ImageCreator.Error.faceInImageTooSmall](imageplayground/imagecreator/error/faceinimagetoosmall.md)
- [ImageCreator.Error.unsupportedLanguage](imageplayground/imagecreator/error/unsupportedlanguage.md)
- [ImageCreator.Error.unsupportedInputImage](imageplayground/imagecreator/error/unsupportedinputimage.md)
- [ImageCreator.Error.backgroundCreationForbidden](imageplayground/imagecreator/error/backgroundcreationforbidden.md)
- [ImageCreator.Error.creationFailed](imageplayground/imagecreator/error/creationfailed.md)

### Enumeration Cases

- [ImageCreator.Error.conceptsRequirePersonIdentity](imageplayground/imagecreator/error/conceptsrequirepersonidentity.md)

## Relationships

### Conforms To

- [CaseIterable](swift/caseiterable.md)
- [Copyable](swift/copyable.md)
- [CustomNSError](foundation/customnserror.md)
- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [LocalizedError](foundation/localizederror.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Generating images

- [images(for:style:limit:)](imageplayground/imagecreator/images(for:style:limit:).md)
- [availableStyles](imageplayground/imagecreator/availablestyles.md)
- [ImageCreator.CreatedImage](imageplayground/imagecreator/createdimage.md)
