Exception: BFS::FileNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- BFS::FileNotFound
- Defined in:
- lib/bfs/errors.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ FileNotFound
constructor
A new instance of FileNotFound.
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
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/bfs/errors.rb', line 3 def path @path end |