summaryrefslogtreecommitdiff
path: root/lib/chef/exceptions.rb
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2015-07-29 15:31:36 -0600
committerJohn Keiser <john@johnkeiser.com>2015-07-31 12:42:28 -0600
commit05c59d70345598da5bb0e7ccc2f4ebaf85adcb73 (patch)
treeb9054251567a2ecff2b810b1d9cac55f486d8d69 /lib/chef/exceptions.rb
parent6aa94e70cde907e9c890307a82fb50af3d46f9df (diff)
downloadchef-05c59d70345598da5bb0e7ccc2f4ebaf85adcb73.tar.gz
Add current_value_does_not_exist! API, pretty up the output
Diffstat (limited to 'lib/chef/exceptions.rb')
-rw-r--r--lib/chef/exceptions.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/exceptions.rb b/lib/chef/exceptions.rb
index e2e36e8162..16f985acaa 100644
--- a/lib/chef/exceptions.rb
+++ b/lib/chef/exceptions.rb
@@ -105,6 +105,9 @@ class Chef
class VerificationNotFound < RuntimeError; end
class InvalidEventType < ArgumentError; end
class MultipleIdentityError < RuntimeError; end
+ # Used in Resource::ActionProvider#load_current_resource to denote that
+ # the resource doesn't actually exist (for example, the file does not exist)
+ class CurrentValueDoesNotExist < RuntimeError; end
# Can't find a Resource of this type that is valid on this platform.
class NoSuchResourceType < NameError