class BandwidthIris::Errors::GenericError
Generic error class
Attributes
return [Hash] Body
@return [String] Iris Error code
return [Hash] Headers
@return [String] HTTP status code
return [String] Reason
Public Class Methods
Source
# 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
@api private
Calls superclass method