Exception: MotherBrain::ComponentNotFound
- Defined in:
- lib/mb/errors.rb
Constant Summary
Constants inherited from MBError
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#plugin ⇒ Object
readonly
Returns the value of attribute plugin.
Instance Method Summary collapse
-
#initialize(name, plugin) ⇒ ComponentNotFound
constructor
A new instance of ComponentNotFound.
- #message ⇒ Object
Methods inherited from MBError
#error_code, error_code, exit_code, #exit_code, #to_hash, #to_json, #to_s
Constructor Details
#initialize(name, plugin) ⇒ ComponentNotFound
Returns a new instance of ComponentNotFound.
297 298 299 300 |
# File 'lib/mb/errors.rb', line 297 def initialize(name, plugin) @name = name @plugin = plugin end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
292 293 294 |
# File 'lib/mb/errors.rb', line 292 def name @name end |
#plugin ⇒ Object (readonly)
Returns the value of attribute plugin.
293 294 295 |
# File 'lib/mb/errors.rb', line 293 def plugin @plugin end |
Instance Method Details
#message ⇒ Object
302 303 304 |
# File 'lib/mb/errors.rb', line 302 def "Plugin #{plugin} does not have the component: '#{name}'" end |