summaryrefslogtreecommitdiff
path: root/lib/chef/exceptions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/exceptions.rb')
-rw-r--r--lib/chef/exceptions.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/chef/exceptions.rb b/lib/chef/exceptions.rb
index 22fafaa4dc..e3c7d630ce 100644
--- a/lib/chef/exceptions.rb
+++ b/lib/chef/exceptions.rb
@@ -331,6 +331,12 @@ class Chef
end
end
+ class ChecksumMismatch < RuntimeError
+ def initialize(res_cksum, cont_cksum)
+ super "Checksum on resource (#{res_cksum}) does not match checksum on content (#{cont_cksum})"
+ end
+ end
+
class BadProxyURI < RuntimeError; end
end
end