Exception: MotherBrain::EnvironmentNotFound

Inherits:
MBError
  • Object
show all
Defined in:
lib/mb/errors.rb

Constant Summary

Constants inherited from MBError

MBError::DEFAULT_EXIT_CODE

Instance Attribute Summary collapse

Instance Method Summary collapse

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.



609
610
611
# File 'lib/mb/errors.rb', line 609

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



607
608
609
# File 'lib/mb/errors.rb', line 607

def name
  @name
end

Instance Method Details

#messageObject



613
614
615
# File 'lib/mb/errors.rb', line 613

def message
  "An environment named '#{name}' could not be found"
end