Exception: DataBindings::HttpError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/data_bindings/converters.rb

Overview

Exception raised by invalid #*_http calls.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(m, response) ⇒ HttpError

Returns a new instance of HttpError.



8
9
10
11
# File 'lib/data_bindings/converters.rb', line 8

def initialize(m, response)
  super m
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

The HTTParty::Response object underlying this exception



6
7
8
# File 'lib/data_bindings/converters.rb', line 6

def response
  @response
end