Exception: Momento::Error::FailedPreconditionError

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

Overview

System is not in a state required for the operation's execution

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)


100
101
102
# File 'lib/momento/error/types.rb', line 100

def error_code
  :FAILED_PRECONDITION_ERROR
end

#messageString

The error message.

Returns:

  • (String)


105
106
107
# File 'lib/momento/error/types.rb', line 105

def message
  "System is not in a state required for the operation's execution"
end