DJI Mobile SDK Documentation

      class MissionControlError

      class MissionControlError extends DJIError
      Package:dji.sdk.mission.error
      Inherits From:DJIError
      Description:

      Defines all MissionControl related errors.

      Class Members:

      Members

      final CANNOT_SCHEDULE_WHILE_RUNNING
      static final MissionControlError
      CANNOT_SCHEDULE_WHILE_RUNNING = new MissionControlError("Cannot schedule new element while the timeline was running")
      Package:dji.sdk.mission.error
      Description:

      Tried to schedule new element while the Timeline was running.

      final NOT_PAUSABLE
      static final MissionControlError
      NOT_PAUSABLE = new MissionControlError("The action is not pausable, but timeline will pause to start next action")
      Package:dji.sdk.mission.error
      Description:

      Unsupported feature error. Where possible: This error will be returned by the function for a special feature interface when the feature is not supported by the device.

      final NOT_RESUMABLE
      static final MissionControlError
      NOT_RESUMABLE = new MissionControlError("The action is not resumable, but timeline will resume to start next action")
      Package:dji.sdk.mission.error
      Description:

      Unsupported feature error. Where possible: This error will be returned by the function for a special feature interface when the feature is not supported by the device.

      final TIMELINE_ELEMENT_OUT_OF_BOUNDS
      static final MissionControlError
      TIMELINE_ELEMENT_OUT_OF_BOUNDS = new MissionControlError("The index of item to be executed is out of bounds")
      Package:dji.sdk.mission.error
      Description:

      Cannot start the timeline because the index of to be executed item is out of bounds.

      final ALREADY_RUNNING
      static final MissionControlError
      ALREADY_RUNNING = new MissionControlError("The timeline is already in running")
      Package:dji.sdk.mission.error
      Description:

      Cannot start the timeline while the Timeline is running.

      final NOT_RUNNING
      static final MissionControlError
      NOT_RUNNING = new MissionControlError("The timeline is not running")
      Package:dji.sdk.mission.error
      Description:

      Timeline is not running.

      final ACTION_IS_NULL
      static final MissionControlError
      ACTION_IS_NULL = new MissionControlError("The trigger action is triggered, but the action object is null")
      Package:dji.sdk.mission.error
      Description:

      Trigger action is triggered, but the action object is null.

      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.