Exception: Hanami::CLI::FileAlreadyExistsError

Inherits:
Error
  • Object
show all
Defined in:
lib/hanami/cli/errors.rb

Overview

Since:

  • 2.0.0

Constant Summary collapse

ERROR_MESSAGE =

Since:

  • 2.0.0

"The file `%{file_path}` could not be generated because it already exists.\n".chomp

Instance Method Summary collapse

Constructor Details

#initialize(file_path) ⇒ FileAlreadyExistsError

Returns a new instance of FileAlreadyExistsError.

Since:

  • 2.0.0



53
54
55
# File 'lib/hanami/cli/errors.rb', line 53

def initialize(file_path)
  super(ERROR_MESSAGE % {file_path:})
end