DJI Mobile SDK Documentation

      class DJIWaypointV2Error

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

      Errors related to the payload.

      Class Members:
      Get Error Type
      method
      method getDJIError
      static DJIWaypointV2Error getDJIError(int errorCode)
      Package:dji.common.error
      Description:

      Get the mission waypoint error type.

      Input Parameters:
      int errorCodeAn int value of the error code.
      Return:
      static DJIWaypointV2ErrorValue of the DJIWaypointV2Error enum.

      Members

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_COUNT_OVER_RANGE
      = new DJIWaypointV2Error("The mission waypoint count is larger than max waypoint count of 65535.", -2001)
      Package:dji.common.error
      Description:

      The mission waypoint count is larger than max waypoint count 65535.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_COUNT_TOO_FEW
      = new DJIWaypointV2Error("The mission waypoint count than less than min waypoint count 2.", -2002)
      Package:dji.common.error
      Description:

      The mission waypoint count is less than min waypoint count 2.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_MAX_FLIGHT_SPEED_INVALID
      = new DJIWaypointV2Error("The mission max flight speed is greater than 15m/s or less than 2m/s.", -2004)
      Package:dji.common.error
      Description:

      The mission DJIMutableWaypointV2Mission_maxFlightSpeed is greater than 15m/s or less than 2m/s. See DJIMutableWaypointV2Mission_maxFlightSpeed.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_AUTO_FLIGHT_SPEED_INVALID
      = new DJIWaypointV2Error("The mission auto flight speed is greater than max flight speed.", -2005)
      Package:dji.common.error
      Description:

      The mission DJIMutableWaypointV2Mission_autoFlightSpeed is greater than DJIMutableWaypointV2Mission_maxFlightSpeed.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_GOTO_FIRST_WAYPOINT_MODE_INVALID
      = new DJIWaypointV2Error("The mission goto first waypoint mode is invalid.", -2006)
      Package:dji.common.error
      Description:

      The mission DJIMutableWaypointV2Mission_gotoFirstWaypointMode is out of range of MissionGotoWaypointMode.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_FINISHED_ACTION_INVALID
      = new DJIWaypointV2Error("The mission finished action is invalid.", -2007)
      Package:dji.common.error
      Description:

      The mission setFinishedAction is out of range of MissionFinishedAction.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_EXIT_MISSION_ON_RC_SIGNAL_LOST_INVALID
      = new DJIWaypointV2Error("The mission exit mission on RC signal lost is invalid.", -2008)
      Package:dji.common.error
      Description:

      The mission DJIMutableWaypointV2Mission_exitMissionOnRCSignalLost is invalid.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_ALREADY_EXECUTING
      = new DJIWaypointV2Error("There is already a mission in execution when trying to upload a new mission.", -2010)
      Package:dji.common.error
      Description:

      There is already a mission executing when trying to upload a new mission.

      method DJIWaypointV2Error
      static DJIWaypointV2Error UPLOAD_WAYPOINT_COUNT_OVER_MISSION_WAYPOINT_COUNT
      = new DJIWaypointV2Error("The upload waypoint count is bigger than mission waypoint count.", -2012)
      Package:dji.common.error
      Description:

      The upload waypoint count is bigger than mission waypoint count.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_DISTANCE_TOO_CLOSE
      = new DJIWaypointV2Error("Waypoint is too close to two adjacent waypoints. The min distance is 0.5m.", -2014)
      Package:dji.common.error
      Description:

      Waypoint is too close to two adjacent waypoints. The min distance is 0.5m.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_DISTANCE_TO_FAR
      = new DJIWaypointV2Error("Waypoint is too from two adjacent waypoints, The max distance is 5km.", -2015)
      Package:dji.common.error
      Description:

      Waypoint is too far from two adjacent waypoints, The max distance is 5km.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_MAX_FLIGHT_SPEED_OVER_MISSION_MAX_FLIGHT_SPEED
      = new DJIWaypointV2Error("There is one uploaded waypoint has speed which is greater than mission's max speed.", -2016)
      Package:dji.common.error
      Description:

      The upload waypoints have a getMaxFlightSpeed is greater than DJIMutableWaypointV2Mission_maxFlightSpeed waypoint.

      method DJIWaypointV2Error
      static DJIWaypointV2Error WAYPOINT_AUTO_FLIGHT_SPEED_OVER_WAYPOINT_MAX_FLIGHT_SPEED
      = new DJIWaypointV2Error("The upload waypoints have one waypoint auto flight speed greater than max flight speed.", -2017)
      Package:dji.common.error
      Description:

      The upload waypoint has a getAutoFlightSpeed is greater than getMaxFlightSpeed waypoint.

      method DJIWaypointV2Error
      static DJIWaypointV2Error WAYPOINT_AUTO_FLIGHT_SPEED_OVER_MISSION_MAX_FLGHT_SPEED
      = new DJIWaypointV2Error("The upload waypoints have one waypoint auto flight speed greater than mission max flight speed.", -2018)
      Package:dji.common.error
      Description:

      The upload waypoints have a getAutoFlightSpeed is greater than DJIMutableWaypointV2Mission_maxFlightSpeed waypoint.

      method DJIWaypointV2Error
      static DJIWaypointV2Error WAYPOINT_HEADING_MODE_INVALID
      = new DJIWaypointV2Error("The waypoint heading mode is invalid.", -2019)
      Package:dji.common.error
      Description:

      The waypoint getHeadingMode is invalid.

      method DJIWaypointV2Error
      static DJIWaypointV2Error WAYPOINT_HEADING_INVALID
      = new DJIWaypointV2Error("The waypoint heading invalid.", -2020)
      Package:dji.common.error
      Description:

      The waypoint getHeading is invalid. See getHeading.

      method DJIWaypointV2Error
      static DJIWaypointV2Error WAYPOINT_TURN_MODE_INVALID
      = new DJIWaypointV2Error("The waypoint turn mode is invalid.", -2021)
      Package:dji.common.error
      Description:

      The waypoint getTurnMode is invalid.

      method DJIWaypointV2Error
      static DJIWaypointV2Error WAYPOINT_FLIGHT_PATH_MODE_INVALID
      = new DJIWaypointV2Error("The waypoint flight path mode is invalid.", -2022)
      Package:dji.common.error
      Description:

      The waypoint getFlightPathMode is invalid.

      method DJIWaypointV2Error
      static DJIWaypointV2Error WAYPOINT_DAMPING_DISTANCE_INVALID
      = new DJIWaypointV2Error("The waypoint damping distance is greater than or equal the distance of adjacent waypoint.", -2027)
      Package:dji.common.error
      Description:

      The waypoint getDampingDistance is greater than or equal to the distance of adjacent waypoint.

      method DJIWaypointV2Error
      static DJIWaypointV2Error LAST_WAYPOINT_FLIGHT_PATH_MODE_INVALID
      = new DJIWaypointV2Error("The waypoint flight path mode is invalid for last waypoint.", -2024)
      Package:dji.common.error
      Description:

      The waypoint getFlightPathMode is invalid for last waypoint.

      method DJIWaypointV2Error
      static DJIWaypointV2Error UPLOAD_WAYPOINT_INDEX_NOT_CONTINUE
      = new DJIWaypointV2Error("The index of upload waypoint is not continue after the stored waypoint.", -2025)
      Package:dji.common.error
      Description:

      The index of upload waypoint is not continue after the stored waypoint.

      method DJIWaypointV2Error
      static DJIWaypointV2Error FIRST_WAYPOINT_FLIGHT_PATH_MODE_INVALID
      = new DJIWaypointV2Error("The waypoint flight path mode is invalid for first waypoint.", -2026)
      Package:dji.common.error
      Description:

      The waypoint getFlightPathMode is invalid for first waypoint.

      method DJIWaypointV2Error
      static DJIWaypointV2Error WAYPOINT_COORDINATE_INVALID
      = new DJIWaypointV2Error("The waypoint position coordinate exceeds rational range.", -2028)
      Package:dji.common.error
      Description:

      The waypoint position coordinate exceeds rational range.

      method DJIWaypointV2Error
      static DJIWaypointV2Error EXCEED_FLYING_RADIUS_LIMIT
      = new DJIWaypointV2Error("The waypoint position exceeds radius limit.", -2030)
      Package:dji.common.error
      Description:

      The waypoint position exceeds radius limit.

      method DJIWaypointV2Error
      static DJIWaypointV2Error EXCEED_FLYING_HEIGHT_LIMIT
      = new DJIWaypointV2Error("The waypoint position exceeds height limit.", -2031)
      Package:dji.common.error
      Description:

      The waypoint position exceeds height limit.

      method DJIWaypointV2Error
      static DJIWaypointV2Error SDK_VERSION_NOT_MATCHED
      = new DJIWaypointV2Error("The version of the SDK doesn't match the firmware version.", -2032)
      Package:dji.common.error
      Description:

      The version of the SDK doesn't match the firmware version.

      method DJIWaypointV2Error
      static DJIWaypointV2Error DOWNLOAD_MISSION_RANGE_OVER_STORAGE_COUNT
      = new DJIWaypointV2Error("The index of first and end waypoint expected to download is not in range of waypoints stored in aircraft.", -3001)
      Package:dji.common.error
      Description:

      The index of first and last waypoint expected to download is not in range of waypoints stored in aircraft.

      method DJIWaypointV2Error
      static DJIWaypointV2Error NO_MISSION_UPLOADED_IN_AIRCRAFT
      = new DJIWaypointV2Error("There is no mission uploaded in aircraft.", -3002)
      Package:dji.common.error
      Description:

      There is no mission uploaded in aircraft.

      method DJIWaypointV2Error
      static DJIWaypointV2Error DOWNLOAD_WAYPOINT_NOT_UPLOADED
      = new DJIWaypointV2Error("The mission info is not uploaded yet.", -3003)
      Package:dji.common.error
      Description:

      The mission info is not uploaded yet.

      method DJIWaypointV2Error
      static DJIWaypointV2Error AIRCRAFT_CURRENT_POSITION_TO_FIRST_WAYPOINT_TOO_FAR
      = new DJIWaypointV2Error("The aircraft current position is too far away from the first waypoint.", -4001)
      Package:dji.common.error
      Description:

      The aircraft current position is too far away from the first waypoint.

      method DJIWaypointV2Error
      static DJIWaypointV2Error UPLOADED_WAYPOINTS_TOO_FEW
      = new DJIWaypointV2Error("The uploaded waypoints is too few.", -4005)
      Package:dji.common.error
      Description:

      The uploaded waypoints are too few.

      method DJIWaypointV2Error
      static DJIWaypointV2Error NO_MISSION_EXECUTING
      = new DJIWaypointV2Error("There is no mission executing.", -4006)
      Package:dji.common.error
      Description:

      There is no mission executing.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_ALREADY_STARTED
      = new DJIWaypointV2Error("The mission was already started.", -4007)
      Package:dji.common.error
      Description:

      The mission has already started by calling startMission.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_ALREADY_STOPPED
      = new DJIWaypointV2Error("The mission was already stopped.", -4008)
      Package:dji.common.error
      Description:

      The mission has already stopped by calling stopMission.

      method DJIWaypointV2Error
      static DJIWaypointV2Error NO_EXECUTING_MISSION_TO_RECOVER
      = new DJIWaypointV2Error("There is no executing mission to recover mission.", -4011)
      Package:dji.common.error
      Description:

      There is no executing mission to recover when calling recoverMission.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_ALREADY_INTERRUPTED
      = new DJIWaypointV2Error("The mission is already interrupted.", -4012)
      Package:dji.common.error
      Description:

      The mission has already been interrupted by calling interruptMission.

      method DJIWaypointV2Error
      static DJIWaypointV2Error RECOVER_NO_RECORDED_POINT
      = new DJIWaypointV2Error("There is no recorded point to recover.", -4015)
      Package:dji.common.error
      Description:

      There is no waypoint recorded to recover the mission when recoverMission is called.

      method DJIWaypointV2Error
      static DJIWaypointV2Error AIRCRAFT_FLYING_STATUS_ERROR
      = new DJIWaypointV2Error("The aircraft flying status is bad.", -5001)
      Package:dji.common.error
      Description:

      The aircraft flying status is bad.

      method DJIWaypointV2Error
      static DJIWaypointV2Error AIRCRAFT_STATE_HOME_POINT_NOT_RECORD
      = new DJIWaypointV2Error("The aircraft home point is not recorded yet.", -5002)
      Package:dji.common.error
      Description:

      The aircraft home point is not recorded yet.

      method DJIWaypointV2Error
      static DJIWaypointV2Error AIRCRAFT_GPS_SIGNAL_WEEK
      = new DJIWaypointV2Error("The aircraft GPS signal is weak.", -5003)
      Package:dji.common.error
      Description:

      The aircraft GPS signal is weak.

      method DJIWaypointV2Error
      static DJIWaypointV2Error AIRCRAFT_RTK_NOT_READY
      = new DJIWaypointV2Error("The aircraft RTK is not ready.", -5004)
      Package:dji.common.error
      Description:

      The aircraft RTK is not ready.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_CROSS_NO_FLY_ZONE
      = new DJIWaypointV2Error("The mission is across the no-fly zone.", -6001)
      Package:dji.common.error
      Description:

      The mission is across the no-fly zone.

      method DJIWaypointV2Error
      static DJIWaypointV2Error AIRCRAFT_LOW_BATTERY
      = new DJIWaypointV2Error("The aircraft battery is low.", -6002)
      Package:dji.common.error
      Description:

      The aircraft battery is low.

      method DJIWaypointV2Error
      static DJIWaypointV2Error UPLOADED_ACTION_ID_DUPLICATED
      = new DJIWaypointV2Error("The uploaded action Id is duplicated.", -7001)
      Package:dji.common.error
      Description:

      The uploaded action ID is duplicated.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_STORAGE_NOT_ENOUGH
      = new DJIWaypointV2Error("There is not enough memory space to store actions in aircraft.", -7002)
      Package:dji.common.error
      Description:

      There is not enough space to store actions in aircraft.

      method DJIWaypointV2Error
      static DJIWaypointV2Error DOWNLOAD_ACTIONS_FAILED
      = new DJIWaypointV2Error("Download actions failed.", -7004)
      Package:dji.common.error
      Description:

      Download actions failed.

      method DJIWaypointV2Error
      static DJIWaypointV2Error UPLOAD_ACTION_TRIGGER_TYPE_INVALID
      = new DJIWaypointV2Error("The upload action trigger type is invalid.", -8001)
      Package:dji.common.error
      Description:

      The upload action trigger type is invalid.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ASSOCIATE_TRIGGER_TYPE_INVALID
      = new DJIWaypointV2Error("The action associate trigger type is invalid.", -8005)
      Package:dji.common.error
      Description:

      The action associate trigger getAssociateType is invalid.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_INTERVAL_TRIGGER_TYPE_INVALID
      = new DJIWaypointV2Error("The action interval trigger type is invalid.", -8006)
      Package:dji.common.error
      Description:

      The action associate trigger getType is invalid.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_INTERVAL_TRIGGER_WAYPOINT_INDEX_INVALID
      = new DJIWaypointV2Error("The action trigger waypoint index is invalid.", -8007)
      Package:dji.common.error
      Description:

      The action associate trigger waypoint index invalid.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ACTUATOR_STATUS_NOT_MATCH_ACTION
      = new DJIWaypointV2Error("The actuator state does not match action.", -9004)
      Package:dji.common.error
      Description:

      The actuator state does not match action.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ACTUATOR_OPERATION_INDEX_INVALID
      = new DJIWaypointV2Error("The action actuator operation index is invalid.", -9005)
      Package:dji.common.error
      Description:

      The action actuator operation index is invalid.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ACTUATOR_CAMERA_EXEC_FAIL
      = new DJIWaypointV2Error("Camera fail to exec coressponding command.", -15008)
      Package:dji.common.error
      Description:

      Camera failed to execute coressponding command.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ACTUATOR_NOT_SUPPORT
      = new DJIWaypointV2Error("The action actuator is not supported.", -9001)
      Package:dji.common.error
      Description:

      The action actuator is not supported.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ACTUATOR_TYPE_INVALID
      = new DJIWaypointV2Error("The action actuator type is invalid.", -9002)
      Package:dji.common.error
      Description:

      The action actuator getActuatorType is invalid.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ACTUATOR_OPERATION_TYPE_INVALID
      = new DJIWaypointV2Error("The action actuator operation type is invalid.", -9003)
      Package:dji.common.error
      Description:

      The action actuator operation type is invalid. See getCameraOperationType or getAircraftControlType or getOperationType.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ACTUATOR_GIMBAL_PARAM_INVALID
      = new DJIWaypointV2Error("The action gimbal actuator parameters invalid.", -11001)
      Package:dji.common.error
      Description:

      The action gimbal actuator parameters are invalid.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ROTATE_GIMBAL_FAILED
      = new DJIWaypointV2Error("The action actuator rotate gimbal failed.", -11004)
      Package:dji.common.error
      Description:

      The action actuator rotate gimbal failed.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_STOP_GIMBAL_UNIFORM_CONTROL_FAILED
      = new DJIWaypointV2Error("Gimbal is not mounted or unable to execute stop rotation command.", -11005)
      Package:dji.common.error
      Description:

      Gimbal is not mounted or unable to execute stop rotation command.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_FLIGHT_TYPE_NOT_SUPPORT_HOVER
      = new DJIWaypointV2Error("The current waypoint type(Coordinated turn or Curved route Aircraft continues) does not support setting the action when the waypoint is reached.", -12007)
      Package:dji.common.error
      Description:

      The current waypoint type(Coordinated turn or Curved route Aircraft continues) does not support setting the action when the waypoint is reached.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ACTUATOR_NAVIGATION_FAIL_TO_PRECISE_SHOOTPOHTO
      = new DJIWaypointV2Error("Take precise photo failed.", -14001)
      Package:dji.common.error
      Description:

      Failed to take precise photos.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ACTUATOR_NAVIGATION_PRECISE_SHOOTPOHTO_TIMEOUT
      = new DJIWaypointV2Error("Take precise photo timeout.", -14002)
      Package:dji.common.error
      Description:

      Timeout for taking precise photos.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ROTATE_AIRCRAFT_YAW_PARAM_INVALID
      = new DJIWaypointV2Error("The action of rotate aircraft yaw parameters are invalid.", -12001)
      Package:dji.common.error
      Description:

      The action WaypointAircraftControlParam parameters are invalid.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ACTUATOR_NAVIGATION_EXEC_FAILED
      = new DJIWaypointV2Error("Navigation command execute failed", -14003)
      Package:dji.common.error
      Description:

      Failed to execute navigation command.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ACTUATOR_CAMERA_SEND_SINGLE_SHOT_CMD_TO_CAMERA_FAILED
      = new DJIWaypointV2Error("Fail to send shoot photo command to camera cause of no camera or camera is busy", -15001)
      Package:dji.common.error
      Description:

      Failed to send shoot photo command to camera cause of no camera or camera is busy.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ACTUATOR_CAMERA_SEND_VIDEO_START_CMD_TO_CAMERA_FAILED
      = new DJIWaypointV2Error("Fail to send start record command to camera cause of no camera or camera is busy. ", -15002)
      Package:dji.common.error
      Description:

      Failed to send start record command to camera cause of no camera or camera is busy.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ACTUATOR_CAMERA_SEND_VIDEO_STOP_CMD_TO_CAMERA_FAILED
      = new DJIWaypointV2Error("Fail to send video stop command to camera cause of no camera or camera is not busy", -15003)
      Package:dji.common.error
      Description:

      Failed to send video stop command to camera cause of no camera or camera is not busy.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ACTUATOR_CAMERA_FOCUS_PARAM_XY_INVALID
      = new DJIWaypointV2Error("Camera focus param xy exceed valid range [0, 1].", -15004)
      Package:dji.common.error
      Description:

      Camera focus param xy exceed valid range [0, 1].

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ACTUATOR_CAMERA_SEND_FOCUS_CMD_TO_CAMERA_FAILED
      = new DJIWaypointV2Error("Fail to send camera focus command cause of no camera or camera is busy.", -15005)
      Package:dji.common.error
      Description:

      Failed to send camera focus command cause of no camera or camera is busy.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ACTUATOR_CAMERA_SEND_FOCALIZE_CMD_TO_CAMERA_FAILED
      = new DJIWaypointV2Error("Fail to send camera zoom command cause of no camera or camera is busy. ", -15006)
      Package:dji.common.error
      Description:

      Failed to send camera zoom command cause of no camera or camera is busy.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ACTUATOR_CAMERA_FOCAL_DISTANCE_INVALID
      = new DJIWaypointV2Error("Illegal zoom focal length.", -15007)
      Package:dji.common.error
      Description:

      Illegal zoom focal length.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ROTATE_AIRCRAFT_YAW_FAILED
      = new DJIWaypointV2Error("The action actuator rotate aircraft yaw execute failed.", -12002)
      Package:dji.common.error
      Description:

      The action actuator rotate aircraft yaw execute failed.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_AIRCRAFT_START_STOP_FLY_FAILED
      = new DJIWaypointV2Error("The action actuator aircraft start stop fly execute failed.", -12004)
      Package:dji.common.error
      Description:

      The action actuator aircraft start or stop fly execute failed. For example: when the aircraft is flying, an error will occur when the isStartFly(TRUE) action is executed. You should execute isStartFly(FALSE) first.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_INTERRUPT_REASON_AVOID
      = new DJIWaypointV2Error("Waypoint mission was interrupted due to obstacle avoidance.", -13)
      Package:dji.common.error
      Description:

      The waypoint mission is interrupted by by obstacle avoidance system.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_INTERRUPT_REASON_AVOID_RADIUS_LIMIT
      = new DJIWaypointV2Error("Waypoint mission was interrupted due to reaching radius limit.", -14)
      Package:dji.common.error
      Description:

      The waypoint mission is interrupted because of radius limit.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_INTERRUPT_REASON_AVOID_HEIGHT_LIMIT
      = new DJIWaypointV2Error("Waypoint mission was interrupted due to height limit.", -15)
      Package:dji.common.error
      Description:

      The waypoint mission is interrupted because of height limit.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_INTERRUPT_REASON_AVOID_RTK_UNHEALTHY
      = new DJIWaypointV2Error("Waypoint mission was interrupted due to weak RTK signal.", -16)
      Package:dji.common.error
      Description:

      The waypoint mission is interrupted because of RTK week signal.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_INTERRUPT_REASON_AVOID_USER_REQ_BREAK
      = new DJIWaypointV2Error("Waypoint mission was interrupted due to interrupted by user.", -17)
      Package:dji.common.error
      Description:

      The waypoint mission is interrupted because of user request.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_COMMAND_CANNOT_EXECUTE
      = new DJIWaypointV2Error("Command cannot execute.", -1)
      Package:dji.common.error
      Description:

      Command cannot execute.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_COMMAND_EXECUTION_FAILED
      = new DJIWaypointV2Error("Command execution failed.", -2)
      Package:dji.common.error
      Description:

      Command execution failed.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_INVALID_PARAMETERS
      = new DJIWaypointV2Error("Invalid parameters.", -3)
      Package:dji.common.error
      Description:

      Invalid parameters.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_COMMON_TIMEOUT
      = new DJIWaypointV2Error("Common timeout.", -4)
      Package:dji.common.error
      Description:

      Common timeout.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_PRODUCT_CONNECT_FAILED
      = new DJIWaypointV2Error("Product connection failed.", -5)
      Package:dji.common.error
      Description:

      Product connection failed.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_SYSTEM_BUSY
      = new DJIWaypointV2Error("System busy.", -6)
      Package:dji.common.error
      Description:

      System busy.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_OPERATION_CANCEL_BY_USER
      = new DJIWaypointV2Error("Operation cancel by user.", -7)
      Package:dji.common.error
      Description:

      Operation cancel by user.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_UPLOAD_MEDIA_FILE_FAILED
      = new DJIWaypointV2Error("Upload media file failed.", -8)
      Package:dji.common.error
      Description:

      Upload media file failed.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_SDR_RESERVE_FAILED
      = new DJIWaypointV2Error("SDR reserve failed.", -9)
      Package:dji.common.error
      Description:

      SDR reserve failed.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_CHECK_PHOTO_STORAGE_PACK_ERROR
      = new DJIWaypointV2Error("Check photo storage pack error.", -10)
      Package:dji.common.error
      Description:

      Check photo storage pack error.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_SDR_LINK_RESERVE_FAILED_CAUSE_MOTOR_ON
      = new DJIWaypointV2Error("SDR link reserve failed because motor is on.", -11)
      Package:dji.common.error
      Description:

      SDR link reserve failed because motor is on.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_ACTION_TRIGGER_NOT_MATCH_ACTUATOR
      = new DJIWaypointV2Error("The action actuator and the trigger type do not match.", -12)
      Package:dji.common.error
      Description:

      The action actuator and the trigger type do not match.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_TRAJECTORY_REPLAY_INVALID_LOCATION
      = new DJIWaypointV2Error("The trajectory replay's location is invalid.", -100)
      Package:dji.common.error
      Description:

      The trajectory replay's location is invalid.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_TRAJECTORY_REPLAY_NO_WAYPOINT_TO_REMOVE
      = new DJIWaypointV2Error("The trajectory replay has no waypoint to remove.", -101)
      Package:dji.common.error
      Description:

      The trajectory replay has no waypoint to remove.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_TRAJECTORY_REPLAY_GIMBAL_ATTI_ERROR
      = new DJIWaypointV2Error(" The trajectory replay's gimbal attitude has error.", -102)
      Package:dji.common.error
      Description:

      The trajectory replay's gimbal attitude has error.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_INVALID_INPUT_DATA_FC_LENGTH
      = new DJIWaypointV2Error("Data transmission does not match protocols.", -1001)
      Package:dji.common.error
      Description:

      Data transmission does not match protocols.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_INVALID_INPUT_DATA_FLOAT_NUMBER
      = new DJIWaypointV2Error(" Invalid floating number.", -1002)
      Package:dji.common.error
      Description:

      Invalid floating number.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_END_INDEX_INVALID
      = new DJIWaypointV2Error("Last waypoint index is invalid.", -2003)
      Package:dji.common.error
      Description:

      Last waypoint index is invalid.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_INDEX_INVALID
      = new DJIWaypointV2Error("Invalid waypoint index, please check your waypoint index with waypoint count.", -2011)
      Package:dji.common.error
      Description:

      Invalid waypoint index, please check your waypoint index with waypoint count.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_WAYPOINT_START_INDEX_NOT_IN_END_OF_LAST_UPLOAD
      = new DJIWaypointV2Error("The upload waypoint start index isn't in the given range.", -2013)
      Package:dji.common.error
      Description:

      The upload waypoint start index isn't in the given range.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_CONTROL_START_STOP_INVALID
      = new DJIWaypointV2Error("The aircraft start waypoint is too far away from the stop waypoint.", -4002)
      Package:dji.common.error
      Description:

      The aircraft start waypoint is too far away from the stop waypoint.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_CONTROL_PAUSE_RESUME_INVALID
      = new DJIWaypointV2Error("Invalid pause resume operation.", -4003)
      Package:dji.common.error
      Description:

      Invalid pause resume operation.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_CONTROL_INTERRUPT_RECOVER_INVALID
      = new DJIWaypointV2Error("Invalid interrupt recover operation.", -4004)
      Package:dji.common.error
      Description:

      Invalid interrupt recover operation.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_CONTROL_MISSION_ALREADY_PAUSED
      = new DJIWaypointV2Error("The mission is already paused.", -4009)
      Package:dji.common.error
      Description:

      The mission is already paused.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_CONTROL_NO_RUNNING_MISSION_FOR_RESUME
      = new DJIWaypointV2Error("The mission cannot resume because it is not running.", -4010)
      Package:dji.common.error
      Description:

      The mission cannot resume because it is not running.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_CONTROL_NOT_SUPPORT_PAUSE_RESUME
      = new DJIWaypointV2Error("The mission cannot be paused or resumed now.", -4013)
      Package:dji.common.error
      Description:

      The mission cannot be paused or resumed now.

      method DJIWaypointV2Error
      static DJIWaypointV2Error MISSION_CONTROL_NOT_SUPPORT_INTERRUPT_RESUME
      = new DJIWaypointV2Error("The mission cannot be interrupted or recovered now.", -4014)
      Package:dji.common.error
      Description:

      The mission cannot be interrupted or recovered now.

      method DJIWaypointV2Error
      static DJIWaypointV2Error RECOVER_NO_CURRENT_PROJECTION_POINT
      = new DJIWaypointV2Error("No recorded waypoint for recovery currently.", -4016)
      Package:dji.common.error
      Description:

      No recorded waypoint for recovery currently.

      method DJIWaypointV2Error
      static DJIWaypointV2Error RECOVER_NO_NEXT_PROJECTION_POINT
      = new DJIWaypointV2Error("No recorded waypoint for next waypoint recovery.", -4017)
      Package:dji.common.error
      Description:

      No recorded waypoint for next waypoint recovery.

      method DJIWaypointV2Error
      static DJIWaypointV2Error UPLOAD_ACTION_TRIGGER_REACH_END_INDEX_LESS_START_INDEX
      = new DJIWaypointV2Error("Uploaded reach trigger invalid.", -8002)
      Package:dji.common.error
      Description:

      Uploaded reach trigger invalid.

      method DJIWaypointV2Error
      static DJIWaypointV2Error UPLOAD_ACTION_TRIGGER_REACH_INTERVAL_COUNT_INVALID
      = new DJIWaypointV2Error("Uploaded reach trigger invalid.", -8003)
      Package:dji.common.error
      Description:

      Uploaded reach trigger invalid.

      method DJIWaypointV2Error
      static DJIWaypointV2Error UPLOAD_ACTION_TRIGGER_REACH_AUTO_TERMINATE_INVALID
      = new DJIWaypointV2Error("Uploaded reach trigger invalid.", -8004)
      Package:dji.common.error
      Description:

      Uploaded reach trigger invalid.

      method DJIWaypointV2Error
      static DJIWaypointV2Error UPLOAD_ACTION_ACTUATOR_SPRAY_EXTERNAL_SPRAY_MODE_INVALID
      = new DJIWaypointV2Error("Uploaded spray actuator is invalid.", -10001)
      Package:dji.common.error
      Description:

      Uploaded spray actuator is invalid.

      method DJIWaypointV2Error
      static DJIWaypointV2Error UPLOAD_ACTION_ACTUATOR_SPRAY_FLOW_SPEED_INVALID
      = new DJIWaypointV2Error("Uploaded spray actuator is invalid.", -10002)
      Package:dji.common.error
      Description:

      Uploaded spray actuator is invalid.

      method DJIWaypointV2Error
      static DJIWaypointV2Error UPLOAD_ACTION_ACTUATOR_SPRAY_FLOW_SPEED_PRE_MU_INVALID
      = new DJIWaypointV2Error("Uploaded spray actuator is invalid.", -10003)
      Package:dji.common.error
      Description:

      Uploaded spray actuator is invalid.

      method DJIWaypointV2Error
      static DJIWaypointV2Error ACTION_ACTUATOR_PAYLOAD_FAIL_TO_SEND_CMD_TO_PAYLOAD
      = new DJIWaypointV2Error("Uploaded payload actuator is invalid.", -13001)
      Package:dji.common.error
      Description:

      Uploaded payload actuator is invalid.

      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.