Exception: MotherBrain::EnvironmentNotFound
- 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) ⇒ EnvironmentNotFound
constructor
A new instance of EnvironmentNotFound.
- #message ⇒ Object
Methods inherited from MBError
#error_code, error_code, exit_code, #exit_code, #to_hash, #to_json, #to_s
Constructor Details
#initialize(name) ⇒ EnvironmentNotFound
Returns a new instance of EnvironmentNotFound.
626 627 628 |
# File 'lib/mb/errors.rb', line 626 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
624 625 626 |
# File 'lib/mb/errors.rb', line 624 def name @name end |
Instance Method Details
#message ⇒ Object
630 631 632 |
# File 'lib/mb/errors.rb', line 630 def "An environment named '#{name}' could not be found" end |