Exception: Momento::Error::PermissionError

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

Overview

Insufficient permissions to perform an operation on a cache.

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)

160
161
162
# File 'lib/momento/error/types.rb', line 160

def error_code
  :PERMISSION_ERROR
end

#messageString

The error message.

Returns:

  • (String)

165
166
167
# File 'lib/momento/error/types.rb', line 165

def message
  "Insufficient permissions to perform an operation on a cache: #{details}"
end