Exception: Komponent::ComponentPathResolver::MissingComponentError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/komponent/core/component_path_resolver.rb

Instance Method Summary collapse

Constructor Details

#initialize(component_name, paths) ⇒ MissingComponentError

Returns a new instance of MissingComponentError.



45
46
47
48
49
50
51
# File 'lib/komponent/core/component_path_resolver.rb', line 45

def initialize(component_name, paths)
  message = "Component `#{component_name}` not found in:\n"
  paths.each do |path|
    message += "  * #{path}\n"
  end
  super(message)
end