Sha256: 114f575b0ecd4ba9a348d9858a6bb2c25326b24459f78684e2ad09a4cadf50c7
Contents?: true
Size: 585 Bytes
Versions: 1
Compression:
Stored size: 585 Bytes
Contents
# frozen_string_literal: true module Cryptomus module Errors class Error < StandardError end class ApiError < Error # @!method response [Faraday::Response,nil] # @!method status [Integer,nil] # @!method response_body [Hash,nil] attr_reader :response, :status, :response_body # @param msg [String] # @param response [Faraday::Response,nil] def initialize(msg, response = nil) @response = response @status = response&.status @response_body = response&.body super(msg) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cryptomus-0.1.0 | lib/cryptomus/errors.rb |