lib/folio/errors.rb in folio-0.3.0 vs lib/folio/errors.rb in folio-0.4.0

- old
+ new

@@ -1,7 +1,22 @@ module Folio class FileNotFound < ::IOError + def initialize(path=nil) + @path = path + super + end + + def message + if @path + "file not found -- #{@path}" + else + "file not found" + end + end + end + + class DirNotFound < ::IOError end class LinkNotFound < ::IOError end