WriteFailure
public struct WriteFailure : Codable
A struct to represent a single write error not resulting from an executed write operation.
-
An integer value identifying the error.
Declaration
Swift
public let code: ServerErrorCode
-
A human-readable string identifying the error.
Declaration
Swift
public let codeName: String
-
A description of the error.
Declaration
Swift
public let message: String
-
A document providing more information about the write error (e.g. details pertaining to document validation).
Declaration
Swift
public let details: BSONDocument?
-
Declaration
Swift
public init(from decoder: Decoder) throws