Exception: BFS::FileNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bfs/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ FileNotFound

Returns a new instance of FileNotFound.



5
6
7
8
# File 'lib/bfs/errors.rb', line 5

def initialize(path)
  @path = path
  super "File not found: #{path}"
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



3
4
5
# File 'lib/bfs/errors.rb', line 3

def path
  @path
end