Exception: MotherBrain::NodeDisabled
- 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) ⇒ NodeDisabled
constructor
A new instance of NodeDisabled.
- #message ⇒ Object
Methods inherited from MBError
#error_code, error_code, exit_code, #exit_code, #to_hash, #to_json, #to_s
Constructor Details
#initialize(name) ⇒ NodeDisabled
Returns a new instance of NodeDisabled.
702 703 704 |
# File 'lib/mb/errors.rb', line 702 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
700 701 702 |
# File 'lib/mb/errors.rb', line 700 def name @name end |
Instance Method Details
#message ⇒ Object
706 707 708 |
# File 'lib/mb/errors.rb', line 706 def "#{@name} is disabled." end |