class DJICameraError
@EXClassNullAway class DJICameraError extends DJIError
Package: dji.common.error Inherits From: DJIError
Description:
Defines all camera-related errors.
Class Members:
method getDJIError
static DJIError getDJIError (Ccode ccode)
Description:
Constructor Method 1.
Return:
final UNKNOWN_ERROR
static final DJICameraError UNKNOWN_ERROR = new DJICameraError("Server error, please contact <dev@dji.com> for help." )
Description:
Unknown.
final CHECK_PERMISSION_LEVEL1_IS_INVALID
static final DJICameraError CHECK_PERMISSION_LEVEL1_IS_INVALID = new DJICameraError ("Level 1 API permission is invalid" )
Description:
Level 1 API permission is invalid. This error indicates that the API Key's level 1 permission is invalid.
final COULD_NOT_DELETE_ALL_FILES
static final DJICameraError COULD_NOT_DELETE_ALL_FILES = new DJICameraError("Could not delete all files" )
Description:
Could not delete all files.
final CANNOT_SET_PARAMETERS_IN_THIS_STATE
static final DJICameraError CANNOT_SET_PARAMETERS_IN_THIS_STATE = new DJICameraError("Cannot set the parameters in this state" )
Description:
Cannot set the parameters in this state.
final CANNOT_SHOOT_PHOTO_WHEN_NOT_FLY
static final DJICameraError CANNOT_SHOOT_PHOTO_WHEN_NOT_FLY = new DJICameraError("Cannot take panorama photo when aircraft is not flying" )
Description:
Cannot take panorama photo when aircraft is not flying.
final GET_THUMBNAIL_FAILED
static final DJICameraError GET_THUMBNAIL_FAILED = new DJICameraError("Failed to get the thumbnail" )
Description:
Get thumbnail picture failed.
final NOT_CONNECTED
static final DJICameraError NOT_CONNECTED = new DJICameraError("Connection is not ok" )
Description:
Camera connection isn't ok.
final EXEC_TIMEOUT
static final DJICameraError EXEC_TIMEOUT = new DJICameraError("Camera's execution of this action has timed out" )
Description:
The camera action executed a timeout.
final INVALID_PARAMETERS
static final DJICameraError INVALID_PARAMETERS = new DJICameraError("Camera received invalid parameters" )
Description:
Camera invalid parameters. This error will be returned when the sent parameters are invalid.
final UNSUPPORTED_CMD_STATE
static final DJICameraError UNSUPPORTED_CMD_STATE = new DJICameraError("Camera is busy or the command is not supported in the Camera's current state" )
Description:
The camera does not support the command in the current state. This error is returned when the camera is busy and the camera is unsupported for the command in the current state.
final DIGITAL_ZOOM_NOT_SUPPORTED_RESOLUTION
static final DJICameraError DIGITAL_ZOOM_NOT_SUPPORTED_RESOLUTION = new DJICameraError("Not supported when the resolution is over 4K" )
Description:
Failed to set digital zoom, because the resolution is over 4K.
final DIGITAL_ZOOM_NOT_SUPPORTED_VIEW_MODE
static final DJICameraError DIGITAL_ZOOM_NOT_SUPPORTED_VIEW_MODE = new DJICameraError("Not supported when in app full view mode" )
Description:
Failed to set digital zoom, because app is in full view mode.
final PARAMETERS_SET_FAILED
static final DJICameraError PARAMETERS_SET_FAILED = new DJICameraError("Camera failed to set the parameters it received" )
Description:
Failed to set the parameters. This error will be returned when setting the camera parameters fails.
final PARAMETERS_GET_FAILED
static final DJICameraError PARAMETERS_GET_FAILED = new DJICameraError("Camera param get failed" )
Description:
Failed to get the parameters. This error will be returned when getting the camera parameters fails.
final PARAMETERS_NOT_AVAILABLE
static final DJICameraError PARAMETERS_NOT_AVAILABLE = new DJICameraError("Camera received invalid parameters" )
Description:
The parameters are not available. This error will be returned when there are some errors with the parameters submitted to the camera.
final CUSTOM_INFO_LENGTH_ERROR
static final DJICameraError CUSTOM_INFO_LENGTH_ERROR = new DJICameraError("Custom info should not be null and no more than 32 bytes." )
Description:
Custom info should not be null and no more than 32 bytes.
final CANNOT_SET_PARAMETERS_IN_SUPER_RESOLUTION_STATE
static final DJICameraError CANNOT_SET_PARAMETERS_IN_SUPER_RESOLUTION_STATE = new DJICameraError("Cannot set the parameters in Super Resolution state." )
Description:
Cannot set the parameters in Super Resolution state.
final SD_CARD_NOT_INSERTED
static final DJICameraError SD_CARD_NOT_INSERTED = new DJICameraError("Camera has no SD Card" )
Description:
No SD card.
final SD_CARD_FULL
static final DJICameraError SD_CARD_FULL = new DJICameraError("The Camera's SD Card is full" )
Description:
SD card full.
final SD_CARD_ERROR
static final DJICameraError SD_CARD_ERROR = new DJICameraError("Error accessing the SD Card" )
Description:
SD card error.
final SENSOR_ERROR
static final DJICameraError SENSOR_ERROR = new DJICameraError("Camera sensor error" )
Description:
Camera sensor error.
final SYSTEM_ERROR
static final DJICameraError SYSTEM_ERROR = new DJICameraError("Camera system error " )
Description:
Camera system error.
final PANORAMA_NOT_FLYING
static final DJICameraError PANORAMA_NOT_FLYING = new DJICameraError("Panorama can not be used before takeoff" )
Description:
Panorama mode cannot work until the aircraft takes off.
Inherited Methods:
dji.common.error.DJIError
method
method getDJIError
static DJIError getDJIError (int errorCode)
Description:
Returns the specific error in the DJIFlightHubError
according to the error code.
Return:
static DJIError An NSError object initialized with errorCode. If the errorCode was 0, returns nil.
method getDJIError
static DJIError getDJIError (int errorCode)
Description:
Get DJIUTMISSError.
int errorCode An int value of error code.
Return:
method getDescription
Description:
Returns the description of the error code.
Return:
String The description of the error code.
method setDescription
void setDescription (String desc)
Description:
Sets the description for the error code.
String desc Description string.