Exception: Infusible::Errors::InvalidDependency

Inherits:
StandardError
  • Object
show all
Defined in:
lib/infusible/errors/invalid_dependency.rb

Overview

Prevents improperly named dependencies from being injected.

Instance Method Summary collapse

Constructor Details

#initialize(identifier:) ⇒ InvalidDependency

Returns a new instance of InvalidDependency.



7
8
9
# File 'lib/infusible/errors/invalid_dependency.rb', line 7

def initialize identifier:
  super "Cannot use #{identifier.inspect} as an identifier."
end