DJI Mobile SDK Documentation

      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)
      Package:dji.common.error
      Description:

      Constructor Method 1.

      Input Parameters:
      Ccode ccodeError code.
      Return:
      static DJIErrorThe DJIError object.
      final UNKNOWN_ERROR
      static final DJICameraError UNKNOWN_ERROR =
      new DJICameraError("Server error, please contact <dev@dji.com> for help.")
      Package:dji.common.error
      Description:

      Unknown.

      final CHECK_PERMISSION_LEVEL1_IS_INVALID
      static final DJICameraError CHECK_PERMISSION_LEVEL1_IS_INVALID = new DJICameraError ("Level 1 API permission is invalid")
      Package:dji.common.error
      Description:

      Level 1 API permission is invalid. This error indicates that the API Key's level 1 permission is invalid.

      final MEDIA_INVALID_REQUEST_TYPE
      static final DJICameraError MEDIA_INVALID_REQUEST_TYPE = new DJICameraError ("Media download result: media downloading request type is invalid")
      Package:dji.common.error
      Description:

      Result of media downloading request type is invalid.

      final MEDIA_NO_SUBMEDIA_FILES
      static final DJICameraError MEDIA_NO_SUBMEDIA_FILES = new DJICameraError ("Sub media fetching result: No sub media files")
      Package:dji.common.error
      Description:

      No sub media files.

      final MEDIA_REQUEST_CLIENT_ABORT
      static final DJICameraError MEDIA_REQUEST_CLIENT_ABORT = new DJICameraError ("Media download result: the client aborted the download")
      Package:dji.common.error
      Description:

      Result of media downloading: the client aborted the download.

      final MEDIA_REQUEST_SERVER_ABORT
      static final DJICameraError MEDIA_REQUEST_SERVER_ABORT = new DJICameraError("Media download result: the server aborted the download")
      Package:dji.common.error
      Description:

      Result of media downloading: the server aborted the download.

      final MEDIA_REQUEST_DISCONNECT
      static final DJICameraError MEDIA_REQUEST_DISCONNECT = new DJICameraError ("Media download result: the download link disconnected")
      Package:dji.common.error
      Description:

      Result of media downloading: the download link disconnected.

      final COULD_NOT_DELETE_ALL_FILES
      static final DJICameraError COULD_NOT_DELETE_ALL_FILES = new DJICameraError("Could not delete all files")
      Package:dji.common.error
      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")
      Package:dji.common.error
      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")
      Package:dji.common.error
      Description:

      Cannot take panorama photo when aircraft is not flying.

      final GET_REMOTE_MEDIA_FAILED
      static final DJICameraError GET_REMOTE_MEDIA_FAILED = new DJICameraError("Get remote media failed")
      Package:dji.common.error
      Description:

      Failed to get remote media data.

      final GET_THUMBNAIL_FAILED
      static final DJICameraError GET_THUMBNAIL_FAILED = new DJICameraError("Failed to get the thumbnail")
      Package:dji.common.error
      Description:

      Get thumbnail picture failed.

      final NOT_CONNECTED
      static final DJICameraError NOT_CONNECTED = new DJICameraError("Connection is not ok")
      Package:dji.common.error
      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")
      Package:dji.common.error
      Description:

      The camera action executed a timeout.

      final INVALID_PARAMETERS
      static final DJICameraError INVALID_PARAMETERS = new DJICameraError("Camera received invalid parameters")
      Package:dji.common.error
      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")
      Package:dji.common.error
      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")
      Package:dji.common.error
      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")
      Package:dji.common.error
      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")
      Package:dji.common.error
      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")
      Package:dji.common.error
      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")
      Package:dji.common.error
      Description:

      The parameters are not available.
      This error will be returned when there are some errors with the parameters submitted to the camera.

      final MEDIA_FILE_RESET
      static final DJICameraError MEDIA_FILE_RESET = new DJICameraError("Media file is reset. The operation cannot be executed.")
      Package:dji.common.error
      Description:

      Media file is reset. The operation can be executed.

      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.")
      Package:dji.common.error
      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.")
      Package:dji.common.error
      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")
      Package:dji.common.error
      Description:

      No SD card.

      final SD_CARD_FULL
      static final DJICameraError SD_CARD_FULL = new DJICameraError("The Camera's SD Card is full")
      Package:dji.common.error
      Description:

      SD card full.

      final SD_CARD_ERROR
      static final DJICameraError SD_CARD_ERROR = new DJICameraError("Error accessing the SD Card")
      Package:dji.common.error
      Description:

      SD card error.

      final SENSOR_ERROR
      static final DJICameraError SENSOR_ERROR = new DJICameraError("Camera sensor error")
      Package:dji.common.error
      Description:

      Camera sensor error.

      final SYSTEM_ERROR
      static final DJICameraError SYSTEM_ERROR = new DJICameraError("Camera system error ")
      Package:dji.common.error
      Description:

      Camera system error.

      final NO_SUCH_MEDIA_FILE
      static final DJICameraError NO_SUCH_MEDIA_FILE = new DJICameraError ("Media download result: no such file")
      Package:dji.common.error
      Description:

      The media file is not found in SD card.

      final PANORAMA_NOT_FLYING
      static final DJICameraError PANORAMA_NOT_FLYING = new DJICameraError("Panorama can not be used before takeoff")
      Package:dji.common.error
      Description:

      Panorama mode cannot work until the aircraft takes off.

      Inherited Methods:
      dji.common.error.DJIError
      method
      method getDJIError
      static DJIError getDJIError(int errorCode)
      Package:dji.common.error
      Description:

      Returns the specific error in the DJIFlightHubError according to the error code.

      Input Parameters:
      int errorCodeerrorCode for DJIFlightHubError.
      Return:
      static DJIErrorAn NSError object initialized with errorCode. If the errorCode was 0, returns nil.
      method getDJIError
      static DJIError getDJIError(int errorCode)
      Package:dji.sdk.utmiss
      Description:

      Get DJIUTMISSError.

      Input Parameters:
      int errorCodeAn int value of error code.
      Return:
      static DJIErrorAn object of DJIError.
      method getDescription
      String getDescription()
      Package:dji.common.error
      Description:

      Returns the description of the error code.

      Return:
      StringThe description of the error code.
      method setDescription
      void setDescription(String desc)
      Package:dji.common.error
      Description:

      Sets the description for the error code.

      Input Parameters:
      String descDescription string.