Exception: Berkshelf::CookbookValidationFailure
- Inherits:
-
BerkshelfError
- Object
- StandardError
- BerkshelfError
- Berkshelf::CookbookValidationFailure
- Defined in:
- lib/berkshelf/errors.rb
Instance Method Summary collapse
-
#initialize(dependency, cached_cookbook) ⇒ CookbookValidationFailure
constructor
A new instance of CookbookValidationFailure.
- #to_s ⇒ Object (also: #message)
Methods inherited from BerkshelfError
Constructor Details
#initialize(dependency, cached_cookbook) ⇒ CookbookValidationFailure
Returns a new instance of CookbookValidationFailure.
245 246 247 248 |
# File 'lib/berkshelf/errors.rb', line 245 def initialize(dependency, cached_cookbook) @dependency = dependency @cached_cookbook = cached_cookbook end |
Instance Method Details
#to_s ⇒ Object Also known as: message
250 251 252 |
# File 'lib/berkshelf/errors.rb', line 250 def to_s "The cookbook downloaded for #{@dependency} did not satisfy the constraint." end |