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

    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

    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

    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

    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

    Swift

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

    Declaration

    Objective-C

    CBLErrorCodeWriteProtected

    Swift

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

    Declaration

    Objective-C

    CBLErrorCodeNoThumbnail

    Swift

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

    Declaration

    Objective-C

    CBLErrorCodeNotAvailable

    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

    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

    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

    Swift

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

    Declaration

    Objective-C

    CBLErrorCodeInvalidInput

    Swift

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

    Declaration

    Objective-C

    CBLErrorCodeCameraNeedsSoftwareUpdate

    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

    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

    Swift

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

    Declaration

    Objective-C

    CBLErrorCodeUnsupportedFileFormat

    Swift

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

    Declaration

    Objective-C

    CBLErrorCodeNoMetadata

    Swift

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

    Declaration

    Objective-C

    CBLErrorCodeNeedsNewPairing

    Swift

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

    Declaration

    Objective-C

    CBLErrorCodeVideoRecordingInProgress

    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

    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

    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

    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

    Swift

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

    Declaration

    Objective-C

    CBLErrorCodeStorageFull

    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

    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

    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

    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

    Swift

    case connectionAuthenticationFailed = 1028