DJI Mobile SDK Documentation

      class DataProtectionError

      @EXClassNullAway
      class DataProtectionError extends DJIError
      Package:dji.sdk.dataprotection
      Inherits From:DJIError
      Description:

      The class for all errors related to data protection.

      Class Members:
      final CANNOT_ADD_AUTHORIZATION
      static final DataProtectionError CANNOT_ADD_AUTHORIZATION =
      new DataProtectionError("Cannot authorize this type data.")
      Package:dji.sdk.dataprotection
      Description:

      The authorization of this type of data has failed.

      final CANNOT_REMOVE_AUTHORIZATION
      static final DataProtectionError CANNOT_REMOVE_AUTHORIZATION =
      new DataProtectionError("Cannot remove authorization for this type data.")
      Package:dji.sdk.dataprotection
      Description:

      The removal of this type of data's authorization has failed.

      final NO_HARDWARE_INFO_AUTHORIZATION
      static final DataProtectionError NO_HARDWARE_INFO_AUTHORIZATION =
      new DataProtectionError("Do not have authorization for hardware information .")
      Package:dji.sdk.dataprotection
      Description:

      SDK does not have authorization to access hardware information.

      final NOT_ENOUGH_AUTHORIZATION
      static final DataProtectionError NOT_ENOUGH_AUTHORIZATION =
      new DataProtectionError("Do not have enough authorization to access data.")
      Package:dji.sdk.dataprotection
      Description:

      SDK does not have authorization to access some privacy related information.

      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 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.