Class: Excon::Connection
- Inherits:
-
Object
- Object
- Excon::Connection
- Defined in:
- lib/brick/monkey_patches/connection.rb
Instance Method Summary collapse
Instance Method Details
#error_call(datum) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/brick/monkey_patches/connection.rb', line 3 def error_call(datum) if datum[:error] = datum[:response][:body] rescue nil if !.nil? and .length>0 raise(datum[:error],) else raise(datum[:error]) end end end |