Method: Ferrum::StatusError#initialize
- Defined in:
- lib/ferrum.rb
#initialize(url, pendings = []) ⇒ StatusError
Returns a new instance of StatusError.
13 14 15 16 17 18 19 20 21 |
# File 'lib/ferrum.rb', line 13 def initialize(url, pendings = []) = if pendings.empty? "Request to #{url} failed to reach server, check DNS and/or server status" else "Request to #{url} reached server, but there are still pending connections: #{pendings.join(', ')}" end super() end |