Sha256: cee38535960fb9d7a1374e0daa8f5143760625adf692f2f4355f8281d8f6f9d9
Contents?: true
Size: 547 Bytes
Versions: 4
Compression:
Stored size: 547 Bytes
Contents
module SolanaRpcRuby ## # ApiError is a wrapper class for errors # class ApiError < StandardError # Error code. # @return [Integer] attr_reader :code # Error message. # @return [String] attr_reader :message # Initialize object with json response from the API with error. # # @param code [Integer] # @param message [String] # # @return [SolanaRpcRuby::ApiError] def initialize(code: nil, message:) @code = code @message = message.to_s super message end end end
Version data entries
4 entries across 4 versions & 1 rubygems