Exception: Momento::Error::TimeoutError

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

Overview

The client’s configured timeout was exceeded.

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)


190
191
192
# File 'lib/momento/error/types.rb', line 190

def error_code
  :TIMEOUT_ERROR
end

#messageString

The error message.

Returns:

  • (String)


195
196
197
# File 'lib/momento/error/types.rb', line 195

def message
  "The client's configured timeout was exceeded; you may need to use a Configuration with more lenient timeouts.  Timeout value: #{context[:timeout]}"
end