Exception: ChefAPI::Error::ChefAPIError
- Inherits:
-
StandardError
- Object
- StandardError
- ChefAPI::Error::ChefAPIError
- Defined in:
- lib/chef-api/errors.rb
Direct Known Subclasses
AbstractMethod, CannotRegenerateKey, FileNotFound, HTTPError, HTTPUnauthorizedRequest, InsufficientFilePermissions, InvalidResource, InvalidValidator, MissingURLParameter, NotADirectory, ResourceAlreadyExists, ResourceNotFound, ResourceNotMutable, UnknownAttribute
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ChefAPIError
constructor
A new instance of ChefAPIError.
Constructor Details
#initialize(options = {}) ⇒ ChefAPIError
Returns a new instance of ChefAPIError.
4 5 6 7 8 9 |
# File 'lib/chef-api/errors.rb', line 4 def initialize( = {}) class_name = self.class.to_s.split('::').last error_key = Util.underscore(class_name) super I18n.t("chef_api.errors.#{error_key}", ) end |