DocumentKeyError
A document had an invalid key scheme.
@frozen enum DocumentKeyError<Key> where Key : SendableA document had an invalid key scheme.
@frozen enum DocumentKeyError<Key> where Key : Sendableimport BSONABIModels the BSON type system and the binary interface of the BSON serialization format.
import BSONDecodingImplements the BSON decoding system.
@frozen enum BSONThe namespace for all BSON types.
protocol Sendablecase duplicate(Key)A document contained more than one field with the same key.
case undefined(Key)A document did not contain a field with the expected key.
protocol TracingDecoderA type that represents a scope for decoding operations.
@frozen struct BinaryDecoder@frozen struct BinaryTypecastErrorA list had an invalid number of elements.
@frozen struct DecodingError<Location> where Location : SendableAn error occurred while decoding a document field.
@frozen struct DocumentDecoder<CodingKey> where CodingKey : Hashable, CodingKey : RawRepresentable, CodingKey : Sendable, CodingKey.RawValue == StringA thin wrapper around a native Swift dictionary providing an efficient decoding interface for a Document.
@frozen struct FieldAccessor<Key> where Key : SendableA field that may or may not exist in a document. This type is the return value of DocumentDecoder’s non-optional subscript, and is useful for obtaining structured diagnostics for “key-not-found” scenarios.
@frozen struct FieldDecoder<Key> where Key : SendableA field that is already known to exist in a document. This type is the return value of DocumentDecoder’s optional subscript.
@frozen struct KeyspaceDecoder<Key>@frozen struct KeyspaceErrorAn error that is thrown when a key cannot be mapped to a keyspace.
@frozen struct ListDecoderAn iterable type that produces this list’s elements, with associated indices. Parsing a list is slightly faster than parsing a general Document, because this method ignores the document keys.
@frozen enum SingleKeyError<CodingKey>@frozen struct ValueError<Value, Cases> where Value : SendableA decoder successfully to cast a variant to an expected value type, but it was not a valid case of the expected destination type.
protocol Error : SendableA type representing an error value that can be thrown.
protocol EquatableA type that can be compared for value equality.
protocol CopyableA type whose values can be implicitly or explicitly copied.
protocol Escapablestatic func != (lhs: Self, rhs: Self) -> Bool Returns a Boolean value indicating whether two values are not equal.
import BSONAn umbrella module providing a BSON parser, encoder, and decoder.
static func == (lhs: Self, rhs: any Error) -> Bool func headline(plaintext: Bool = true) -> String protocol CustomStringConvertibleA type with a customized textual representation.
protocol NamedError : CustomStringConvertible, ErrorAn error type that supports printing with a custom heading.
var description: String { get }Returns a description of this error without terminal colors.
var message: String { get }var name: String { get }The name of the error.