Exception: Momento::Error::InvalidArgumentError

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

Overview

Invalid argument passed to Momento client

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
  :INVALID_ARGUMENT_ERROR
end

#messageString

The error message.

Returns:

  • (String)

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

def message
  "Invalid argument passed to Momento client: #{details}"
end