Exception: MotherBrain::NodeNotFound
- 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.
Instance Method Summary collapse
-
#initialize(name) ⇒ NodeNotFound
constructor
A new instance of NodeNotFound.
- #message ⇒ Object
Methods inherited from MBError
#error_code, error_code, exit_code, #exit_code, #to_hash, #to_json, #to_s
Constructor Details
#initialize(name) ⇒ NodeNotFound
Returns a new instance of NodeNotFound.
611 612 613 |
# File 'lib/mb/errors.rb', line 611 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
609 610 611 |
# File 'lib/mb/errors.rb', line 609 def name @name end |
Instance Method Details
#message ⇒ Object
615 616 617 |
# File 'lib/mb/errors.rb', line 615 def "A node named '#{name}' could not be found on the Chef server" end |