Exception: Uniword::FileNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/uniword/errors.rb

Overview

Raised when a file is not found

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ FileNotFoundError

Returns a new instance of FileNotFoundError.

Parameters:

  • path (String)

    The file path that was not found



10
11
12
13
# File 'lib/uniword/errors.rb', line 10

def initialize(path)
  super("File not found: #{path}")
  @path = path
end

Instance Attribute Details

#pathString (readonly)

Returns The file path.

Returns:

  • (String)

    The file path



16
17
18
# File 'lib/uniword/errors.rb', line 16

def path
  @path
end