Sha256: 3b3748f5ec54541ed790b91a441e0b86a766b7a0520e2a2221a6522f8bc9db1c

Contents?: true

Size: 280 Bytes

Versions: 8

Compression:

Stored size: 280 Bytes

Contents

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

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

      def message
        'Unkown error.'
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
deepl-rb-2.2.1 lib/deepl/exceptions/request_error.rb
deepl-rb-2.2.0 lib/deepl/exceptions/request_error.rb
deepl-rb-2.1.0 lib/deepl/exceptions/request_error.rb
deepl-rb-2.0.0 lib/deepl/exceptions/request_error.rb
deepl-rb-1.0.1 lib/deepl/exceptions/request_error.rb
deepl-rb-1.0.0 lib/deepl/exceptions/request_error.rb
deepl-rb-0.0.1 lib/deepl/exceptions/request_error.rb
deepl-rb-0.0.0 lib/deepl/exceptions/request_error.rb