Exception: PgVerify::NoSuchFileError

Inherits:
Core::Error
  • Object
show all
Defined in:
lib/pg-verify/cli/cli_utils.rb

Instance Method Summary collapse

Methods inherited from Core::Error

#to_formatted

Constructor Details

#initialize(path) ⇒ NoSuchFileError

Returns a new instance of NoSuchFileError.



36
37
38
# File 'lib/pg-verify/cli/cli_utils.rb', line 36

def initialize(path)
    @path = path
end

Instance Method Details

#formattedObject



40
41
42
43
44
45
# File 'lib/pg-verify/cli/cli_utils.rb', line 40

def formatted()
    title = "No such file!"
    body = "There is no file at #{@path.c_file}!"
    hint = "Make sure to specify another file or specify another path"
    return title, body, hint
end