Exception: Momento::Error::ClientResourceExhaustedError

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

Overview

A client resource (most likely memory) was exhausted.

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)


70
71
72
# File 'lib/momento/error/types.rb', line 70

def error_code
  :CLIENT_RESOURCE_EXHAUSTED
end

#messageString

The error message.

Returns:

  • (String)


75
76
77
# File 'lib/momento/error/types.rb', line 75

def message
  "A client resource (most likely memory) was exhausted.  If you are executing a high volume of concurrent requests or using very large object sizes, your Configuration may need to be updated to allocate more memory.  Please contact Momento for assistance."
end