Exception: Momento::Error::AuthenticationError

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

Overview

Invalid authentication credentials to connect to cache service

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)


25
26
27
# File 'lib/momento/error/types.rb', line 25

def error_code
  :AUTHENTICATION_ERROR
end

#messageString

The error message.

Returns:

  • (String)


30
31
32
# File 'lib/momento/error/types.rb', line 30

def message
  "Invalid authentication credentials to connect to cache service: #{details}"
end