Protocols
The following protocols are available globally.
-
A protocol for
See moreCommandEvent
handlers to implement.Declaration
Swift
public protocol CommandEventHandler : AnyObject
-
A protocol for handlers of events relating to SDAM to implement.
See moreDeclaration
Swift
public protocol SDAMEventHandler : AnyObject
-
An empty protocol for encapsulating all errors that BSON package can throw.
Declaration
Swift
public protocol BSONErrorProtocol : LocalizedError
-
Protocol indicating a set of options can be used to configure
See moreBSONEncoder
andBSONDecoder
.Declaration
Swift
public protocol CodingStrategyProvider
-
An empty protocol for encapsulating all errors that this package can throw.
Declaration
Swift
public protocol MongoErrorProtocol : LocalizedError
-
Protocol conformed to by errors that may contain error labels.
See moreDeclaration
Swift
public protocol MongoLabeledError : MongoErrorProtocol
-
Protocol conformed to by errors returned from the MongoDB deployment.
Declaration
Swift
public protocol MongoServerError : MongoLabeledError
-
A protocol describing errors caused by improper usage of the driver by the user.
Declaration
Swift
public protocol MongoUserError : MongoErrorProtocol
-
The possible errors that can occur unexpectedly driver-side.
Declaration
Swift
public protocol MongoRuntimeError : MongoErrorProtocol