Sha256: f2064b498b2b72b57ce8d8fcf9ee4004aebf498e93d130b462c81ac54cd9605a

Contents?: true

Size: 426 Bytes

Versions: 4

Compression:

Stored size: 426 Bytes

Contents

# Copyright 2024 DeepL SE (https://www.deepl.com)
# Use of this source code is governed by an MIT
# license that can be found in the LICENSE file.
# frozen_string_literal: true

module DeepL
  module Exceptions
    class ServerError < RequestError
      def message
        'An internal server error occured. Try again after waiting a short period.'
      end

      def should_retry?
        true
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
deepl-rb-3.1.0 lib/deepl/exceptions/server_error.rb
deepl-rb-3.0.2 lib/deepl/exceptions/server_error.rb
deepl-rb-3.0.1 lib/deepl/exceptions/server_error.rb
deepl-rb-3.0.0 lib/deepl/exceptions/server_error.rb