Class: YeSQL::Errors::FilePathDoesNotExistError

Inherits:
Object
  • Object
show all
Defined in:
lib/yesql/errors/file_path_does_not_exist_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(file_path) ⇒ FilePathDoesNotExistError

Returns a new instance of FilePathDoesNotExistError.



6
7
8
# File 'lib/yesql/errors/file_path_does_not_exist_error.rb', line 6

def initialize(file_path)
  @file_path = file_path
end

Instance Method Details

#validate_file_path_existenceObject

Raises:

  • (::NotImplementedError)


10
11
12
13
14
# File 'lib/yesql/errors/file_path_does_not_exist_error.rb', line 10

def validate_file_path_existence
  return if file_exists?

  raise ::NotImplementedError, message
end