Exception: Chef::ChefFS::FileSystem::DefaultEnvironmentCannotBeModifiedError

Inherits:
OperationNotAllowedError show all
Defined in:
lib/chef/chef_fs/file_system/default_environment_cannot_be_modified_error.rb

Instance Attribute Summary

Attributes inherited from OperationNotAllowedError

#entry, #operation

Attributes inherited from FileSystemError

#cause, #entry

Instance Method Summary collapse

Constructor Details

#initialize(operation, entry, cause = nil) ⇒ DefaultEnvironmentCannotBeModifiedError

Returns a new instance of DefaultEnvironmentCannotBeModifiedError.



25
26
27
# File 'lib/chef/chef_fs/file_system/default_environment_cannot_be_modified_error.rb', line 25

def initialize(operation, entry, cause = nil)
  super(operation, entry, cause)
end

Instance Method Details

#reasonObject



29
30
31
32
# File 'lib/chef/chef_fs/file_system/default_environment_cannot_be_modified_error.rb', line 29

def reason
  result = super
  result + " (default environment cannot be modified)"
end