Exception: Momento::Error::BadRequestError

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

Overview

The request was invalid.

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)


40
41
42
# File 'lib/momento/error/types.rb', line 40

def error_code
  :BAD_REQUEST_ERROR
end

#messageString

The error message.

Returns:

  • (String)


45
46
47
# File 'lib/momento/error/types.rb', line 45

def message
  "The request was invalid; please contact Momento: #{details}"
end