DJI Mobile SDK Documentation

      class DJIPayloadError

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

      Errors related to the payload.

      Class Members:

      Members

      final INVALID_FORMAT_OF_WIDGET_CONFIGURATION
      static final DJIError INVALID_FORMAT_OF_WIDGET_CONFIGURATION = new DJIError("The format of widget configuration is invalid.")
      Package:dji.common.error
      Description:

      The format of widget configuration is invalid.

      final COMMAND_CAN_NOT_BE_EXECUTED_IN_CURRENT_MODE
      static final DJIError COMMAND_CAN_NOT_BE_EXECUTED_IN_CURRENT_MODE = new DJIError("The command is not supported by the current payload mode.")
      Package:dji.common.error
      Description:

      The command cannot be executed in current payload mode. See PayloadProductPhase.

      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.