Exception: Momento::Error::UnknownServiceError

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

Overview

The cache service failed due to an internal error

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)


242
243
244
# File 'lib/momento/error/types.rb', line 242

def error_code
  :UNKNOWN_SERVICE_ERROR
end

#messageString

The error message.

Returns:

  • (String)


247
248
249
# File 'lib/momento/error/types.rb', line 247

def message
  "The service returned an unknown response; please contact Momento: #{details}"
end