Exception: CMSScanner::Error::TargetDown

Inherits:
Standard
  • Object
show all
Defined in:
lib/cms_scanner/errors/http.rb

Overview

Target Down Error

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ TargetDown

Returns a new instance of TargetDown.



9
10
11
# File 'lib/cms_scanner/errors/http.rb', line 9

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



7
8
9
# File 'lib/cms_scanner/errors/http.rb', line 7

def response
  @response
end

Instance Method Details

#to_sObject



13
14
15
# File 'lib/cms_scanner/errors/http.rb', line 13

def to_s
  "The url supplied '#{response.request.url}' seems to be down (#{response.return_message})"
end