Exception: Teaspoon::NotFoundInRegistry

Inherits:
Error
  • Object
show all
Defined in:
lib/teaspoon/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg_or_options) ⇒ NotFoundInRegistry

Returns a new instance of NotFoundInRegistry.



95
96
97
98
99
# File 'lib/teaspoon/exceptions.rb', line 95

def initialize(msg_or_options)
  super(build_message(msg_or_options) do |options|
    "Unknown configuration: expected \"#{options[:name]}\" to be registered. Available options are #{options[:available]}"
  end)
end