summaryrefslogtreecommitdiff
path: root/lib/chef/exceptions.rb
diff options
context:
space:
mode:
authorIvan Larionov <ivan.larionov@skype.net>2014-05-31 03:21:17 +0400
committerIvan Larionov <ivan.larionov@skype.net>2014-05-31 03:21:59 +0400
commit58de779995ec2f3adff739ec5170aedf0366ada2 (patch)
treed8581022249cc558f095310a091a48cd402ab8da /lib/chef/exceptions.rb
parentab216f0ee10022b2d9c2a65b6c13c9e75d456ad4 (diff)
downloadchef-58de779995ec2f3adff739ec5170aedf0366ada2.tar.gz
[CHEF-3399] Raise in case of data bag items conflict. Tests.
Diffstat (limited to 'lib/chef/exceptions.rb')
-rw-r--r--lib/chef/exceptions.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/exceptions.rb b/lib/chef/exceptions.rb
index 782ecc3fd8..84f0db1a28 100644
--- a/lib/chef/exceptions.rb
+++ b/lib/chef/exceptions.rb
@@ -114,6 +114,7 @@ class Chef
class Win32ArchitectureIncorrect < RuntimeError; end
class ObsoleteDependencySyntax < ArgumentError; end
class InvalidDataBagPath < ArgumentError; end
+ class DuplicateDataBagItem < RuntimeError; end
# A different version of a cookbook was added to a
# VersionedRecipeList than the one already there.