CBLErrorCode

Objective-C

enum CBLErrorCode : NSUInteger {}

Swift

enum CascableCoreErrorCode : UInt, @unchecked Sendable

CascableCore error codes.

  • A generic, unknown error occurred.

    Declaration

    Objective-C

    CBLErrorCodeGeneric = 1000

    Swift

    case generic = 1000
  • No error.

    Declaration

    Objective-C

    CBLErrorCodeNoError = 1001

    Swift

    case noError = 1001
  • The operation failed because the camera isn’t connected. Can also be used as an error code if another operation fails due to the camera disconnecting (such as file streaming, live view, etc).

    Declaration

    Objective-C

    CBLErrorCodeNotConnected = 1002

    Swift

    case notConnected = 1002
  • The operation failed because the device is busy. Typically, you can wait a moment and try again.

    Declaration

    Objective-C

    CBLErrorCodeDeviceBusy = 1003

    Swift

    case deviceBusy = 1003
  • The operation was cancelled by the user. For instance, a pairing request can fail with this code if the user cancels pairing from the camera body.

    Declaration

    Objective-C

    CBLErrorCodeCancelledByUser = 1004

    Swift

    case cancelledByUser = 1004
  • The operation failed because the given value is not valid for the property in its current state. If you’re caching valid values, the camera may have changed state since the cache was made (for instance, you’re trying to set a shutter speed but the camera is now in an automatic exposure mode).

    Declaration

    Objective-C

    CBLErrorCodeInvalidPropertyValue = 1005

    Swift

    case invalidPropertyValue = 1005
  • The operation failed because the camera’s storage is write-protected.

    Declaration

    Objective-C

    CBLErrorCodeWriteProtected = 1006

    Swift

    case writeProtected = 1006
  • The operation failed because no thumbnail is available for the requested resource.

    Declaration

    Objective-C

    CBLErrorCodeNoThumbnail = 1007

    Swift

    case noThumbnail = 1007
  • The operation failed because the camera does not support the requested operation.

    Declaration

    Objective-C

    CBLErrorCodeNotAvailable = 1008

    Swift

    case notAvailable = 1008
  • The operation failed because the camera isn’t in a command category that supports the requested operation. For example, you’re trying to take a photo while the camera doesn’t currently allow stills shooting commands.

    Declaration

    Objective-C

    CBLErrorCodeIncorrectCommandCategory = 1009

    Swift

    case incorrectCommandCategory = 1009
  • The focus operation failed, perhaps because the camera’s autofocus is unable to being anything into focus.

    Declaration

    Objective-C

    CBLErrorCodeAutoFocusFailed = 1010

    Swift

    case autoFocusFailed = 1010
  • The operation failed because of an underlying failure in the camera’s protocol. This is often an indication of a larger problem (for example, the network dropped or the USB cable was disconnected halfway through an operation).

    Declaration

    Objective-C

    CBLErrorCodeGenericProtocolFailure = 1011

    Swift

    case genericProtocolFailure = 1011
  • The operation failed because of an invalid input parameter.

    Declaration

    Objective-C

    CBLErrorCodeInvalidInput = 1012

    Swift

    case invalidInput = 1012
  • The connection failed because the camera needs a firmware update to be controlled by CascableCore.

    Declaration

    Objective-C

    CBLErrorCodeCameraNeedsSoftwareUpdate = 1013

    Swift

    case cameraNeedsSoftwareUpdate = 1013
  • The operation failed because the camera did not respond within a sensible time period. Check network conditions.

    Declaration

    Objective-C

    CBLErrorCodeTimeout = 1014

    Swift

    case timeout = 1014
  • The focus drive operation failed because the lens was unable to move, either due to being at the end of its travel in the particular direction given, or due to a physical blockage.

    Declaration

    Objective-C

    CBLErrorCodeFocusDidNotMove = 1015

    Swift

    case focusDidNotMove = 1015
  • The operation failed because the file isn’t of a supported format.

    Declaration

    Objective-C

    CBLErrorCodeUnsupportedFileFormat = 1016

    Swift

    case unsupportedFileFormat = 1016
  • The operation failed because metadata could not be retrieved for the requested file.

    Declaration

    Objective-C

    CBLErrorCodeNoMetadata = 1017

    Swift

    case noMetadata = 1017
  • The camera connection failed because it is paired with something else. A new pairing is required.

    Declaration

    Objective-C

    CBLErrorCodeNeedsNewPairing = 1018

    Swift

    case needsNewPairing = 1018
  • The operation failed because the camera is currently recording video.

    Declaration

    Objective-C

    CBLErrorCodeVideoRecordingInProgress = 1019

    Swift

    case videoRecordingInProgress = 1019
  • The operation failed because the camera can only perform the given action by having the user flip a switch or push a button on the camera directly.

    Declaration

    Objective-C

    CBLErrorCodeRequiresPhysicalInteraction = 1020

    Swift

    case requiresPhysicalInteraction = 1020
  • The operation failed because the camera doesn’t allow the operation over the current transport. For example, older Canon cameras don’t allow video recording over WiFi.

    Declaration

    Objective-C

    CBLErrorCodeDisallowedOnCurrentTransport = 1021

    Swift

    case disallowedOnCurrentTransport = 1021
  • The operation failed because it requires live view to be running. Start live view and try again.

    Declaration

    Objective-C

    CBLErrorCodeRequiresLiveView = 1022

    Swift

    case requiresLiveView = 1022
  • The operation failed because of a card error. Either the storage card is missing, damaged, or unformatted.

    Declaration

    Objective-C

    CBLErrorCodeCardError = 1023

    Swift

    case cardError = 1023
  • The operation failed because the camera’s storage is full.

    Declaration

    Objective-C

    CBLErrorCodeStorageFull = 1024

    Swift

    case storageFull = 1024
  • The operation failed because the camera is in an incompatible communication mode. This error is usually encountered when a camera has multiple options on how to communicate over USB or the network, and the chosen mode is incompatible with CascableCore.

    Declaration

    Objective-C

    CBLErrorCodeIncorrectCommunicationMode = 1025

    Swift

    case incorrectCommunicationMode = 1025
  • The operation failed because the result would be too large for the given context. For example, trying to read an extremely large file into memory in its entirety.

    Declaration

    Objective-C

    CBLErrorCodeObjectTooLarge = 1026

    Swift

    case objectTooLarge = 1026
  • Couldn’t connect to the camera because it requires an encrypted connection which isn’t currently supported by CascableCore.

    Declaration

    Objective-C

    CBLErrorCodeEncryptedConnectionsNotSupported = 1027

    Swift

    case encryptedConnectionsNotSupported = 1027
  • Couldn’t connect to the camera because authentication failed (i.e., an incorrect password was given, etc).

    Declaration

    Objective-C

    CBLErrorCodeConnectionAuthenticationFailed = 1028

    Swift

    case connectionAuthenticationFailed = 1028