Exception: ChefFS::FileSystem::DefaultEnvironmentCannotBeModifiedError

Inherits:
OperationNotAllowedError show all
Defined in:
lib/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.



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

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

Instance Method Details

#reasonObject



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

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