Exception: Berkshelf::EnvironmentNotFound
- Inherits:
-
BerkshelfError
- Object
- StandardError
- BerkshelfError
- Berkshelf::EnvironmentNotFound
- Defined in:
- lib/berkshelf/errors.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(environment_name) ⇒ EnvironmentNotFound
constructor
A new instance of EnvironmentNotFound.
- #to_s ⇒ Object (also: #message)
Methods inherited from BerkshelfError
Constructor Details
#initialize(environment_name) ⇒ EnvironmentNotFound
Returns a new instance of EnvironmentNotFound.
304 305 306 |
# File 'lib/berkshelf/errors.rb', line 304 def initialize(environment_name) @environment_name = environment_name end |
Instance Method Details
#to_s ⇒ Object Also known as: message
308 309 310 |
# File 'lib/berkshelf/errors.rb', line 308 def to_s "The environment '#{@environment_name}' does not exist" end |