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)


265
266
267
# File 'lib/momento/error/types.rb', line 265

def error_code
  :TIMEOUT_ERROR
end

#messageString

The error message.

Returns:

  • (String)


270
271
272
# File 'lib/momento/error/types.rb', line 270

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