Class: YeSQL::Errors::FilePathDoesNotExistError
- Inherits:
-
Object
- Object
- YeSQL::Errors::FilePathDoesNotExistError
- Defined in:
- lib/yesql/errors/file_path_does_not_exist_error.rb
Instance Method Summary collapse
-
#initialize(file_path) ⇒ FilePathDoesNotExistError
constructor
A new instance of FilePathDoesNotExistError.
- #validate_file_path_existence ⇒ Object
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_existence ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/yesql/errors/file_path_does_not_exist_error.rb', line 10 def validate_file_path_existence return if file_exists? raise( ::NotImplementedError, format( MESSAGE, available_files: available_files, file_path: file_path, path: ::YeSQL.config.path ) ) end |