---
title: ColorSyncProfile.HeadroomAdaptiveGainCurve.Error
framework: colorsync
role: symbol
role_heading: Enumeration
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: colorsync/colorsyncprofile/headroomadaptivegaincurve-swift.struct/error
---

# ColorSyncProfile.HeadroomAdaptiveGainCurve.Error

An error thrown while constructing Headroom Adaptive Gain Curve metadata.

## Declaration

```swift
enum Error
```

## Topics

### Enumeration Cases

- [ColorSyncProfile.HeadroomAdaptiveGainCurve.Error.invalidCustomChromaticities](colorsync/colorsyncprofile/headroomadaptivegaincurve-swift.struct/error/invalidcustomchromaticities.md)
- [ColorSyncProfile.HeadroomAdaptiveGainCurve.Error.invalidHDRReferenceWhite(_:)](colorsync/colorsyncprofile/headroomadaptivegaincurve-swift.struct/error/invalidhdrreferencewhite(_:).md)
- [ColorSyncProfile.HeadroomAdaptiveGainCurve.Error.mismatchedControlPointArrays(x:y:)](colorsync/colorsyncprofile/headroomadaptivegaincurve-swift.struct/error/mismatchedcontrolpointarrays(x:y:).md)
- [ColorSyncProfile.HeadroomAdaptiveGainCurve.Error.mismatchedTangentCount(got:expected:)](colorsync/colorsyncprofile/headroomadaptivegaincurve-swift.struct/error/mismatchedtangentcount(got:expected:).md)
- [ColorSyncProfile.HeadroomAdaptiveGainCurve.Error.negativeBaselineHeadroom(_:)](colorsync/colorsyncprofile/headroomadaptivegaincurve-swift.struct/error/negativebaselineheadroom(_:).md)
- [ColorSyncProfile.HeadroomAdaptiveGainCurve.Error.negativeHeadroomStops(_:)](colorsync/colorsyncprofile/headroomadaptivegaincurve-swift.struct/error/negativeheadroomstops(_:).md)
- [ColorSyncProfile.HeadroomAdaptiveGainCurve.Error.tooManyAlternateCurves(count:limit:)](colorsync/colorsyncprofile/headroomadaptivegaincurve-swift.struct/error/toomanyalternatecurves(count:limit:).md)
- [ColorSyncProfile.HeadroomAdaptiveGainCurve.Error.tooManyControlPoints(count:limit:)](colorsync/colorsyncprofile/headroomadaptivegaincurve-swift.struct/error/toomanycontrolpoints(count:limit:).md)
- [ColorSyncProfile.HeadroomAdaptiveGainCurve.Error.unsupportedApplicationVersion(_:)](colorsync/colorsyncprofile/headroomadaptivegaincurve-swift.struct/error/unsupportedapplicationversion(_:).md)
- [ColorSyncProfile.HeadroomAdaptiveGainCurve.Error.zeroFreeStyleWeights](colorsync/colorsyncprofile/headroomadaptivegaincurve-swift.struct/error/zerofreestyleweights.md)

## Relationships

### Conforms To

- [Error](swift/error.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Describing a curve in Swift

- [ColorSyncProfile.HeadroomAdaptiveGainCurve](colorsync/colorsyncprofile/headroomadaptivegaincurve-swift.struct.md)
- [ColorSyncProfile.HeadroomAdaptiveGainCurve.ColorVolumeTransform](colorsync/colorsyncprofile/headroomadaptivegaincurve-swift.struct/colorvolumetransform-swift.struct.md)
- [ColorSyncProfile.HeadroomAdaptiveGainCurve.ColorVolumeTransform.ToneMapping](colorsync/colorsyncprofile/headroomadaptivegaincurve-swift.struct/colorvolumetransform-swift.struct/tonemapping.md)
- [ColorSyncProfile.HeadroomAdaptiveGainCurve.ColorVolumeTransform.ToneMapping.Method](colorsync/colorsyncprofile/headroomadaptivegaincurve-swift.struct/colorvolumetransform-swift.struct/tonemapping/method-swift.enum.md)
