Initializerswift-protobuf 1.29.0SwiftProtobuf
init(code:message:location:)
SwiftProtobufError.swift:79init(code: Code, message: String, location: SourceLocation)
init(code: Code, message: String, location: SourceLocation)
s13SwiftProtobuf0aB5ErrorV4code7message8locationA2C4CodeV_SSAC14SourceLocationVtcfc
What are these?3BTI3
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
struct SwiftProtobufError
A SwiftProtobuf specific error.
struct Code
A high level indication of the kind of error being thrown.
@frozen struct String
A Unicode string value that is a collection of characters.
struct SourceLocation
A location within source code.
var code: Code { get set }
A high-level error code to provide broad a classification.
var debugDescription: String { get }
var description: String { get }
enum BinaryDecoding
Errors arising from binary decoding of data into protobufs.
enum BinaryStreamDecoding
Errors arising from decoding streams of binary messages. These errors have to do with the framing of the messages in the stream, or the stream as a whole.
enum JSONDecoding
Errors arising from JSON decoding of data into protobufs.
enum JSONEncoding
Errors arising from JSON encoding of messages.