DJI Mobile SDK Documentation

      class ShootPhotoActionError

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

      Error codes for ShootPhotoAction specific errors.

      Class Members:

      Members

      ShootPhotoAction
      final
      final INVALID_PHOTO_COUNT
      static final ShootPhotoActionError
      INVALID_PHOTO_COUNT = new ShootPhotoActionError("Invalid value for photo count")
      Package:dji.sdk.mission.error
      Description:

      Invalid value for photo count.

      final INVALID_TIME_INTERVAL
      static final ShootPhotoActionError
      INVALID_TIME_INTERVAL = new ShootPhotoActionError("Invalid value for time interval. JPEG interval range is [2s, 30s], RAW interval range is in [10s, 30]")
      Package:dji.sdk.mission.error
      Description:

      Invalid value for time interval.

      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.