DJI Mobile SDK Documentation

      class DJIAccessoryAggregationError

      class DJIAccessoryAggregationError extends DJIError
      Package:dji.common.error
      Inherits From:DJIError
      Description:

      Errors related to accessories on the aircraft (e.g. spotlights, speakers).

      Class Members:

      Members

      final ACCESSORY_NOT_CONNECTED_ERROR
      static final DJIAccessoryAggregationError
      ACCESSORY_NOT_CONNECTED_ERROR = new DJIAccessoryAggregationError("The accessory is not connected.")
      Package:dji.common.error
      Description:

      The accessory is not connected. Also update the implementation.

      final FILE_NAME_LENGTH_INVALID
      static final DJIAccessoryAggregationError FILE_NAME_LENGTH_INVALID = new DJIAccessoryAggregationError("The file name exceeds the maximum length (20 characters).")
      Package:dji.common.error
      Description:

      The file name exceeds the maximum length (20 characters).

      final DUPLICATION_OF_FILE_NAME
      static final DJIAccessoryAggregationError
      DUPLICATION_OF_FILE_NAME = new DJIAccessoryAggregationError("The file name is already taken in the aircraft. Choose a different file name.")
      Package:dji.common.error
      Description:

      The file name is already taken in the aircraft. Choose a different file name.

      final FILE_NAME_EMPTY_ERROR
      static final DJIAccessoryAggregationError
      FILE_NAME_EMPTY_ERROR = new DJIAccessoryAggregationError("A file name cannot be empty.")
      Package:dji.common.error
      Description:

      A file name cannot be empty.

      final FILE_NOT_EXIST_ERROR
      static final DJIAccessoryAggregationError
      FILE_NOT_EXIST_ERROR = new DJIAccessoryAggregationError("The file does not exist.")
      Package:dji.common.error
      Description:

      The file does not exist in the aircraft.

      final FILE_CREATED_ERROR
      static final DJIAccessoryAggregationError
      FILE_CREATED_ERROR = new DJIAccessoryAggregationError("An error occurs when creating the file.")
      Package:dji.common.error
      Description:

      An error occurs when creating the file.

      final FILE_INDEX_UNAVAIABLE_ERROR
      static final DJIAccessoryAggregationError
      FILE_INDEX_UNAVAIABLE_ERROR = new DJIAccessoryAggregationError("There is no more file index available for the file.")
      Package:dji.common.error
      Description:

      There is no more file index available for the file.

      final RENAME_FILE_ERROR
      static final DJIAccessoryAggregationError
      RENAME_FILE_ERROR = new DJIAccessoryAggregationError("Error occurs when renaming the file.")
      Package:dji.common.error
      Description:

      Error occurs when renaming the file.

      final DATA_TRANSMISSION_DISCONNECTION_ERROR
      static final DJIAccessoryAggregationError DATA_TRANSMISSION_DISCONNECTION_ERROR = new DJIAccessoryAggregationError("The connection of the speaker is broken and data transmission cannot start.")
      Package:dji.common.error
      Description:

      The connection of the speaker is broken and data transmission cannot start.

      final WRONG_DATA_TRANSIMISSION_STATE
      static final DJIAccessoryAggregationError WRONG_DATA_TRANSIMISSION_STATE = new DJIAccessoryAggregationError("The data transimission operation cannot be executed in the current state.")
      Package:dji.common.error
      Description:

      The data transimission operation cannot be executed in the current state.

      final DATA_CORRUPTION_ERROR
      static final DJIAccessoryAggregationError DATA_CORRUPTION_ERROR = new DJIAccessoryAggregationError("Data validation failed. Data is corrupted during the transmission.")
      Package:dji.common.error
      Description:

      Data validation failed. Data is corrupted during the transmission.

      final CANCELED_BY_USER
      static final DJIAccessoryAggregationError
      CANCELED_BY_USER = new DJIAccessoryAggregationError("The ongoing data transmission is cancelled.")
      Package:dji.common.error
      Description:

      The ongoing data transmission is cancelled.

      final INTERRUPTED_BY_TIMEOUT_ERROR
      static final DJIAccessoryAggregationError INTERRUPTED_BY_TIMEOUT_ERROR = new DJIAccessoryAggregationError("The ongoing data transmission is interrupted by timeout error.")
      Package:dji.common.error
      Description:

      The ongoing data transmission is interrupted by timeout error.

      final STORAGE_FULL
      static final DJIAccessoryAggregationError
      STORAGE_FULL = new DJIAccessoryAggregationError("The storage is full.")
      Package:dji.common.error
      Description:

      The storage is full.

      final REJECTED_BY_FIRMWARE
      static final DJIAccessoryAggregationError
      REJECTED_BY_FIRMWARE = new DJIAccessoryAggregationError("The operation is rejected by the firmware because state error.")
      Package:dji.common.error
      Description:

      The operation is rejected by the firmware because state error.

      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.