summaryrefslogtreecommitdiff
path: root/lib/chef/exceptions.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-02-09 14:47:48 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-02-09 14:47:48 -0800
commit11140c2cbd6f675c1bc0c3f5697f23d6404886ba (patch)
treed54623e143871639b72d75977adaabf0635a86a4 /lib/chef/exceptions.rb
parent878ecf09a8945235637e3f761626f1e3c9e86ca1 (diff)
downloadchef-11140c2cbd6f675c1bc0c3f5697f23d6404886ba.tar.gz
Add Chef::Log.deprecation and associated wiring
Diffstat (limited to 'lib/chef/exceptions.rb')
-rw-r--r--lib/chef/exceptions.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/chef/exceptions.rb b/lib/chef/exceptions.rb
index 78d77e3778..498970468a 100644
--- a/lib/chef/exceptions.rb
+++ b/lib/chef/exceptions.rb
@@ -212,7 +212,11 @@ class Chef
class NoProviderAvailable < RuntimeError; end
- class DeprecatedFeatureError < RuntimeError; end
+ class DeprecatedFeatureError < RuntimeError;
+ def initalize
+ super("raising deprecation error due to treat_deprecation_warnings_as_errors being set")
+ end
+ end
class MissingRole < RuntimeError
NULL = Object.new