Exception: Dirwatch::FileNotFoundError
- Includes:
- UserFriendlyError
- Defined in:
- lib/dirwatch/errors.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.
Methods included from UserFriendlyError
Constructor Details
#initialize(filename, msg = nil) ⇒ FileNotFoundError
Returns a new instance of FileNotFoundError.
12 13 14 15 |
# File 'lib/dirwatch/errors.rb', line 12 def initialize filename, msg = nil super msg || "Could not find the file #{filename.inspect}" @filename = filename end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
11 12 13 |
# File 'lib/dirwatch/errors.rb', line 11 def filename @filename end |