Exception: WPScan::Error::TargetDown

Inherits:
Standard
  • Object
show all
Defined in:
lib/wpscan/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.



53
54
55
# File 'lib/wpscan/errors/http.rb', line 53

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



51
52
53
# File 'lib/wpscan/errors/http.rb', line 51

def response
  @response
end

Instance Method Details

#to_sObject



57
58
59
# File 'lib/wpscan/errors/http.rb', line 57

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