Exception: Autorespawn::FileNotFound

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/autorespawn/exceptions.rb

Overview

Exception raised when a path cannot be resolved to a file on disk

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, search_path) ⇒ FileNotFound

Returns a new instance of FileNotFound.



10
11
12
# File 'lib/autorespawn/exceptions.rb', line 10

def initialize(path, search_path)
    @path, @search_path = path, search_path
end

Instance Attribute Details

#pathPathname (readonly)

Returns the path to resolve.

Returns:

  • (Pathname)

    the path to resolve



5
6
7
# File 'lib/autorespawn/exceptions.rb', line 5

def path
  @path
end

#search_pathArray<Pathname> (readonly)

Returns the search path that was provided to resolve #path. It is always empty if #path is absolute.

Returns:

  • (Array<Pathname>)

    the search path that was provided to resolve #path. It is always empty if #path is absolute



8
9
10
# File 'lib/autorespawn/exceptions.rb', line 8

def search_path
  @search_path
end