Exception: Folio::FileNotFound
- Inherits:
-
IOError
- Object
- IOError
- Folio::FileNotFound
- Defined in:
- lib/folio/errors.rb
Instance Method Summary collapse
-
#initialize(path = nil) ⇒ FileNotFound
constructor
A new instance of FileNotFound.
- #message ⇒ Object
Constructor Details
#initialize(path = nil) ⇒ FileNotFound
Returns a new instance of FileNotFound.
4 5 6 7 |
# File 'lib/folio/errors.rb', line 4 def initialize(path=nil) @path = path super end |
Instance Method Details
#message ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/folio/errors.rb', line 9 def if @path "file not found -- #{@path}" else "file not found" end end |