DJI Mobile SDK Documentation

      class DJIFlightHubError

      class DJIFlightHubError extends DJIError
      Package:dji.common.error
      Inherits From:DJIError
      Description:

      DJI SDK FlightHub Error.

      Class Members:

      Members

      final SIGNATURE_INVALID
      static final DJIFlightHubError SIGNATURE_INVALID = new DJIFlightHubError("Invalid signature.")
      Package:dji.common.error
      Description:

      Server rejected the request because the signature is invalid.

      final NO_RIGHT_TO_ACCESS
      static final DJIFlightHubError NO_RIGHT_TO_ACCESS = new DJIFlightHubError("You have no right to access the data.")
      Package:dji.common.error
      Description:

      Server rejected the request because the user does not have the permission.

      final PARAMETERS_INVALID
      static final DJIFlightHubError PARAMETERS_INVALID = new DJIFlightHubError("Invalid parameter(s).")
      Package:dji.common.error
      Description:

      Invalid parameter(s).

      final NO_AUTHORIZATION_INFORMATION_FOUND
      static final DJIFlightHubError NO_AUTHORIZATION_INFORMATION_FOUND = new DJIFlightHubError("No authorization information found.")
      Package:dji.common.error
      Description:

      No authorization information found.

      final USER_NOT_FOUND_IN_USER_CENTER
      static final DJIFlightHubError USER_NOT_FOUND_IN_USER_CENTER = new DJIFlightHubError("The account information is not found.")
      Package:dji.common.error
      Description:

      The account information is not found.

      final AUTHORIZATION_EXPIRED
      static final DJIFlightHubError
      AUTHORIZATION_EXPIRED = new DJIFlightHubError("Authorization information has expired. Please authorize again.")
      Package:dji.common.error
      Description:

      Authorization information has expired. Please authorize again.

      final USER_NOT_FOUND_IN_FLIGHT_HUB
      static final DJIFlightHubError
      USER_NOT_FOUND_IN_FLIGHT_HUB = new DJIFlightHubError("User not found in FlightHub.")
      Package:dji.common.error
      Description:

      User not found in DJI FlightHub system.

      final SERVICE_PACKAGE_EXPIRED
      static final DJIFlightHubError SERVICE_PACKAGE_EXPIRED = new DJIFlightHubError("Your service package has expired.")
      Package:dji.common.error
      Description:

      The service package has been expired.

      final SERVICE_PACKAGE_LIMITATION_REACHED
      static final DJIFlightHubError
      SERVICE_PACKAGE_LIMITATION_REACHED = new DJIFlightHubError("Your service package has reached the limit of device number. Please check if your service package has expired.")
      Package:dji.common.error
      Description:

      The service package has reached the limit of device numbers.

      final NO_SDK_PERMISSION_FOR_SERVICE_PACKAGE
      static final DJIFlightHubError
      NO_SDK_PERMISSION_FOR_SERVICE_PACKAGE = new DJIFlightHubError("Service package does not have permission to access SDK service.")
      Package:dji.common.error
      Description:

      The service package does not have permission to access SDK service.

      final NO_TEAM_FOUND
      static final DJIFlightHubError NO_TEAM_FOUND = new DJIFlightHubError("No team found.")
      Package:dji.common.error
      Description:

      No team found.

      final NO_AIRCRAFT_FOUND
      static final DJIFlightHubError NO_AIRCRAFT_FOUND = new DJIFlightHubError("No aircraft found.")
      Package:dji.common.error
      Description:

      No aircraft found.

      final AIRCRAFT_ALREADY_BOUND_IN_TEAM_CHOSEN
      static final DJIFlightHubError
      AIRCRAFT_ALREADY_BOUND_IN_TEAM_CHOSEN = new DJIFlightHubError("The aircraft has already been bound in chosen team.")
      Package:dji.common.error
      Description:

      The aircraft has already been bound in the chosen team.

      final NO_RECORD_FOUND
      static final DJIFlightHubError NO_RECORD_FOUND = new DJIFlightHubError("No record found.")
      Package:dji.common.error
      Description:

      No record found.

      final NOT_LOGGED_IN
      static final DJIFlightHubError NOT_LOGGED_IN = new DJIFlightHubError("You are not logged in.")
      Package:dji.common.error
      Description:

      No user is logged in.

      final AIRCRAFT_SERIAL_NUMBER_IS_NOT_AVAILABLE
      static final DJIFlightHubError AIRCRAFT_SERIAL_NUMBER_IS_NOT_AVAILABLE = new DJIFlightHubError("Could not get serial number.")
      Package:dji.common.error
      Description:

      Aircraft's serial number is not available.

      final BOUND_DEVICE_LIMITATION_REACHED
      static final DJIFlightHubError
      BOUND_DEVICE_LIMITATION_REACHED = new DJIFlightHubError("Bound device number has reached the limit of your service package.")
      Package:dji.common.error
      Description:

      Bound device number has reached the limit of your service package.

      final AIRCRAFT_ALREADY_BOUND_IN_OTHER_TEAM
      static final DJIFlightHubError
      AIRCRAFT_ALREADY_BOUND_IN_OTHER_TEAM = new DJIFlightHubError("The aircraft has already been bound in the other team. Please unbind it first.")
      Package:dji.common.error
      Description:

      The aircraft has already been bound in the other team. Please unbind it first.

      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.