Exception: FolderStash::Errors::NoDirectoryError
- Inherits:
-
StandardError
- Object
- StandardError
- FolderStash::Errors::NoDirectoryError
- Defined in:
- lib/folder_stash/errors/no_directory_error.rb
Overview
Error that is raised if a directory does not exist.
Instance Attribute Summary collapse
-
#dir ⇒ Object
readonly
Path for the directory that does not exist.
Instance Method Summary collapse
-
#initialize(msg = nil, dir: nil) ⇒ NoDirectoryError
constructor
A new instance of NoDirectoryError.
Constructor Details
#initialize(msg = nil, dir: nil) ⇒ NoDirectoryError
Returns a new instance of NoDirectoryError.
10 11 12 13 14 |
# File 'lib/folder_stash/errors/no_directory_error.rb', line 10 def initialize(msg = nil, dir: nil) @dir = dir msg ||= "The directory #{dir} does not exist or is not a directory" super msg end |
Instance Attribute Details
#dir ⇒ Object (readonly)
Path for the directory that does not exist.
8 9 10 |
# File 'lib/folder_stash/errors/no_directory_error.rb', line 8 def dir @dir end |