Exception: PgVerify::NoSuchFileError
- Inherits:
-
Core::Error
- Object
- StandardError
- Core::Error
- PgVerify::NoSuchFileError
- Defined in:
- lib/pg-verify/cli/cli_utils.rb
Instance Method Summary collapse
- #formatted ⇒ Object
-
#initialize(path) ⇒ NoSuchFileError
constructor
A new instance of NoSuchFileError.
Methods inherited from Core::Error
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
#formatted ⇒ Object
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 |