Exception: Momento::Error::ServerUnavailableError

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

Overview

The server was unable to handle the request

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)


197
198
199
# File 'lib/momento/error/types.rb', line 197

def error_code
  :SERVER_UNAVAILABLE
end

#messageString

The error message.

Returns:

  • (String)


202
203
204
# File 'lib/momento/error/types.rb', line 202

def message
  "The server was unable to handle the request; consider retrying.  If the error persists, please contact Momento."
end