# File lib/faraday/error.rb, line 6 def initialize(ex) @wrapped_exception = nil @response = nil if ex.respond_to?(:backtrace) super(ex.message) @wrapped_exception = ex elsif ex.respond_to?(:each_key) super("the server responded with status #{ex[:status]}") @response = ex else super(ex.to_s) end end