Exception: Chef::ChefFS::FileSystem::FileSystemError
- Inherits:
-
StandardError
- Object
- StandardError
- Chef::ChefFS::FileSystem::FileSystemError
- Defined in:
- lib/chef/chef_fs/file_system/exceptions.rb
Direct Known Subclasses
MustDeleteRecursivelyError, NotFoundError, OperationFailedError, OperationNotAllowedError
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
The wrapped exception (if any).
-
#entry ⇒ Object
readonly
The entry which had an issue.
-
#reason ⇒ Object
readonly
A string describing why this exception happened.
Instance Method Summary collapse
-
#initialize(entry, cause = nil, reason = nil) ⇒ FileSystemError
constructor
A new instance of FileSystemError.
Constructor Details
#initialize(entry, cause = nil, reason = nil) ⇒ FileSystemError
Returns a new instance of FileSystemError.
26 27 28 29 30 31 |
# File 'lib/chef/chef_fs/file_system/exceptions.rb', line 26 def initialize(entry, cause = nil, reason = nil) super(reason) @entry = entry @cause = cause @reason = reason end |
Instance Attribute Details
#cause ⇒ Object (readonly)
The wrapped exception (if any).
37 38 39 |
# File 'lib/chef/chef_fs/file_system/exceptions.rb', line 37 def cause @cause end |
#entry ⇒ Object (readonly)
The entry which had an issue.
34 35 36 |
# File 'lib/chef/chef_fs/file_system/exceptions.rb', line 34 def entry @entry end |
#reason ⇒ Object (readonly)
A string describing why this exception happened.
40 41 42 |
# File 'lib/chef/chef_fs/file_system/exceptions.rb', line 40 def reason @reason end |