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("No logged in account or account did not get authorization.")
      Package:dji.common.error
      Description:

      No 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).

      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 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.