Exception: ATT::Swift::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ATT::Swift::Error
- Defined in:
- lib/att/swift.rb
Overview
Base error class for exceptions raised by Swift
Instance Attribute Summary collapse
-
#http_response ⇒ Object
readonly
Net::HTTP response for this error.
Instance Method Summary collapse
-
#initialize(response, message) ⇒ Error
constructor
Creates a new Swift::Error for a Net::HTTP
response
with the additionalmessage
describing why the response caused the error.
Constructor Details
#initialize(response, message) ⇒ Error
Creates a new Swift::Error for a Net::HTTP response
with the additional message
describing why the response caused the error.
53 54 55 56 |
# File 'lib/att/swift.rb', line 53 def initialize response, @http_response = response super "#{} - #{response.code}" end |
Instance Attribute Details
#http_response ⇒ Object (readonly)
Net::HTTP response for this error
47 48 49 |
# File 'lib/att/swift.rb', line 47 def http_response @http_response end |