ErrorCode

@objc public class ErrorCode: NSObject

Define the error code of an error object.

  • Success, not an error.

    Declaration

    Swift

    public static let Success: UInt32                   = 0x00000000;
  • Operation has been cancelled by the user.

    Declaration

    Swift

    public static let Cancelled: UInt32                 = 0x80000001;
  • State is invalid.

    Declaration

    Swift

    public static let InvalidState: UInt32              = 0x80000002;
  • An IOException is raised.

    Declaration

    Swift

    public static let IOException: UInt32               = 0x80000003;
  • Parameter is invalid.

    Declaration

    Swift

    public static let InvalidParameter: UInt32          = 0x80000004;
  • Operation is not supported.

    Declaration

    Swift

    public static let NotSupported: UInt32              = 0x80000005;
  • The response format of the camera is invalid.

    Declaration

    Swift

    public static let InvalidResponse: UInt32           = 0x80000006;
  • Command executes failed. SubError contains detail.

    Declaration

    Swift

    public static let CommandFailed: UInt32             = 0x80000007;
  • The format is invalid.

    Declaration

    Swift

    public static let InvalidFormat: UInt32             = 0x80000008;
  • Requirements are not meet.

    Declaration

    Swift

    public static let PreConditionFailed: UInt32        = 0x80000009;
  • Timeout.

    Declaration

    Swift

    public static let Timeout: UInt32                   = 0x8000000A;
  • Camera is busy. This error code is returned when the client issues a request while the camera is not in idle mode. For example, this code will be returned if the client sends a set setting request while the camera is in record mode. Another example is if the client requests to format the SD card during a file transfer operation.

    Declaration

    Swift

    public static let CameraIsBusy: UInt32              = 0x8000000B;
  • Reach max clients. This error indicates that the camera has reached the maximum number of simultaneous client con-nections. When this error is returned, the camera cannot accept new connection requests.

    Declaration

    Swift

    public static let ReachMaxClients: UInt32           = 0x8000000C;
  • This error is returned when a handheld attempts to execute the START_SESSION command while the camera is connected to a HDMI device.

    Declaration

    Swift

    public static let HDMIInserted: UInt32              = 0x8000000D;
  • This error is returned when there no more space is available in the SD card of the camera.

    Declaration

    Swift

    public static let NoSpace: UInt32                   = 0x8000000E;
  • The camera SD card currently is locked in read only mode.

    Declaration

    Swift

    public static let CardProtected: UInt32             = 0x8000000F;
  • This error is returned when the latest command causes the camera to exhaust the available memory.

    Declaration

    Swift

    public static let NoMemory: UInt32                  = 0x80000010;
  • This error code indicates that the Photo in Video (PIV) operation is not currently permitted. This may be caused by dedicated video resolution settings or by enabling dedicated camera functions.

    Declaration

    Swift

    public static let PhotoInVideoIsNotAllowed: UInt32  = 0x80000011;
  • This error code indicates that there is no sd card.

    Declaration

    Swift

    public static let SDCardIsNotExisted: UInt32        = 0x80000012;
  • This error code indicates that the sd card is not formated.

    Declaration

    Swift

    public static let SDCardIsNotFormated: UInt32       = 0x80000013;
  • This error code indicates that the battery is low.

    Declaration

    Swift

    public static let BatteryIsLow: UInt32              = 0x80000014;
  • This error code indicates that the sd card capacity is low.

    Declaration

    Swift

    public static let SDCardCapacityIsLow: UInt32       = 0x80000015;
  • This error code indicates that the bluetooth is binding now.

    Declaration

    Swift

    public static let BluetoothIsBinding: UInt32        = 0x80000016;
  • This error code indicates that there is no more space for loop recording.

    Declaration

    Swift

    public static let NoSpaceForLoopRecording: UInt32   = 0x80000017;