NPRPC docs

struct RpcError

Swift

struct RpcError

A local RPC setup or transport failure. Remote IDL errors retain their generated types and are decoded from a successful transport response.

nprpc_swift/Sources/NPRPC/Errors.swift:16

Constructors

init(kind: Kind, message: String, nativeCode: Int32 = 0, nativeCategory: String? = nil)

Not documented.

nprpc_swift/Sources/NPRPC/Errors.swift:35

Properties

let kind: Kind

Not documented.

nprpc_swift/Sources/NPRPC/Errors.swift:29

let message: String

Not documented.

nprpc_swift/Sources/NPRPC/Errors.swift:30

let nativeCategory: String?

Not documented.

nprpc_swift/Sources/NPRPC/Errors.swift:33

let nativeCode: Int32

The original transport/system code, or zero when unavailable.

nprpc_swift/Sources/NPRPC/Errors.swift:32

Types