Exception: PlatinaWorld::Errors::FilePathError

Inherits:
Base
  • Object
show all
Defined in:
lib/platina_world/errors/file_path_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(file_path) ⇒ FilePathError

Returns a new instance of FilePathError.



6
7
8
# File 'lib/platina_world/errors/file_path_error.rb', line 6

def initialize(file_path)
  @file_path = file_path
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/platina_world/errors/file_path_error.rb', line 10

def to_s
  "File does not exist: `#{@file_path}`"
end