Exception: Chef::ChefFS::FileSystem::DefaultEnvironmentCannotBeModifiedError
- Inherits:
-
OperationNotAllowedError
- Object
- StandardError
- FileSystemError
- OperationNotAllowedError
- Chef::ChefFS::FileSystem::DefaultEnvironmentCannotBeModifiedError
- Defined in:
- lib/chef/chef_fs/file_system/default_environment_cannot_be_modified_error.rb
Instance Attribute Summary
Attributes inherited from OperationNotAllowedError
Attributes inherited from FileSystemError
Instance Method Summary collapse
-
#initialize(operation, entry, cause = nil) ⇒ DefaultEnvironmentCannotBeModifiedError
constructor
A new instance of DefaultEnvironmentCannotBeModifiedError.
- #reason ⇒ Object
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
#reason ⇒ Object
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 |