Sha256: a14008645dc8b24e822231e82f0c3bf22f93683b14018e6589ad86f60327eac0

Contents?: true

Size: 329 Bytes

Versions: 1

Compression:

Stored size: 329 Bytes

Contents

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

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
folio-0.4.0 lib/folio/errors.rb