Exception: CookbookOmnifetch::CookbookValidationFailure
- Inherits:
-
OmnifetchError
- Object
- StandardError
- OmnifetchError
- CookbookOmnifetch::CookbookValidationFailure
- Defined in:
- lib/cookbook-omnifetch/exceptions.rb
Instance Method Summary collapse
-
#initialize(dependency, cached_cookbook) ⇒ CookbookValidationFailure
constructor
A new instance of CookbookValidationFailure.
- #to_s ⇒ Object
Methods inherited from OmnifetchError
Constructor Details
#initialize(dependency, cached_cookbook) ⇒ CookbookValidationFailure
Returns a new instance of CookbookValidationFailure.
69 70 71 72 73 |
# File 'lib/cookbook-omnifetch/exceptions.rb', line 69 def initialize(dependency, cached_cookbook) @dependency = dependency @cached_cookbook = cached_cookbook super(to_s) end |
Instance Method Details
#to_s ⇒ Object
75 76 77 |
# File 'lib/cookbook-omnifetch/exceptions.rb', line 75 def to_s "The cookbook downloaded for #{@dependency} did not satisfy the constraint." end |