Sha256: 8ed09d18ea00e703c5e3792e3b2fda0f3cbd395ad915694563d66ddd11bd776b

Contents?: true

Size: 400 Bytes

Versions: 4

Compression:

Stored size: 400 Bytes

Contents

# 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 LimitExceeded < RequestError
      def message
        'Limit exceeded. Please wait and send your request once again.'
      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/limit_exceeded.rb
deepl-rb-3.0.2 lib/deepl/exceptions/limit_exceeded.rb
deepl-rb-3.0.1 lib/deepl/exceptions/limit_exceeded.rb
deepl-rb-3.0.0 lib/deepl/exceptions/limit_exceeded.rb