Exception: Undead::StatusFailError
Instance Attribute Summary
Attributes inherited from ClientError
#response
Instance Method Summary
collapse
Methods inherited from ClientError
#initialize
Instance Method Details
#details ⇒ Object
62
63
64
|
# File 'lib/undead/errors.rb', line 62
def details
response['args'][1]
end
|
#message ⇒ Object
66
67
68
69
70
|
# File 'lib/undead/errors.rb', line 66
def message
msg = "Request to '#{url}' failed to reach server, check DNS and/or server status"
msg += " - #{details}" if details
msg
end
|
#url ⇒ Object
58
59
60
|
# File 'lib/undead/errors.rb', line 58
def url
response['args'].first
end
|