DJI Mobile SDK Documentation

      class PipelineError

      class PipelineError extends DJIError
      Package:dji.mop.common
      Inherits From:DJIError
      Description:

      Errors related to the Pipelines.

      Class Members:

      Members

      final UNKNOWN
      static final PipelineError UNKNOWN =
      new PipelineError("DJIPipelineError: Unknown.", -10001)
      Package:dji.mop.common
      Description:

      Unknown.

      final CRC_CHECK_FAILED
      static final PipelineError CRC_CHECK_FAILED =
      new PipelineError("DJIPipelineError: CRC check failed.", -10002)
      Package:dji.mop.common
      Description:

      CRC check failed.

      final INVALID_PARAMETERS
      static final PipelineError INVALID_PARAMETERS =
      new PipelineError("DJIPipelineError: Invalid Parameters.", -10003)
      Package:dji.mop.common
      Description:

      Invalid Parameters.

      final NOT_ENOUGH_MEMORY
      static final PipelineError NOT_ENOUGH_MEMORY =
      new PipelineError("DJIPipelineError: Not enough memory.", -10004)
      Package:dji.mop.common
      Description:

      Not enough memory.

      final NOT_READY
      static final PipelineError NOT_READY =
      new PipelineError("DJIPipelineError: Usually occurs when allocating the local pipeline ID.", -10005)
      Package:dji.mop.common
      Description:

      Usually occurs when allocating the local pipeline ID.

      final SEND_FAILED
      static final PipelineError SEND_FAILED =
      new PipelineError("DJIPipelineError: Send data exception.", -10006)
      Package:dji.mop.common
      Description:

      Send data exception.

      final RECEIVE_FAILED
      static final PipelineError RECEIVE_FAILED =
      new PipelineError("DJIPipelineError: Receiving data exceptions.", -10007)
      Package:dji.mop.common
      Description:

      Receiving data exceptions.

      final TIMEOUT
      static final PipelineError TIMEOUT =
      new PipelineError("DJIPipelineError: Timeout error.", -10008)
      Package:dji.mop.common
      Description:

      Timeout error.

      final BUSY_OPERATION
      static final PipelineError BUSY_OPERATION =
      new PipelineError("DJIPipelineError: Busy now, please try again later.", -10009)
      Package:dji.mop.common
      Description:

      Busy now, please try again later.

      final UNACCEPTABLE_OPERATIONS
      static final PipelineError UNACCEPTABLE_OPERATIONS =
      new PipelineError("DJIPipelineError: TResource occupied, please select another ID connection.", -10010)
      Package:dji.mop.common
      Description:

      Resource occupied, please select another ID connection.

      final CLOSED
      static final PipelineError CLOSED =
      new PipelineError("DJIPipelineError: Connection closed, no need to call again.", -10011)
      Package:dji.mop.common
      Description:

      Connection closed, no need to call again.

      final CONNECTING
      static final PipelineError CONNECTING =
      new PipelineError("DJIPipelineError: Connecting, no need to call again.", -10012)
      Package:dji.mop.common
      Description:

      Connecting, no need to call again.

      final RESOURCES_NOT_AVAILABLE
      static final PipelineError RESOURCES_NOT_AVAILABLE =
      new PipelineError("DJIPipelineError: Local resources are ineffective and unavailable. Please recreate.", -10013)
      Package:dji.mop.common
      Description:

      Local resources are ineffective and unavailable. Please recreate.

      final CLOSING
      static final PipelineError CLOSING =
      new PipelineError("DJIPipelineError: Connection closing, no need to call again.", -10014)
      Package:dji.mop.common
      Description:

      Connection closing, no need to call again.

      final NOT_CONNECTED
      static final PipelineError NOT_CONNECTED =
      new PipelineError("DJIPipelineError: Connection has not established.", -10015)
      Package:dji.mop.common
      Description:

      Connection has not established.

      final LINK_BREAK
      static final PipelineError LINK_BREAK =
      new PipelineError("DJIPipelineError: Link broken, please check the connection with the aircraft.", -10016)
      Package:dji.mop.common
      Description:

      Link broken, please check the connection with the aircraft.

      final CONNECTION_REFUSED
      static final PipelineError CONNECTION_REFUSED =
      new PipelineError("DJIPipelineError: The target device refuses to connect.", -10017)
      Package:dji.mop.common
      Description:

      The target device refuses to connect.

      final ID_OCCUPIED
      static final PipelineError ID_OCCUPIED =
      new PipelineError("DJIPipelineError: Duplicated binding is not allowed. Please try to bind with a new ID.", -10018)
      Package:dji.mop.common
      Description:

      Duplicated binding is not allowed. Please try to bind with a new ID.

      final INTERNAL_STATUS_ERROR
      static final PipelineError INTERNAL_STATUS_ERROR =
      new PipelineError("DJIPipelineError: Internal status error. Please recreate the Pipeline object.", -10019)
      Package:dji.mop.common
      Description:

      Internal status error. Please recreate the Pipeline object.

      method getDJIError
      static PipelineError getDJIError(int code)
      Package:dji.mop.common
      Description:

      Get the object of PipelineError error information by error code.

      Input Parameters:
      int codeAn int value of the error code.
      Return:
      static PipelineErrorAn object of PipelineError.
      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.