lib/deepl/exceptions/request_error.rb in deepl-rb-2.5.3 vs lib/deepl/exceptions/request_error.rb in deepl-rb-3.0.0
- old
+ new
@@ -1,14 +1,16 @@
+# Copyright 2018 Daniel Herzog
+# Use of this source code is governed by an MIT
+# license that can be found in the LICENSE.md file.
# frozen_string_literal: true
module DeepL
module Exceptions
class RequestError < Error
attr_reader :request, :response
- def initialize(request, response)
+ def initialize(response)
super()
- @request = request
@response = response
end
def message
'Unknown error.'