Exception: ConvenientService::Support::Cache::Exceptions::NotSupportedBackend

Inherits:
Exception
  • Object
show all
Defined in:
lib/convenient_service/support/cache/exceptions.rb

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(backend:) ⇒ void

This method returns an undefined value.

Parameters:

  • backend (Symbol)


12
13
14
15
16
17
18
19
20
# File 'lib/convenient_service/support/cache/exceptions.rb', line 12

def initialize_with_kwargs(backend:)
  message = <<~TEXT
    Backend `#{backend}` is NOT supported.

    Supported backends are #{printable_backends}.
  TEXT

  initialize(message)
end