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: AmbiguousProviderResolution, AmbiguousRunlistSpecification, Application, AttributeNotFound, BadProxyURI, CannotDetermineHomebrewOwner, CannotDetermineNodeName, CannotWritePrivateKey, ChecksumMismatch, ChildConvergeError, CommandTimeout, ConfigurationError, ConflictingMembersInGroup, ContentLengthMismatch, CookbookFrozen, CookbookNotFound, CookbookNotFoundInRepo, CookbookVersionConflict, CookbookVersionNameMismatch, CookbookVersionSelection, Cron, DsclCommandFailed, DuplicateDataBagItem, DuplicateRole, EnclosingDirectoryDoesNotExist, Env, EnvironmentNotFound, ErlCall, Exec, FileContentStagingError, FileNotFound, FileTypeMismatch, Group, GroupIDNotFound, Ifconfig, IllegalChecksumRevert, IllegalVersionConstraint, ImmutableAttributeModification, InsufficientPermissions, InvalidCommandOption, InvalidCookbookVersion, InvalidDataBagItemID, InvalidDataBagName, InvalidDataBagPath, InvalidEnvironmentPath, InvalidEnvironmentRunListSpecification, InvalidHomeDirectory, InvalidPlatformVersion, InvalidPrivateKey, InvalidRedirect, InvalidRemoteFileURI, InvalidRemoteGitReference, InvalidResourceReference, InvalidResourceSpecification, InvalidSearchQuery, InvalidSymlink, InvalidVersionConstraint, JSON, Link, MetadataNotValid, MissingCookbookDependency, MissingLibrary, MissingParentDirectory, MissingRole, Mount, MultipleFailures, NoProviderAvailable, NoSuchResourceType, ObsoleteDependencySyntax, Override, Package, PlistUtilCommandFailed, PowershellCmdletException, PrivateKeyMissing, RecipeNotFound, RedirectLimitExceeded, RequestedUIDUnavailable, ResourceNotFound, RoleNotFound, Route, RunLockTimeout, SearchIndex, Service, SolrConnectionError, StaleAttributeRead, UnresolvableGitReference, UnsupportedAction, UnsupportedPlatform, User, UserIDNotFound, ValidationFailed, Win32APIError, Win32APIFunctionNotImplemented, Win32ArchitectureIncorrect, 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



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

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