Exception: Dirwatch::FileNotFoundError

Inherits:
IOError
  • Object
show all
Includes:
UserFriendlyError
Defined in:
lib/dirwatch/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from UserFriendlyError

#user_friendly_message

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

#filenameObject (readonly)

Returns the value of attribute filename.



11
12
13
# File 'lib/dirwatch/errors.rb', line 11

def filename
  @filename
end