BulkWriteError

public struct BulkWriteError : ServerError

A error that ocurred while executing a bulk write.

  • The errors that occured during individual writes as part of a bulk write. This field might be nil if the error was a write concern related error.

    Declaration

    Swift

    public let writeFailures: [BulkWriteFailure]?
  • The error that occured on account of write concern failure.

    Declaration

    Swift

    public let writeConcernFailure: WriteConcernFailure?
  • Any other error that might have occurred during the execution of a bulk write (e.g. a connection failure that occurred after a few inserts already succeeded)

    Declaration

    Swift

    public let otherError: Error?
  • The partial result of any successful operations that occurred as part of a bulk write.

    Declaration

    Swift

    public let result: BulkWriteResult?
  • Labels that may describe the context in which this error was thrown.

    Declaration

    Swift

    public let errorLabels: [String]?