Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
The projection these were generated from predated the compute migration, so
they described /v1/visor — which the API serves at zero paths now.

No /v1/visor path survives here.
2026-09-05 18:55:38 -07:00

36 lines
1.2 KiB
Swift

//
// RpcError.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct RpcError: Sendable, Codable, ParameterConvertible, Hashable {
/** Code is the JSON-RPC error code the chain reported, passed through as it came. -32603 (internal error) is the one value this deployment mints itself, for an upstream that could not be reached at all. */
public var code: Int64?
/** Message is the chain's own explanation, e.g. \"execution reverted\". It is \"upstream unavailable\" when the deployment minted the error rather than the chain — that is the one message this side writes. */
public var message: String?
public init(code: Int64? = nil, message: String? = nil) {
self.code = code
self.message = message
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case code
case message
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(code, forKey: .code)
try container.encodeIfPresent(message, forKey: .message)
}
}