Add Economics, Governance, and Mining SDKs for: - Java: Full SDK with CompletableFuture async operations - Kotlin: Coroutine-based SDK with suspend functions - Swift: Modern Swift SDK with async/await - Flutter/Dart: Complete Dart SDK with Future-based API - C: Header files and implementations with opaque handles - C++: Modern C++17 with std::future and PIMPL pattern - C#: Records, async/await Tasks, and IDisposable - Ruby: Struct-based types with Faraday HTTP client Also includes minor Dart lint fixes (const exceptions).
20 lines
454 B
Ruby
20 lines
454 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative "synor_mining/version"
|
|
require_relative "synor_mining/types"
|
|
require_relative "synor_mining/client"
|
|
|
|
module SynorMining
|
|
class Error < StandardError; end
|
|
class ClientClosedError < Error; end
|
|
|
|
class HttpError < Error
|
|
attr_reader :status_code, :code
|
|
|
|
def initialize(message, status_code: nil, code: nil)
|
|
super(message)
|
|
@status_code = status_code
|
|
@code = code
|
|
end
|
|
end
|
|
end
|