public class

DJISDKError

extends DJIError
java.lang.Object
   ↳ dji.sdk.base.DJIError
     ↳ dji.sdk.base.DJISDKError

Class Overview

Catch all for various errors across the SDK which includes:

  • Common
  • SDK Registration
  • Component specific (Camera, FC, RC, Gimbal, Battery)

Summary

Fields
public static final DJISDKError APPLICATION_NOT_ACTIVATED Application is not registered.
public static final DJISDKError COMMAND_EXECUTION_ERROR There was an error executing the command.
public static final DJISDKError CONNECTION_TO_SDK_ERROR There was an error connecting to the SDK.
public static final DJISDKError FEATURE_NOT_SUPPORTED This feature is not supported in the SDK.
public static final DJISDKError GET_PARAMETERS_ERROR Getting parameters operation failed.
public static final DJISDKError INVALID_PARAMETERS The parameters are invalid.
public static final DJISDKError NOT_DEFINED Not defined error.
public static final DJISDKError REGISTRATION_AESENCRYPT_ERROR Server error, please contact for help.
public static final DJISDKError REGISTRATION_AESENCRYPT_FAILED Server error, please contact for help.
public static final DJISDKError REGISTRATION_APPKEY_INVALID_PLATFORM This error occurs when an application key was given for a specific platform and is trying to be used to activate an application for another platform.
public static final DJISDKError REGISTRATION_APPKEY_LEVEL_NOT_PERMITTED There are two levels for the SDK framework, level 1 and level 2.
public static final DJISDKError REGISTRATION_APPKEY_NOT_EXIST The application key does not exist.
public static final DJISDKError REGISTRATION_APPKEY_PROHIBITED The application key is prohibited.
public static final DJISDKError REGISTRATION_BUNDLE_NOT_MATCH The bundle identifier of your application does not match the bundle identifier you registered on the developer portal when you applied to obtain an application key.
public static final DJISDKError REGISTRATION_COULD_NOT_CONNECT_TO_INTERNET The application is not able to connect to the Internet the first time it tries to register the API Key.
public static final DJISDKError REGISTRATION_DEVICE_NOT_MATCH The attempt to copy metadata from another registered device to a device that is currently connected is not permitted.
public static final DJISDKError REGISTRATION_EMPTY_APPKEY No application key was provided.
public static final DJISDKError REGISTRATION_HTTP_TIMEOUT The network you are trying to reach is busy, or the server is unreachable.
public static final DJISDKError REGISTRATION_INVALID_APPKEY The application key you provided is incorrect.
public static final DJISDKError REGISTRATION_INVALID_METADATA The activation data received from server is invalid.
public static final DJISDKError REGISTRATION_INVALID_UUID Server error, please contact for help.
public static final DJISDKError REGISTRATION_MAX_ACTIVATION_COUNT_REACHED There is a maximum number of devices one application key can be used to activate.
public static final DJISDKError REGISTRATION_SERVER_DATA_ABNORMAL There is a server error.
public static final DJISDKError REGISTRATION_SERVER_PARSE_FAILSE There is a server error.
public static final DJISDKError REGISTRATION_SERVER_WRITE_FAILS There is a server error.
public static final DJISDKError REGISTRATION_SUCCESS API Key successfully registered.
public static final DJISDKError REGISTRATION_UNKNOWN_ERROR Unknown error occurred during registration.
public static final DJISDKError SEND_DATA_ERROR There was an error sending the data.
public static final DJISDKError SET_PARAMETER_ERROR Setting parameters operation failed.
public static final DJISDKError SYSTEM_BUSY System is busy, please retry later.
[Expand]
Inherited Fields
From class dji.sdk.base.DJIError
Public Methods
String getDescription()
Returns the description of the error code.
void setDescription(String desc)
Sets the description for the error code.
[Expand]
Inherited Methods
From class dji.sdk.base.DJIError
From class java.lang.Object

Fields

public static final DJISDKError APPLICATION_NOT_ACTIVATED

Application is not registered.

public static final DJISDKError COMMAND_EXECUTION_ERROR

There was an error executing the command.

public static final DJISDKError CONNECTION_TO_SDK_ERROR

There was an error connecting to the SDK.

public static final DJISDKError FEATURE_NOT_SUPPORTED

This feature is not supported in the SDK.

public static final DJISDKError GET_PARAMETERS_ERROR

Getting parameters operation failed.

public static final DJISDKError INVALID_PARAMETERS

The parameters are invalid. Please review and submit the request.

public static final DJISDKError NOT_DEFINED

Not defined error.

public static final DJISDKError REGISTRATION_AESENCRYPT_ERROR

Server error, please contact for help.

public static final DJISDKError REGISTRATION_AESENCRYPT_FAILED

Server error, please contact for help.

public static final DJISDKError REGISTRATION_APPKEY_INVALID_PLATFORM

This error occurs when an application key was given for a specific platform and is trying to be used to activate an application for another platform. For instance, if an application key was given for an iOS application and is used to activate an Android application, this error will occur.

public static final DJISDKError REGISTRATION_APPKEY_LEVEL_NOT_PERMITTED

There are two levels for the SDK framework, level 1 and level 2. If an application key was given under one level and is trying to be used to active an application using another level SDK framework, this error will occur.

public static final DJISDKError REGISTRATION_APPKEY_NOT_EXIST

The application key does not exist. Please make sure the application key you are entering is correct.

public static final DJISDKError REGISTRATION_APPKEY_PROHIBITED

The application key is prohibited. This occurs when an application key that has already been released by DJI is revoked. Please contact DJI for assistance.

public static final DJISDKError REGISTRATION_BUNDLE_NOT_MATCH

The bundle identifier of your application does not match the bundle identifier you registered on the developer portal when you applied to obtain an application key.

public static final DJISDKError REGISTRATION_COULD_NOT_CONNECT_TO_INTERNET

The application is not able to connect to the Internet the first time it tries to register the API Key.

public static final DJISDKError REGISTRATION_DEVICE_NOT_MATCH

The attempt to copy metadata from another registered device to a device that is currently connected is not permitted. For example, if a developer has two devices and the application is activated with the app key on one of the devices and if the other device is plugged in and tries to register the application, this error will occur.

public static final DJISDKError REGISTRATION_EMPTY_APPKEY

No application key was provided.

public static final DJISDKError REGISTRATION_HTTP_TIMEOUT

The network you are trying to reach is busy, or the server is unreachable.

public static final DJISDKError REGISTRATION_INVALID_APPKEY

The application key you provided is incorrect.

public static final DJISDKError REGISTRATION_INVALID_METADATA

The activation data received from server is invalid. Please retry connecting to the Internet and try again.

public static final DJISDKError REGISTRATION_INVALID_UUID

Server error, please contact for help.

public static final DJISDKError REGISTRATION_MAX_ACTIVATION_COUNT_REACHED

There is a maximum number of devices one application key can be used to activate. The maximum number of devices is given when an application is registered on the developer portal. This error will occur if the maximum number of activations has been reached.

public static final DJISDKError REGISTRATION_SERVER_DATA_ABNORMAL

There is a server error. Please contact DJI for assistance.

public static final DJISDKError REGISTRATION_SERVER_PARSE_FAILSE

There is a server error. Please contact DJI for assistance.

public static final DJISDKError REGISTRATION_SERVER_WRITE_FAILS

There is a server error. Please contact DJI for assistance.

public static final DJISDKError REGISTRATION_SUCCESS

API Key successfully registered.

public static final DJISDKError REGISTRATION_UNKNOWN_ERROR

Unknown error occurred during registration.

public static final DJISDKError SEND_DATA_ERROR

There was an error sending the data.

public static final DJISDKError SET_PARAMETER_ERROR

Setting parameters operation failed.

public static final DJISDKError SYSTEM_BUSY

System is busy, please retry later.

Public Methods

public String getDescription ()

Returns the description of the error code.

public void setDescription (String desc)

Sets the description for the error code.