DJI Mobile SDK Documentation

      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)
      Package:dji.common.error
      Description:

      Returns the specific error in DJIGeoError according to the error code.

      Input Parameters:
      Ccode ccodeError code.
      Return:
      static DJIErrorThe DJIError object.
      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.")
      Package:dji.common.error
      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.")
      Package:dji.common.error
      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.")
      Package:dji.common.error
      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")
      Package:dji.common.error
      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.")
      Package:dji.common.error
      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.")
      Package:dji.common.error
      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.")
      Package:dji.common.error
      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.")
      Package:dji.common.error
      Description:

      No user account recorded.

      final INVALID_SIMULATED_LOCATION
      static final DJIFlySafeError INVALID_SIMULATED_LOCATION = new DJIFlySafeError("INVALID simulation location.")
      Package:dji.common.error
      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")
      Package:dji.common.error
      Description:

      No MCSN Error.

      final FC_QUERY_FAILED
      static final DJIFlySafeError FC_QUERY_FAILED = new DJIFlySafeError("Query Flight Control License Failed")
      Package:dji.common.error
      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")
      Package:dji.common.error
      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.")
      Package:dji.common.error
      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")
      Package:dji.common.error
      Description:

      License error, can't find the correct license.

      final VERSION_MISMATCH
      static final DJIFlySafeError VERSION_MISMATCH = new DJIFlySafeError("Set Enable Version Not Match")
      Package:dji.common.error
      Description:

      License error, incorrect length of request data.

      final REQUEST_PARAM_ERROR
      static final DJIFlySafeError REQUEST_PARAM_ERROR = new DJIFlySafeError("Set Enable Param Error")
      Package:dji.common.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")
      Package:dji.common.error
      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")
      Package:dji.common.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")
      Package:dji.common.error
      Description:

      License error, wrong index please retry.

      final LICENSE_DATA_ERROR
      static final DJIFlySafeError LICENSE_DATA_ERROR = new DJIFlySafeError("Upload License Data Error")
      Package:dji.common.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")
      Package:dji.common.error
      Description:

      License error, incorrect crc.

      final SN_CHECK_FAILED
      static final DJIFlySafeError SN_CHECK_FAILED = new DJIFlySafeError("Upload License Data SN Check Failed")
      Package:dji.common.error
      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")
      Package:dji.common.error
      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")
      Package:dji.common.error
      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")
      Package:dji.common.error
      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")
      Package:dji.common.error
      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")
      Package:dji.common.error
      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")
      Package:dji.common.error
      Description:

      License error, no data.

      final LOW_FIRMWARE_VERSION_ERROR
      static final DJIFlySafeError LOW_FIRMWARE_VERSION_ERROR = new DJIFlySafeError("Low Firmware Version Error")
      Package:dji.common.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")
      Package:dji.common.error
      Description:

      Unlock error, incorrect unlock version.

      final OLD_DATA_ERROR
      static final DJIFlySafeError OLD_DATA_ERROR = new DJIFlySafeError("Old Data Error")
      Package:dji.common.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")
      Package:dji.common.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")
      Package:dji.common.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")
      Package:dji.common.error
      Description:

      Server error, invalid token.

      final SERVER_UNIDENTIFIED_PHONE_ERROR
      static final DJIFlySafeError SERVER_UNIDENTIFIED_PHONE_ERROR = new DJIFlySafeError("Unidentified Phone")
      Package:dji.common.error
      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")
      Package:dji.common.error
      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")
      Package:dji.common.error
      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")
      Package:dji.common.error
      Description:

      Server error, too many licenses.

      final NO_NETWORK
      static final DJIFlySafeError NO_NETWORK = new DJIFlySafeError("No Network")
      Package:dji.common.error
      Description:

      Network error, invalid network.

      final NETWORK_SERVER_DATA_ERROR
      static final DJIFlySafeError NETWORK_SERVER_DATA_ERROR = new DJIFlySafeError("Network Server Data Error")
      Package:dji.common.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")
      Package:dji.common.error
      Description:

      Network error, invalid token.

      final NETWORK_PAGE_NOT_FOUND
      static final DJIFlySafeError NETWORK_PAGE_NOT_FOUND = new DJIFlySafeError("Network Page Not Found")
      Package:dji.common.error
      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")
      Package:dji.common.error
      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")
      Package:dji.common.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")
      Package:dji.common.error
      Description:

      Database error, invalid parameters when updating database.

      final DB_NOT_READY
      static final DJIFlySafeError DB_NOT_READY = new DJIFlySafeError("Data Base Not Ready")
      Package:dji.common.error
      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")
      Package:dji.common.error
      Description:

      Server error, incorrect Json data.

      final NETWORK_SIGNATURE_ERROR
      static final DJIFlySafeError NETWORK_SIGNATURE_ERROR = new DJIFlySafeError("Network Signature Error")
      Package:dji.common.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")
      Package:dji.common.error
      Description:

      Network error, invalid signature (deprecated).

      final NETWORK_INVALID_REQUESET
      static final DJIFlySafeError NETWORK_INVALID_REQUESET = new DJIFlySafeError("Network Invalid Request")
      Package:dji.common.error
      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")
      Package:dji.common.error
      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")
      Package:dji.common.error
      Description:

      Network error, canceled by user(deprecated).

      final PM_TIMEOUT
      static final DJIFlySafeError PM_TIMEOUT = new DJIFlySafeError("Pack Manager Timeout")
      Package:dji.common.error
      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")
      Package:dji.common.error
      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")
      Package:dji.common.error
      Description:

      Package error, wrong device ID.

      final INVALID_AREA_IDS
      static final DJIFlySafeError INVALID_AREA_IDS = new DJIFlySafeError("Invalid Area IDs")
      Package:dji.common.error
      Description:

      Unlock error, area ID is not exist in the license.

      final USER_MISMATCH
      static final DJIFlySafeError USER_MISMATCH = new DJIFlySafeError("User mismatch.")
      Package:dji.common.error
      Description:

      License error, the user is not matching.

      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.