DJI Mobile SDK Documentation

      class DJIAccessLockerError

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

      Errors related to the access locker.

      Class Members:

      Members

      final INVALID_STATE
      static final DJIAccessLockerError INVALID_STATE = new DJIAccessLockerError("The command is not valid in current state.")
      Package:dji.common.error
      Description:

      The command is not valid in current state.

      final FIRMWARE_WRITE_ERROR
      static final DJIAccessLockerError FIRMWARE_WRITE_ERROR = new DJIAccessLockerError("Write failure when updating data in the firmware.")
      Package:dji.common.error
      Description:

      Write failure when updating data in the firmware.

      final FIRMWARE_READ_ERROR
      static final DJIAccessLockerError FIRMWARE_READ_ERROR = new DJIAccessLockerError("Read failure when accessing data in the firmware.")
      Package:dji.common.error
      Description:

      Read failure when accessing data in the firmware.

      final SECURITY_CODE_INCORRECT
      static final DJIAccessLockerError
      SECURITY_CODE_INCORRECT= new DJIAccessLockerError("The security code is incorrect.")
      Package:dji.common.error
      Description:

      The Security Code is incorrect.

      final NOT_SET_UP_ERROR
      static final DJIAccessLockerError NOT_SET_UP_ERROR =
      new DJIAccessLockerError("The user account is not set up for the security feature yet.")
      Package:dji.common.error
      Description:

      The user account is not set up for the security feature yet.

      final ALREADY_UNLOCKED
      static final DJIAccessLockerError ALREADY_UNLOCKED =
      new DJIAccessLockerError("The aircraft is already unlocked.")
      Package:dji.common.error
      Description:

      The aircraft is already unlocked.

      final SECURITY_CODE_INCORRECT_FIVE_TIMES
      static final DJIAccessLockerError SECURITY_CODE_INCORRECT_FIVE_TIMES =
      new DJIAccessLockerError("Attempt with wrong security codes more than 5 times. The aircraft is disable and try again in 1 minute.")
      Package:dji.common.error
      Description:

      Attempt with wrong Security Code more than 5 times. The aircraft is disable and try again in 1 minute.

      final SECURITY_CODE_INCORRECT_TWENTY_TIMES
      static final DJIAccessLockerError SECURITY_CODE_INCORRECT_TWENTY_TIMES =
      new DJIAccessLockerError("Attempt with wrong security codes more than 20 times. The aircraft is disable and try again in 24 hours.")
      Package:dji.common.error
      Description:

      Attempt with wrong Security Code more than 20 times. The aircraft is disable and try again in 24 hours.

      final USERNAME_NOT_EXIST
      static final DJIAccessLockerError USERNAME_NOT_EXIST =
      new DJIAccessLockerError("The username does not exist.")
      Package:dji.common.error
      Description:

      The username does not exist.

      final SECURITY_CODE_FORMAT_INVALID
      static final DJIAccessLockerError SECURITY_CODE_FORMAT_INVALID= new DJIAccessLockerError("The new security code is not valid.A valid security code should contain only numbers and letters and its length is not less than 6 characters and not longer than 8 characters.")
      Package:dji.common.error
      Description:

      The new security code is not valid. A valid security code should contain only numbers and letters and its length is not less than 4 characters and not longer than 8 characters.

      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.