DJI Mobile SDK Documentation

      class DJISDKCacheError

      @EXClassNullAway
      class DJISDKCacheError extends DJIError
      Package:dji.common.error
      Inherits From:DJIError
      Description:

      Class that handles all errors about SDK Cache.

      Class Members:
      final KEY_UNSUPPORTED
      static final DJISDKCacheError KEY_UNSUPPORTED = new DJISDKCacheError("The feature is unsupported.")
      Package:dji.common.error
      Description:

      The key is not supported.

      final INVALID_VALUE
      static final DJISDKCacheError INVALID_VALUE = new DJISDKCacheError("Received invalid value")
      Package:dji.common.error
      Description:

      Invalid parameters.
      This error will be returned when the sent parameters are invalid.

      final INVALID_KEY_FORMAT
      static final DJISDKCacheError INVALID_KEY_FORMAT = new DJISDKCacheError("The key does not match the "
      + "format: component/index/key with index being a number or *.")
      Package:dji.common.error
      Description:

      The key does not match the format: component/index/key with index being a number or *.

      final INVALID_KEY_FOR_COMPONENT
      static final DJISDKCacheError INVALID_KEY_FOR_COMPONENT =
      new DJISDKCacheError("Invalid key for component")
      Package:dji.common.error
      Description:

      The key does not exist in component abstraction.

      final NO_GET_FOR_KEY
      static final DJISDKCacheError NO_GET_FOR_KEY = new DJISDKCacheError("The feature is not gettable.")
      Package:dji.common.error
      Description:

      The key is not gettable.

      final NO_SET_FOR_KEY
      static final DJISDKCacheError NO_SET_FOR_KEY = new DJISDKCacheError("The feature is not settable.")
      Package:dji.common.error
      Description:

      The key is not settable.

      final UNKNOWN_ACCESS_TYPE
      static final DJISDKCacheError UNKNOWN_ACCESS_TYPE = new DJISDKCacheError("The access type requested for the"
      + "key unknown. This is an implementation error in the cache as only valid types should be exposed"
      + "to the public interfaces.")
      Package:dji.common.error
      Description:

      The access type requested for the key is unknown. This is an implementation error in the cache as only valid types should be exposed to the public interface.

      final DISCONNECTED
      static final DJISDKCacheError DISCONNECTED =
      new DJISDKCacheError("The abstraction is no longer" + " connected to real hardware.")
      Package:dji.common.error
      Description:

      The abstraction is no longer connected to real hardware.

      final NO_STORAGE_ACCESS
      static final DJISDKCacheError NO_STORAGE_ACCESS =
      new DJISDKCacheError("Can not access to" + " component storage.")
      Package:dji.common.error
      Description:

      Can not access to component storage.

      final NO_ACTION_FOR_KEY
      static final DJISDKCacheError NO_ACTION_FOR_KEY = new DJISDKCacheError("The feature is not actionable.")
      Package:dji.common.error
      Description:

      The key is not actionable.

      final SETTER_VALUE_TYPE_MISMATCH
      static final DJISDKCacheError SETTER_VALUE_TYPE_MISMATCH =
      new DJISDKCacheError("The value type is not correct.")
      Package:dji.common.error
      Description:

      The key does not match the format: component/index/key with index being a number of *.

      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.