Exception: MotherBrain::DataBagNotFound
- 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) ⇒ DataBagNotFound
constructor
A new instance of DataBagNotFound.
- #message ⇒ Object
Methods inherited from MBError
#error_code, error_code, exit_code, #exit_code, #to_hash, #to_json, #to_s
Constructor Details
#initialize(name) ⇒ DataBagNotFound
Returns a new instance of DataBagNotFound.
640 641 642 |
# File 'lib/mb/errors.rb', line 640 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
638 639 640 |
# File 'lib/mb/errors.rb', line 638 def name @name end |
Instance Method Details
#message ⇒ Object
644 645 646 |
# File 'lib/mb/errors.rb', line 644 def "A Data Bag named '#{name}' could not be found" end |