Exception: Smoke::Request::Failure

Inherits:
Exception
  • Object
show all
Defined in:
lib/smoke/request.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri, msg) ⇒ Failure

Returns a new instance of Failure.



6
7
8
9
# File 'lib/smoke/request.rb', line 6

def initialize(uri, msg)
  @uri = URI.parse(uri)
  Smoke.log.error "Smoke Request: Failed to get from #{@uri} (#{msg})"
end

Instance Attribute Details

#uriObject (readonly)

Returns the value of attribute uri.



4
5
6
# File 'lib/smoke/request.rb', line 4

def uri
  @uri
end