Exception: Folio::FileNotFound

Inherits:
IOError
  • Object
show all
Defined in:
lib/folio/errors.rb

Instance Method Summary collapse

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

#messageObject



9
10
11
12
13
14
15
# File 'lib/folio/errors.rb', line 9

def message
  if @path
    "file not found -- #{@path}"
  else
    "file not found"
  end
end