Class: Momento::Error::LimitExceededError::ErrorMessages

Inherits:
Object
  • Object
show all
Defined in:
lib/momento/error/types.rb

Constant Summary collapse

TOPIC_SUBSCRIPTIONS_LIMIT_EXCEEDED =
'Topic subscriptions limit exceeded.'.freeze
OPERATIONS_RATE_LIMIT_EXCEEDED =
'Operations rate limit exceeded.'.freeze
THROUGHPUT_RATE_LIMIT_EXCEEDED =
'Throughput rate limit exceeded.'.freeze
REQUEST_SIZE_LIMIT_EXCEEDED =
'Request size limit exceeded.'.freeze
ITEM_SIZE_LIMIT_EXCEEDED =
'Item size limit exceeded.'.freeze
ELEMENT_SIZE_LIMIT_EXCEEDED =
'Element size limit exceeded.'.freeze
UNKNOWN_LIMIT_EXCEEDED =
'Limit exceeded for this account.'.freeze
ERROR_CAUSES =

Map error causes to the corresponding message

{
  'topic_subscriptions_limit_exceeded' => TOPIC_SUBSCRIPTIONS_LIMIT_EXCEEDED,
  'operations_rate_limit_exceeded' => OPERATIONS_RATE_LIMIT_EXCEEDED,
  'throughput_rate_limit_exceeded' => THROUGHPUT_RATE_LIMIT_EXCEEDED,
  'request_size_limit_exceeded' => REQUEST_SIZE_LIMIT_EXCEEDED,
  'item_size_limit_exceeded' => ITEM_SIZE_LIMIT_EXCEEDED,
  'element_size_limit_exceeded' => ELEMENT_SIZE_LIMIT_EXCEEDED
}.freeze
ERROR_SUBSTRINGS =

Map substrings to the corresponding message

{
  'subscribers' => TOPIC_SUBSCRIPTIONS_LIMIT_EXCEEDED,
  'operations' => OPERATIONS_RATE_LIMIT_EXCEEDED,
  'throughput' => THROUGHPUT_RATE_LIMIT_EXCEEDED,
  'request limit' => REQUEST_SIZE_LIMIT_EXCEEDED,
  'item size' => ITEM_SIZE_LIMIT_EXCEEDED,
  'element size' => ELEMENT_SIZE_LIMIT_EXCEEDED
}.freeze