Exception: Ferrum::StatusError
Instance Method Summary collapse
-
#initialize(url, pendings = []) ⇒ StatusError
constructor
A new instance of StatusError.
Constructor Details
#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 |