JSONEncodingError
Enum constants that identify the particular error.
enum JSONEncodingError
Enum constants that identify the particular error.
enum JSONEncodingError
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
case anyTranscodeFailure
Any fields that were decoded from binary format cannot be re-encoded into JSON unless the object they hold is a well-known type or a type registered with via Google_Protobuf_Any.register()
case timestampRange
Timestamp values can only be JSON encoded if they hold a value between 0001-01-01Z00:00:00 and 9999-12-31Z23:59:59.
case durationRange
Duration values can only be JSON encoded if they hold a value less than +/- 100 years.
case fieldMaskConversion
Field masks get edited when converting between JSON and protobuf
case missingFieldNames
Field names were not compiled into the binary
case missingValue
Instances of Google_Protobuf_Value
can only be encoded if they have a valid kind
(that is, they represent a null value, number, boolean, string, struct, or list).
case valueNumberNotFinite
google.protobuf.Value cannot encode double values for infinity or nan, because they would be parsed as a string.
protocol Equatable
A type that can be compared for value equality.
protocol Error : Sendable
A type representing an error value that can be thrown.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
var localizedDescription: String { get }
Retrieve the localized description for this error.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.