Exception: Momento::Error::CancelledError

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

Overview

The request was cancelled by the server.

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)


55
56
57
# File 'lib/momento/error/types.rb', line 55

def error_code
  :CANCELLED_ERROR
end

#messageString

The error message.

Returns:

  • (String)


60
61
62
# File 'lib/momento/error/types.rb', line 60

def message
  "The request was cancelled by the server; please contact Momento: #{details}"
end