Exception: Momento::Error::InternalServerError

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

Overview

An unexpected error occurred while trying to fulfill 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)


115
116
117
# File 'lib/momento/error/types.rb', line 115

def error_code
  :INTERNAL_SERVER_ERROR
end

#messageString

The error message.

Returns:

  • (String)


120
121
122
# File 'lib/momento/error/types.rb', line 120

def message
  "An unexpected error occurred while trying to fulfill the request; please contact Momento: #{details}"
end