Structureswift-mongodb 0.27.0BSONDecoding->BSONABI
DecodingError
An error occurred while decoding a document field.
BSON.DecodingError.swift:7@frozen struct DecodingError<Location> where Location : Sendable
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (13) members.
Protocols
protocol TraceableDecoder
A type that represents a scope for decoding operations.
Types
struct BinaryArray<Element>
A
BinaryArray
is a typed view of anArraySlice
as a densly-packed buffer of trivialElement
s. It’s a good idea to use something unpretentious like a tuple of fixed-width integers for theElement
type, to avoid unexpected padding behavior.struct BinaryDecoder
struct BinaryTypecastError
A list had an invalid number of elements.
struct DocumentDecoder<CodingKey>
A thin wrapper around a native Swift dictionary providing an efficient decoding interface for a
Document
.enum DocumentKeyError<Key>
A document had an invalid key scheme.
struct FieldDecoder<Key>
struct ListDecoder
A thin wrapper around a native Swift array providing an efficient decoding interface for a
List
.struct OptionalDecoder<Key>
A field that may or may not exist in a document. This type is the return value of
Dictionary
’s non-optional subscript, and is useful for obtaining structured diagnostics for “key-not-found” scenarios.struct Shape
An efficient interface for checking the shape of a decoded list or binary array at run time.
struct ShapeError
A list had an invalid number of elements or a binary array had an invalid number of bytes.
enum SingleKeyError<CodingKey>
struct ValueError<Value, Cases>
A decoder successfully to cast a variant to an expected value type, but it was not a valid case of the expected destination type.
Citizens in BSONDecoding
Conformances
protocol Error
A type representing an error value that can be thrown.
protocol Sendable
Type members
Instance members
let location: Location
The location (key or index) where the error occurred.
let underlying: any Error
The underlying error that occurred.
Type features
Instance features
Citizens in BSONDecoding
Conformances
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
Type members
static func == (lhs: `Self`, rhs: `Self`
) -> Bool Compares the
location
properties and theunderlying
errors of the operands for equality, returningtrue
if they are equal. Always returnsfalse
if (any of) the underlyingError
existentials are notEquatable
.
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.
Citizens in BSONDecoding
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
protocol TraceableError
A link in a propogated error.
Instance features
Citizens in BSONDecoding
where Location:Sendable
Instance members
var notes: [String]
Returns a single note that says
"while decoding value for field '_'"
.