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.
314 315 316 317 |
# File 'lib/mb/errors.rb', line 314 def initialize(name, plugin) @name = name @plugin = plugin end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
309 310 311 |
# File 'lib/mb/errors.rb', line 309 def name @name end |
#plugin ⇒ Object (readonly)
Returns the value of attribute plugin.
310 311 312 |
# File 'lib/mb/errors.rb', line 310 def plugin @plugin end |
Instance Method Details
#message ⇒ Object
319 320 321 |
# File 'lib/mb/errors.rb', line 319 def "Plugin #{plugin} does not have the component: '#{name}'" end |