summaryrefslogtreecommitdiff
path: root/lib/chef/exceptions.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-10-19 09:45:20 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2015-10-26 16:21:06 -0700
commit4e61b02930ac7b8db3fd040ced2b110bfce54c9f (patch)
tree2bd81f0eca47534d897d5f3e3a606f9d01f6c32c /lib/chef/exceptions.rb
parent98a1793e95e7f89b5206883528a0d00c209838f0 (diff)
downloadchef-4e61b02930ac7b8db3fd040ced2b110bfce54c9f.tar.gz
validate
Diffstat (limited to 'lib/chef/exceptions.rb')
-rw-r--r--lib/chef/exceptions.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/chef/exceptions.rb b/lib/chef/exceptions.rb
index 855c86d9cc..ef73caa276 100644
--- a/lib/chef/exceptions.rb
+++ b/lib/chef/exceptions.rb
@@ -482,6 +482,18 @@ class Chef
end
end
+ class CookbookChefVersionMismatch < RuntimeError
+ def initialize(chef_version, *constraints)
+ super "chef version #{chef_version} is badness"
+ end
+ end
+
+ class CookbookOhaiVersionMismatch < RuntimeError
+ def initialize(ohai_version, *constraints)
+ super "ohai version #{ohai_version} is badness"
+ end
+ end
+
class MultipleDscResourcesFound < RuntimeError
attr_reader :resources_found
def initialize(resources_found)