Exception: Momento::Error::ConnectionError

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

Overview

Error connecting to Momento servers.

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)


85
86
87
# File 'lib/momento/error/types.rb', line 85

def error_code
  :CONNECTION_ERROR
end

#messageString

The error message.

Returns:

  • (String)


90
91
92
# File 'lib/momento/error/types.rb', line 90

def message
  "Error connecting to Momento servers."
end