lib/deepl/exceptions/limit_exceeded.rb in deepl-rb-2.5.3 vs lib/deepl/exceptions/limit_exceeded.rb in deepl-rb-3.0.0

- old
+ new

@@ -1,11 +1,18 @@ +# 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