Exception: Dirwatch::Settings::FileNotFoundError

Inherits:
IOError
  • Object
show all
Defined in:
lib/dirwatch/settings.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename, msg = nil) ⇒ FileNotFoundError

Returns a new instance of FileNotFoundError.



7
8
9
10
# File 'lib/dirwatch/settings.rb', line 7

def initialize filename, msg = nil
  super msg || "Could not find the configuration file #{filename}"
  @filename = filename
end

Instance Attribute Details

#filenameObject (readonly)

Returns the value of attribute filename.



6
7
8
# File 'lib/dirwatch/settings.rb', line 6

def filename
  @filename
end