Exception: Undead::StatusFailError

Inherits:
ClientError show all
Defined in:
lib/undead/errors.rb

Instance Attribute Summary

Attributes inherited from ClientError

#response

Instance Method Summary collapse

Methods inherited from ClientError

#initialize

Constructor Details

This class inherits a constructor from Undead::ClientError

Instance Method Details

#detailsObject



62
63
64
# File 'lib/undead/errors.rb', line 62

def details
  response['args'][1]
end

#messageObject



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

#urlObject



58
59
60
# File 'lib/undead/errors.rb', line 58

def url
  response['args'].first
end