Exception: Momento::Error::LimitExceededError

Inherits:
RuntimeError
  • Object
show all
Includes:
Momento::Error
Defined in:
lib/momento/error/types.rb

Overview

Request rate exceeded the limits for this account.

Instance Attribute Summary

Attributes included from Momento::Error

#cause, #context, #details, #transport_details

Instance Method Summary collapse

Methods included from Momento::Error

#to_s

Instance Method Details

#error_codeSymbol

A Momento-specific code for the type of error.

Returns:

  • (Symbol)

130
131
132
# File 'lib/momento/error/types.rb', line 130

def error_code
  :LIMIT_EXCEEDED_ERROR
end

#messageString

The error message.

Returns:

  • (String)

135
136
137
# File 'lib/momento/error/types.rb', line 135

def message
  "Request rate exceeded the limits for this account.  To resolve this error, reduce your request rate, or contact Momento to request a limit increase."
end