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

- (ConnectionError) initialize(response, message = nil)



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

- (Object) response (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

- (Object) to_s



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

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