Exception: Serverkit::Errors::NonExistentPathError

Inherits:
Base
  • Object
show all
Defined in:
lib/serverkit/errors/non_existent_path_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ NonExistentPathError

Returns a new instance of NonExistentPathError.

Parameters:



7
8
9
# File 'lib/serverkit/errors/non_existent_path_error.rb', line 7

def initialize(path)
  @path = path
end

Instance Method Details

#to_sString

Returns:

  • (String)


12
13
14
# File 'lib/serverkit/errors/non_existent_path_error.rb', line 12

def to_s
  abort "No such file or directory `#{@path}`"
end