Exception: ConvenientService::Config::Exceptions::OptionCanNotBeNormalized

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

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(option:) ⇒ void

This method returns an undefined value.

Parameters:

  • option (Object)

    Can be any type.



16
17
18
19
20
21
22
23
24
# File 'lib/convenient_service/config/exceptions.rb', line 16

def initialize_with_kwargs(option:)
  message = <<~TEXT
    Option `#{option.inspect}` can NOT be normalized.

    Consider passing `Symbol` or `Hash` instead.
  TEXT

  initialize(message)
end