Exception: Common::Exceptions::TooManyRequests

Inherits:
BaseError
  • Object
show all
Defined in:
lib/common/exceptions/too_many_requests.rb

Direct Known Subclasses

RateLimitedSearch::RateLimitedError

Instance Method Summary collapse

Methods inherited from BaseError

#log_to_sentry?, #message, #sentry_type, #status_code

Instance Method Details

#errorsObject



9
10
11
# File 'lib/common/exceptions/too_many_requests.rb', line 9

def errors
  Array(SerializableError.new(i18n_interpolated))
end

#i18n_keyObject



13
14
15
# File 'lib/common/exceptions/too_many_requests.rb', line 13

def i18n_key
  'common.exceptions.too_many_requests'
end