Exception: Dirwatch::Settings::FileNotFoundError
- Inherits:
-
IOError
- Object
- IOError
- Dirwatch::Settings::FileNotFoundError
- Defined in:
- lib/dirwatch/settings.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
Instance Method Summary collapse
-
#initialize(filename, msg = nil) ⇒ FileNotFoundError
constructor
A new instance of FileNotFoundError.
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
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
6 7 8 |
# File 'lib/dirwatch/settings.rb', line 6 def filename @filename end |