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." )
Description:
The key is not supported.
final INVALID_VALUE
static final DJISDKCacheError INVALID_VALUE = new DJISDKCacheError("Received invalid value" )
Description:
Invalid parameters. This error will be returned when the sent parameters are invalid.
final INVALID_KEY_FOR_COMPONENT
static final DJISDKCacheError INVALID_KEY_FOR_COMPONENT = new DJISDKCacheError("Invalid key for component" )
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." )
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." )
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." )
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." )
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." )
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." )
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." )
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)
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.