# File lib/twitter/error.rb, line 21 def initialize(exception=$!, response_headers={}) @rate_limit = Twitter::RateLimit.new(response_headers) if exception.respond_to?(:backtrace) super(exception.message) @wrapped_exception = exception else super(exception.to_s) end end