Sha256: 5caf19bddcf2a29290f12dd8d3e6b28a9da6f42b71f7c64db93e8c31bb4f2df6

Contents?: true

Size: 328 Bytes

Versions: 9

Compression:

Stored size: 328 Bytes

Contents

# frozen_string_literal: true

module DeepL
  module Exceptions
    class RequestError < Error
      attr_reader :request, :response

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

      def message
        'Unknown error.'
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
deepl-rb-2.5.3 lib/deepl/exceptions/request_error.rb
deepl-rb-2.5.2 lib/deepl/exceptions/request_error.rb
deepl-rb-2.5.1 lib/deepl/exceptions/request_error.rb
deepl-rb-2.5.0 lib/deepl/exceptions/request_error.rb
deepl-rb-2.4.0 lib/deepl/exceptions/request_error.rb
deepl-rb-2.3.1 lib/deepl/exceptions/request_error.rb
deepl-rb-2.3.0 lib/deepl/exceptions/request_error.rb
deepl-rb-2.2.4 lib/deepl/exceptions/request_error.rb
deepl-rb-2.2.3 lib/deepl/exceptions/request_error.rb