Class: Chef::Exceptions

Inherits:
Object show all
Defined in:
lib/chef/exceptions.rb

Overview

Chef::Exceptions

Chef’s custom exceptions are all contained within the Chef::Exceptions namespace.

Defined Under Namespace

Classes: AmbiguousRunlistSpecification, Application, AttributeNotFound, CannotDetermineNodeName, CannotWritePrivateKey, CommandTimeout, ConfigurationError, CookbookFrozen, CookbookNotFound, CookbookNotFoundInRepo, CookbookVersionConflict, CookbookVersionNameMismatch, CookbookVersionSelection, Cron, DsclCommandFailed, EnclosingDirectoryDoesNotExist, Env, ErlCall, Exec, FileNotFound, Group, GroupIDNotFound, Ifconfig, IllegalChecksumRevert, ImmutableAttributeModification, InsufficientPermissions, InvalidCommandOption, InvalidCookbookVersion, InvalidDataBagItemID, InvalidDataBagName, InvalidDataBagPath, InvalidEnvironmentRunListSpecification, InvalidHomeDirectory, InvalidPrivateKey, InvalidRemoteFileURI, InvalidRemoteGitReference, InvalidResourceReference, InvalidResourceSpecification, InvalidVersionConstraint, Link, MissingLibrary, MissingParentDirectory, MissingRole, Mount, MultipleFailures, ObsoleteDependencySyntax, Override, Package, PrivateKeyMissing, RecipeNotFound, RedirectLimitExceeded, RequestedUIDUnavailable, ResourceNotFound, RoleNotFound, Route, SearchIndex, Service, SolrConnectionError, StaleAttributeRead, UnresolvableGitReference, UnsupportedAction, User, UserIDNotFound, ValidationFailed, Win32APIError, Win32APIFunctionNotImplemented, Win32NotWindows, Win32RegArchitectureIncorrect, Win32RegBadType, Win32RegBadValueSize, Win32RegDataMissing, Win32RegHiveMissing, Win32RegKeyMissing, Win32RegNoRecursive, Win32RegTypeDoesNotExist, Win32RegTypesMismatch, Win32RegValueExists, Win32RegValueMissing, WindowsNotAdmin

Class Method Summary collapse

Class Method Details

.const_missing(const_name) ⇒ Object



28
29
30
31
32
33
34
35
36
37
# File 'lib/chef/exceptions.rb', line 28

def self.const_missing(const_name)
  if const_name == :ShellCommandFailed
    Chef::Log.warn("Chef::Exceptions::ShellCommandFailed is deprecated, use Mixlib::ShellOut::ShellCommandFailed")
    called_from = caller[0..3].inject("Called from:\n") {|msg, trace_line| msg << "  #{trace_line}\n" }
    Chef::Log.warn(called_from)
    Mixlib::ShellOut::ShellCommandFailed
  else
    super
  end
end