Enumerationswift-protobuf 1.28.1SwiftProtobuf
BinaryDecodingError
Describes errors that can occur when decoding a message from binary format.
BinaryDecodingError.swift:16enum BinaryDecodingError
Cases
case trailingGarbage
Extraneous data remained after decoding should have been complete.
case truncated
The decoder unexpectedly reached the end of the data before it was expected.
case invalidUTF8
A string field was not encoded as valid UTF-8.
case malformedProtobuf
The binary data was malformed in some way, such as an invalid wire format or field tag.
case missingRequiredFields
The definition of the message or one of its nested messages has required fields but the binary data did not include values for them. You must pass
partial: true
during decoding if you wish to explicitly ignore missing required fields.case internalExtensionError
An internal error happened while decoding. If this is ever encountered, please file an issue with SwiftProtobuf with as much details as possible for what happened (proto definitions, bytes being decoded (if possible)).
case messageDepthLimit
Reached the nesting limit for messages within messages while decoding.
Citizens in SwiftProtobuf
Conformances
protocol Equatable
A type that can be compared for value equality.
protocol Error
A type representing an error value that can be thrown.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.
Instance features
var localizedDescription: String
Retrieve the localized description for this error.