Exception: Ebay::ConnectionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ebay/request/connection.rb

Overview

:nodoc:

Direct Known Subclasses

ClientError, ServerError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response, message = nil) ⇒ ConnectionError

Returns a new instance of ConnectionError.



10
11
12
13
# File 'lib/ebay/request/connection.rb', line 10

def initialize(response, message = nil)
  @response = response
  @message  = message
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



8
9
10
# File 'lib/ebay/request/connection.rb', line 8

def response
  @response
end

Instance Method Details

#to_sObject



15
16
17
# File 'lib/ebay/request/connection.rb', line 15

def to_s
  "Failed with #{response.code}"
end