class BandwidthIris::Errors::GenericError
Generic error class
Attributes
body[R]
return [Hash] Body
code[R]
@return [String] Iris Error code
headers[R]
return [Hash] Headers
http_status[R]
@return [String] HTTP status code
reason[R]
return [String] Reason
Public Class Methods
new(http_status, reason, headers, body)
click to toggle source
@api private
Calls superclass method
# File lib/bandwidth-iris/errors.rb, line 21 def initialize http_status, reason, headers, body @http_status = http_status @reason = reason @headers = headers @body = body super message = "HTTP Error\nStatus Code: #{@http_status}\nReason: #{@reason}\nHTTP Headers: #{@headers}\nResponse Body: #{@body}" end