WriteConcernFailure
public struct WriteConcernFailure : Codable
A struct to represent a write concern error resulting from an executed write operation.
-
An integer value identifying the write concern error.
Declaration
Swift
public let code: ServerErrorCode
-
A human-readable string identifying write concern error.
Declaration
Swift
public let codeName: String
-
A document identifying the write concern setting related to the error.
Declaration
Swift
public let details: BSONDocument?
-
A description of the error.
Declaration
Swift
public let message: String
-
Labels that may describe the context in which this error was thrown.
Declaration
Swift
public let errorLabels: [String]?
-
Declaration
Swift
public init(from decoder: Decoder) throws