class Grac::Exception::ClientException
Attributes
body[R]
method[R]
url[R]
Public Class Methods
new(method, url, body)
click to toggle source
# File lib/grac/exception.rb, line 8 def initialize(method, url, body) @method = (method || "").upcase @url = url @body = body end
Public Instance Methods
inspect()
click to toggle source
# File lib/grac/exception.rb, line 14 def inspect "#{self.class.name}: #{message}" end
message()
click to toggle source
# File lib/grac/exception.rb, line 18 def message "#{@method} '#{@url}' failed with content: #{@body}" end
Also aliased as: to_s