Exception: Weatherzone::RequestFailed

Inherits:
Exception
  • Object
show all
Defined in:
lib/weatherzone/connection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, original_exception) ⇒ RequestFailed

Returns a new instance of RequestFailed.



8
9
10
11
# File 'lib/weatherzone/connection.rb', line 8

def initialize(url, original_exception)
  @message            = "Failed to retreive #{url} and no cached version available"
  @original_exception = original_exception
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



7
8
9
# File 'lib/weatherzone/connection.rb', line 7

def message
  @message
end

#original_exceptionObject (readonly)

Returns the value of attribute original_exception.



7
8
9
# File 'lib/weatherzone/connection.rb', line 7

def original_exception
  @original_exception
end