Exception: ChefSpec::Error::ChefSpecError
- Inherits:
-
StandardError
- Object
- StandardError
- ChefSpec::Error::ChefSpecError
- Defined in:
- lib/chefspec/errors.rb
Direct Known Subclasses
CookbookPathNotFound, GemLoadError, NoConversionError, NotStubbed
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ChefSpecError
constructor
A new instance of ChefSpecError.
Constructor Details
#initialize(options = {}) ⇒ ChefSpecError
4 5 6 7 8 9 |
# File 'lib/chefspec/errors.rb', line 4 def initialize( = {}) class_name = self.class.to_s.split('::').last error_key = [:_error_key] || Util.underscore(class_name) super I18n.t("chefspec.errors.#{error_key}", ) end |