class HangoutsChat::Sender::APIError
Unsuccessful API respond exception
Unsuccessful respond exception
Public Class Methods
new(response)
click to toggle source
Creates exception object with generated message @param response [Net::HTTPResponse] API response
Calls superclass method
# File lib/hangouts_chat/exceptions.rb, line 9 def initialize(response) msg = "HTTP #{response.code} #{response.msg}\n" msg += "Body:\n#{response.body}" super(msg) end