BSONError
public enum BSONError
Namespace containing all the error types introduced by this BSON library and their dependent types.
-
An error thrown when the user passes in invalid arguments to a BSON method.
See moreDeclaration
Swift
public struct InvalidArgumentError : BSONErrorProtocol
extension BSONError.InvalidArgumentError: MongoErrorProtocol
-
An error thrown when the BSON library encounters a internal error not caused by the user. This is usually indicative of a bug in the BSON library or system related failure.
See moreDeclaration
Swift
public struct InternalError : BSONErrorProtocol
extension BSONError.InternalError: MongoErrorProtocol
-
An error thrown when the BSON library is incorrectly used.
See moreDeclaration
Swift
public struct LogicError : BSONErrorProtocol
extension BSONError.LogicError: MongoErrorProtocol
-
An error thrown when a document exceeds the maximum BSON encoding size.
See moreDeclaration
Swift
public struct DocumentTooLargeError : BSONErrorProtocol
extension BSONError.DocumentTooLargeError: MongoErrorProtocol