Method: Chef::ChefFS::FileSystem::FileSystemError#initialize

Defined in:
lib/chef/chef_fs/file_system/exceptions.rb

#initialize(entry, cause = nil, reason = nil) ⇒ FileSystemError

Returns a new instance of FileSystemError.

Parameters:

  • entry

    The entry which had an issue.

  • cause (defaults to: nil)

    The wrapped exception (if any).

  • reason (defaults to: nil)

    A string describing why this exception happened.

[View source]

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