class ATT::Swift::Error
Base error class for exceptions raised by Swift
Attributes
http_response[R]
Net::HTTP response for this error
Public Class Methods
new(response, message)
click to toggle source
Creates a new Swift::Error
for a Net::HTTP response
with the additional message
describing why the response caused the error.
Calls superclass method
# File lib/att/swift.rb, line 53 def initialize response, message @http_response = response super "#{message} - #{response.code}" end