DJI Mobile SDK Documentation

      class DJILDMError

      @EXClassNullAway
      class DJILDMError extends DJIError
      Package:dji.common.error
      Inherits From:DJIError
      Description:

      Errors related to the LDM.

      Class Members:

      Members

      final NETWORK_ACCESS_FAILED
      static final DJILDMError NETWORK_ACCESS_FAILED = new DJILDMError("Network access failed!")
      Package:dji.common.error
      Description:

      Network access failed.

      final SIGN_ERROR
      static final DJILDMError SIGN_ERROR = new DJILDMError("Signature error")
      Package:dji.common.error
      Description:

      Signature error.

      final AREA_CODE_RESTRICTED
      static final DJILDMError AREA_CODE_RESTRICTED = new DJILDMError("LDM is not supported in the current area")
      Package:dji.common.error
      Description:

      LDM is not supported in the current area.

      final APP_NOT_FOUND
      static final DJILDMError APP_NOT_FOUND = new DJILDMError("App does not exist")
      Package:dji.common.error
      Description:

      App does not exist.

      final LDM_LICENSE_NOT_VALID
      static final DJILDMError LDM_LICENSE_NOT_VALID = new DJILDMError("No valid LDM certificate exists")
      Package:dji.common.error
      Description:

      No valid LDM certificate exists.

      final CLIENT_TIME_NOT_VALID
      static final DJILDMError CLIENT_TIME_NOT_VALID = new DJILDMError("Client's current time is invalid")
      Package:dji.common.error
      Description:

      Client's current time is invalid.

      final LICENSE_OUTDATED
      static final DJILDMError LICENSE_OUTDATED = new DJILDMError("License has expired!")
      Package:dji.common.error
      Description:

      License has expired.

      final UNAVAILABLE
      static final DJILDMError UNAVAILABLE = new DJILDMError("Only available when the Local Data Mode is enabled.")
      Package:dji.common.error
      Description:

      Only available when the Local Data Mode is enabled.

      final LDM_NETWORK_ACCESS_FAILED
      static final DJILDMError LDM_NETWORK_ACCESS_FAILED = new DJILDMError("In Local Data Mode. Network access failed!")
      Package:dji.common.error
      Description:

      In Local Data Mode. Network access failed!

      final LDM_UNKNOWN_ERROR
      static final DJILDMError LDM_UNKNOWN_ERROR = new DJILDMError("LDM unknown error")
      Package:dji.common.error
      Description:

      LDM unknown error.

      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.