DJI Mobile SDK Documentation

      class DJIGimbalError

      @EXClassNullAway
      class DJIGimbalError extends DJIError
      Package:dji.common.error
      Inherits From:DJIError
      Description:

      Defines all gimbal related errors.

      Class Members:
      method getDJIError
      static DJIError getDJIError(Ccode ccode)
      Package:dji.common.error
      Description:

      Returns the specific error in DJIGimbalError according to the error code.

      Input Parameters:
      Ccode ccodeError code.
      Return:
      static DJIErrorA DJIError instance of the specific error.
      final RESULT_FAILED
      static final DJIGimbalError RESULT_FAILED = new DJIGimbalError("Failed")
      Package:dji.common.error
      Description:

      Gimbal Result Failed.

      final CANNOT_SET_PARAMETERS_IN_THIS_STATE
      static final DJIGimbalError CANNOT_SET_PARAMETERS_IN_THIS_STATE =
      new DJIGimbalError("Cannot set the parameters in this state")
      Package:dji.common.error
      Description:

      Cannot set the parameters in this state.

      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.