DJI Mobile SDK Documentation

      class RecordVideoActionError

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

      Error codes for record video actions.

      Class Members:

      Members

      final INVALID_DURATION
      static final RecordVideoActionError
      INVALID_DURATION = new RecordVideoActionError("Duration value is invalid which is less than 0")
      Package:dji.sdk.mission.error
      Description:

      Duration value is invalid (less than 0).

      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.