Enumeration

CHHapticError.Code

Haptic error codes.

Declaration

enum CHHapticError.Code : Int, _ErrorCodeProtocol

Topics

Haptic Errors

case engineNotRunning

The haptic engine wasn't running when your app requested pattern playback.

case engineStartTimeout

The haptic engine timed out while starting.

case invalidPatternData

Your app fed an invalid pattern to the haptic engine or player.

case invalidPatternPlayer

The current pattern player is no longer valid due to a server error.

case invalidAudioSession

The current pattern player is associated with an invalid audio session.

case memoryError

The operation failed due to a lack of memory.

case notSupported

The current device doesn't support the haptic engine.

case operationNotPermitted

Your app requested an operation that the haptic engine disallows.

case serverInitFailed

The haptic server failed to initialize.

case serverInterrupted

Your app lost its connection to the haptic server.

case badEventEntry

The event described in the dictionary is missing a required field.

case badParameterEntry

A parameter in an event is missing a required field.

case invalidAudioResource

The audio resource linked in the entry is invalid.

case resourceNotAvailable

Core Haptics couldn't locate the named resource.

case invalidEventDuration

The event described in the dictionary has an invalid duration.

case invalidEventTime

The event time described in the dictionary is invalid.

case invalidTime

The time offset passed to Core Haptics is invalid.

case invalidPatternDictionary

A pattern in the dictionary is missing a required field.

case unknownError

Core Haptics couldn't determine the source of the error.

See Also

Defining Error Types

static var errorDomain: String

A static string representation of the error domain.

static var engineNotRunning: CHHapticError.Code

The haptic engine wasn't running when your app requested pattern playback.

static var engineStartTimeout: CHHapticError.Code

The haptic engine timed out while starting.

static var invalidParameterType: CHHapticError.Code

Your app entered an invalid CHHapticParameterID or CHHapticEvent.ParameterID.

static var invalidPatternData: CHHapticError.Code

Your app fed an invalid pattern to the haptic engine or player.

static var invalidPatternPlayer: CHHapticError.Code

The current pattern player is no longer valid due to a server error.

static var invalidAudioSession: CHHapticError.Code

The current pattern player is associated with an invalid audio session.

static var memoryError: CHHapticError.Code

The operation failed due to a lack of memory.

static var notSupported: CHHapticError.Code

The current device doesn't support the haptic engine.

static var operationNotPermitted: CHHapticError.Code

Your app requested an operation that the haptic engine disallows.

static var serverInitFailed: CHHapticError.Code

The haptic server failed to initialize.

static var serverInterrupted: CHHapticError.Code

Your app lost its connection to the haptic server.

static var badEventEntry: CHHapticError.Code

The event described in the dictionary is missing a required field.

static var badParameterEntry: CHHapticError.Code

A parameter in an event is missing a required field.

static var invalidAudioResource: CHHapticError.Code

The audio resource linked in the entry is invalid.

static var resourceNotAvailable: CHHapticError.Code

Core Haptics couldn't locate the named resource.

static var invalidEventDuration: CHHapticError.Code

The event described in the dictionary has an invalid duration.

static var invalidEventTime: CHHapticError.Code

The event time described in the dictionary is invalid.

static var invalidTime: CHHapticError.Code

The time offset passed to Core Haptics is invalid.

static var invalidPatternDictionary: CHHapticError.Code

A pattern in the dictionary is missing a required field.

static var unknownError: CHHapticError.Code

Core Haptics couldn't determine the source of error.