Exception: Flows::Plugin::DependencyInjector::UnexpectedDependencyTypeError
Overview
Raised when dependency has unexpected type.
Instance Method Summary collapse
-
#initialize(klass, name, value, type) ⇒ UnexpectedDependencyTypeError
constructor
A new instance of UnexpectedDependencyTypeError.
- #message ⇒ Object
Constructor Details
#initialize(klass, name, value, type) ⇒ UnexpectedDependencyTypeError
Returns a new instance of UnexpectedDependencyTypeError.
33 34 35 36 37 38 |
# File 'lib/flows/plugin/dependency_injector/errors.rb', line 33 def initialize(klass, name, value, type) @klass = klass @_name = name @value = value @_type = type end |
Instance Method Details
#message ⇒ Object
40 41 42 |
# File 'lib/flows/plugin/dependency_injector/errors.rb', line 40 def "#{@_name} dependency for #{@klass} has wrong type, must conform `#{@_type.inspect}`: `#{@value.inspect}`" end |