Exception: Ruar::Error::FileNotFound

Inherits:
BaseError
  • Object
show all
Defined in:
lib/ruar/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ FileNotFound

Returns a new instance of FileNotFound.



11
12
13
14
# File 'lib/ruar/error.rb', line 11

def initialize(path)
  @path = path
  super(+"file does not exist in ruar -- #{path}")
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



9
10
11
# File 'lib/ruar/error.rb', line 9

def path
  @path
end