class DJIFlySafeError
@EXClassNullAway class DJIFlySafeError extends DJIError
Package: dji.common.error Inherits From: DJIError
Description:
This class contains the error type for GEO feature.
Class Members:
method getDJIError
static DJIError getDJIError (Ccode ccode)
Description:
Returns the specific error in DJIGeoError according to the error code.
Return:
final COULD_NOT_CONNECT_TO_INTERNET_FOR_PULLING_DATA
static final DJIFlySafeError COULD_NOT_CONNECT_TO_INTERNET_FOR_PULLING_DATA = new DJIFlySafeError("Could not connect to the Internet while SDK try to pull the latest cached data from server." )
Description:
Could not connect to the Internet while SDK try to pull the latest cached data from server.
final COULD_NOT_FIND_UNLOCKED_RECORD_IN_THE_SERVER
static final DJIFlySafeError COULD_NOT_FIND_UNLOCKED_RECORD_IN_THE_SERVER = new DJIFlySafeError("Could not find unlocked record in the server." )
Description:
Could not find unlocked record in the server.
final UNLOCKED_RECORD_NOT_FIND_ON_AIRCRAFT
static final DJIFlySafeError UNLOCKED_RECORD_NOT_FIND_ON_AIRCRAFT = new DJIFlySafeError("Could not find unlocked record on the aircraft." )
Description:
Could not find unlocked record on the aircraft.
final NO_DATA_IN_DATABASE
static final DJIFlySafeError NO_DATA_IN_DATABASE = new DJIFlySafeError("No data in database" )
Description:
No data in database.
final ACCOUNT_NOT_LOGGED_IN_OR_NOT_AUTHORIZED
static final DJIFlySafeError ACCOUNT_NOT_LOGGED_IN_OR_NOT_AUTHORIZED = new DJIFlySafeError("Not logged into the account or the account is not authorized." )
Description:
Not logged in account or account did not get authorization.
final FLIGHT_CONTROLLER_SERIAL_NUMBER_IS_NOT_READY
static final DJIFlySafeError FLIGHT_CONTROLLER_SERIAL_NUMBER_IS_NOT_READY = new DJIFlySafeError("The flight controller SN is not ready, could not start to execute next step, please try again later." )
Description:
The flight controller SN is not ready.
final COULD_NOT_ENABLE_OR_DISABLE_GEO_SYSTEM_WHILE_AIRCRAFT_IS_IN_THE_SKY
static final DJIFlySafeError COULD_NOT_ENABLE_OR_DISABLE_GEO_SYSTEM_WHILE_AIRCRAFT_IS_IN_THE_SKY = new DJIFlySafeError("Could not enable or disable the GEO system while the aircraft is flying." )
Description:
Could not enable or disable the GEO system while the aircraft is flying.
final NOT_LOGGED_IN
static final DJIFlySafeError NOT_LOGGED_IN = new DJIFlySafeError("No logged in account." )
Description:
No user account recorded.
final INVALID_SIMULATED_LOCATION
static final DJIFlySafeError INVALID_SIMULATED_LOCATION = new DJIFlySafeError("INVALID simulation location." )
Description:
The simulated aircraft location is not valid. During the simulation, a location is valid if it is within 50km of (37.460484, -122.115312).
final NO_MCSN
static final DJIFlySafeError NO_MCSN = new DJIFlySafeError("No MCSN" )
Description:
No MCSN Error.
final FC_QUERY_FAILED
static final DJIFlySafeError FC_QUERY_FAILED = new DJIFlySafeError("Query Flight Control License Failed" )
Description:
Unlock error, can't get license from the drone.
final FC_SET_ENABLE_FAILED
static final DJIFlySafeError FC_SET_ENABLE_FAILED = new DJIFlySafeError("Set Flight Control License Failed" )
Description:
Unlock error, can't enable license.
final INVALID_USER_ID
static final DJIFlySafeError INVALID_USER_ID = new DJIFlySafeError("Set Enable With Invalid User Id." )
Description:
Set enabled with invalid user id.
final NO_SUCH_LICENSE
static final DJIFlySafeError NO_SUCH_LICENSE = new DJIFlySafeError("Set enable with no exist license" )
Description:
License error, can't find the correct license.
final VERSION_MISMATCH
static final DJIFlySafeError VERSION_MISMATCH = new DJIFlySafeError("Set Enable Version Not Match" )
Description:
License error, incorrect length of request data.
final REQUEST_PARAM_ERROR
static final DJIFlySafeError REQUEST_PARAM_ERROR = new DJIFlySafeError("Set Enable Param Error" )
Description:
License error, incorrect value of request data.
final SET_CERTIFICATE_NOT_ALLOWED_WHEN_DRONE_IN_SKY
static final DJIFlySafeError SET_CERTIFICATE_NOT_ALLOWED_WHEN_DRONE_IN_SKY = new DJIFlySafeError("Set Enable DroneIn Sky" )
Description:
License error, can't set license when the drone is flying.
final USER_ID_ERROR
static final DJIFlySafeError USER_ID_ERROR = new DJIFlySafeError("Upload License Data User Id Error" )
Description:
License error, incorrect checksum.
final LICENSE_DATA_INDEX_ERROR
static final DJIFlySafeError LICENSE_DATA_INDEX_ERROR = new DJIFlySafeError("Upload License Data Index Error" )
Description:
License error, wrong index please retry.
final LICENSE_DATA_ERROR
static final DJIFlySafeError LICENSE_DATA_ERROR = new DJIFlySafeError("Upload License Data Error" )
Description:
Upload license data with error data.
final CRC_CHECK_FAILED
static final DJIFlySafeError CRC_CHECK_FAILED = new DJIFlySafeError("Upload License Data Crc Check Failed" )
Description:
License error, incorrect crc.
final SN_CHECK_FAILED
static final DJIFlySafeError SN_CHECK_FAILED = new DJIFlySafeError("Upload License Data SN Check Failed" )
Description:
SLicense error, incorrect serial number.
final VERSION_CHECKE_ERROR
static final DJIFlySafeError VERSION_CHECKE_ERROR = new DJIFlySafeError("Version Check Error,The current flight control version is too low and needs to be upgraded" )
Description:
License error, wrong version, please try to update the firmware of the drone.
final RENEW_CERTIFICATE_NOT_ALLOWED_WHEN_DRONE_IN_SKY
static final DJIFlySafeError RENEW_CERTIFICATE_NOT_ALLOWED_WHEN_DRONE_IN_SKY = new DJIFlySafeError("Certificate Renewal Not Allowed When Drone In Sky" )
Description:
License error, can't update license when the drone is flying.
final LICENSE_UNLOCK_NOT_SUPPORTED
static final DJIFlySafeError LICENSE_UNLOCK_NOT_SUPPORTED = new DJIFlySafeError("License Unlock Not Supported" )
Description:
Unlock error, not supported by the drone.
final REMOVE_LICENSES_NOT_ALLOWED_WHEN_DRONE_IN_SKY
static final DJIFlySafeError REMOVE_LICENSES_NOT_ALLOWED_WHEN_DRONE_IN_SKY = new DJIFlySafeError("Remove Licenses Not Allowed When Drone In Sky" )
Description:
License error, can't delete license when the drone is flying.
final REMOVE_LICENSES_NOT_SUPPORTED
static final DJIFlySafeError REMOVE_LICENSES_NOT_SUPPORTED = new DJIFlySafeError("Remove Licenses Not Support" )
Description:
License error, not supported by the drone.
final LICENSE_DATA_NO_DATA_ERROR
static final DJIFlySafeError LICENSE_DATA_NO_DATA_ERROR = new DJIFlySafeError("License Data No Data Error" )
Description:
License error, no data.
final LOW_FIRMWARE_VERSION_ERROR
static final DJIFlySafeError LOW_FIRMWARE_VERSION_ERROR = new DJIFlySafeError("Low Firmware Version Error" )
Description:
License error, please update the firmware of the drone.
final UNLOCK_VERSION_ERROR
static final DJIFlySafeError UNLOCK_VERSION_ERROR = new DJIFlySafeError("Unlock Version Error" )
Description:
Unlock error, incorrect unlock version.
final OLD_DATA_ERROR
static final DJIFlySafeError OLD_DATA_ERROR = new DJIFlySafeError("Old Data Error" )
Description:
License error, local data is obsolete.
final INVALID_KEY_VERSION_ERROR
static final DJIFlySafeError INVALID_KEY_VERSION_ERROR = new DJIFlySafeError("Invalid Key Version Error" )
Description:
License error, invalid key version.
final QUERY_AREA_ID_NO_EXIST_LICENSE_ERROR
static final DJIFlySafeError QUERY_AREA_ID_NO_EXIST_LICENSE_ERROR = new DJIFlySafeError("Query Area Id No Exist License Error" )
Description:
License error, license ID is not exist.
final SERVER_INVALID_TOKEN_ERROR
static final DJIFlySafeError SERVER_INVALID_TOKEN_ERROR = new DJIFlySafeError("Invalid Token On Server Error" )
Description:
Server error, invalid token.
final SERVER_UNIDENTIFIED_PHONE_ERROR
static final DJIFlySafeError SERVER_UNIDENTIFIED_PHONE_ERROR = new DJIFlySafeError("Unidentified Phone" )
Description:
Server error, unknown phone.
final SERVER_NOT_UNLOCKABLE_AREA_ERROR
static final DJIFlySafeError SERVER_NOT_UNLOCKABLE_AREA_ERROR = new DJIFlySafeError("Unlock Not Unlockable Area" )
Description:
Server error, invalid area.
final SERVER_UNLOCK_TOO_MANY_AREAS_ERROR
static final DJIFlySafeError SERVER_UNLOCK_TOO_MANY_AREAS_ERROR = new DJIFlySafeError("Unlock Too Many Areas" )
Description:
Server error, too many areas.
final SERVER_TOO_MUCH_LICENSE_ERROR
static final DJIFlySafeError SERVER_TOO_MUCH_LICENSE_ERROR = new DJIFlySafeError("Too Much License" )
Description:
Server error, too many licenses.
final NO_NETWORK
static final DJIFlySafeError NO_NETWORK = new DJIFlySafeError("No Network" )
Description:
Network error, invalid network.
final NETWORK_SERVER_DATA_ERROR
static final DJIFlySafeError NETWORK_SERVER_DATA_ERROR = new DJIFlySafeError("Network Server Data Error" )
Description:
Network error, data parsing failed in server.
final LOCAL_USER_TOKEN_IS_INVALID
static final DJIFlySafeError LOCAL_USER_TOKEN_IS_INVALID = new DJIFlySafeError("Local User Token Is Invalid" )
Description:
Network error, invalid token.
final NETWORK_PAGE_NOT_FOUND
static final DJIFlySafeError NETWORK_PAGE_NOT_FOUND = new DJIFlySafeError("Network Page Not Found" )
Description:
Network error, page not found(deprecated).
final PM_WRONG_SERIAL_NUMBER
static final DJIFlySafeError PM_WRONG_SERIAL_NUMBER = new DJIFlySafeError("Pack Manager Wrong Serial Number" )
Description:
Package error, wrong serial number of the drone.
final DB_FILE_ERROR
static final DJIFlySafeError DB_FILE_ERROR = new DJIFlySafeError("Data Base File Error" )
Description:
Database error, can't unzip the database.
final DB_INVALID_PARAMS
static final DJIFlySafeError DB_INVALID_PARAMS = new DJIFlySafeError("Data Base Invalid Params" )
Description:
Database error, invalid parameters when updating database.
final DB_NOT_READY
static final DJIFlySafeError DB_NOT_READY = new DJIFlySafeError("Data Base Not Ready" )
Description:
Database error, load database fail.
final SERVER_JSON_DATA_PARSE_ERROR
static final DJIFlySafeError SERVER_JSON_DATA_PARSE_ERROR = new DJIFlySafeError("Server Json Data Parse Error" )
Description:
Server error, incorrect Json data.
final NETWORK_SIGNATURE_ERROR
static final DJIFlySafeError NETWORK_SIGNATURE_ERROR = new DJIFlySafeError("Network Signature Error" )
Description:
Network error, invalid signature.
final NETWORK_CHECK_SIGNATURE_ERROR
static final DJIFlySafeError NETWORK_CHECK_SIGNATURE_ERROR = new DJIFlySafeError("Network Check Server Signature Error" )
Description:
Network error, invalid signature (deprecated).
final NETWORK_INVALID_REQUESET
static final DJIFlySafeError NETWORK_INVALID_REQUESET = new DJIFlySafeError("Network Invalid Request" )
Description:
Network error, invalid request.
final NETWORK_USER_IS_NOT_LOGIN
static final DJIFlySafeError NETWORK_USER_IS_NOT_LOGIN = new DJIFlySafeError("Network User Is Not Login" )
Description:
Network error, user is not login.
final NETWORK_OPERATION_CANCEL_BY_USER
static final DJIFlySafeError NETWORK_OPERATION_CANCEL_BY_USER = new DJIFlySafeError("Network Operation Cancel By User" )
Description:
Network error, canceled by user(deprecated).
final PM_TIMEOUT
static final DJIFlySafeError PM_TIMEOUT = new DJIFlySafeError("Pack Manager Timeout" )
Description:
Package error, time out when waiting for the Ack package from the drone.
final PM_WRONG_UNLOCK_VERSION
static final DJIFlySafeError PM_WRONG_UNLOCK_VERSION = new DJIFlySafeError("Pack Manager Wrong Unlock Version" )
Description:
Unlock error, unlock version from the drone should be "0, 1, or 2".
final PM_WRONG_DEVICE_ID
static final DJIFlySafeError PM_WRONG_DEVICE_ID = new DJIFlySafeError("Pack Manager Wrong Device Id" )
Description:
Package error, wrong device ID.
final INVALID_AREA_IDS
static final DJIFlySafeError INVALID_AREA_IDS = new DJIFlySafeError("Invalid Area IDs" )
Description:
Unlock error, area ID is not exist in the license.
final USER_MISMATCH
static final DJIFlySafeError USER_MISMATCH = new DJIFlySafeError("User mismatch." )
Description:
License error, the user is not matching.
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.