Sha256: f2ea3de95bec890b6b72e0eee61c01beae2ddc88ecbb69dd4e0c721a8e51223c

Contents?: true

Size: 267 Bytes

Versions: 23

Compression:

Stored size: 267 Bytes

Contents

# frozen_string_literal: true

module EzClient
  class ResponseStatusError < StandardError
    attr_accessor :response

    def initialize(response)
      self.response = response
    end

    def message
      "Bad response code: #{response.code}"
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
ezclient-0.8.0 lib/ezclient/errors.rb
ezclient-0.7.0 lib/ezclient/errors.rb
ezclient-0.6.1 lib/ezclient/errors.rb