Exception: Hanami::CLI::DatabaseNotSupportedError

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

Overview

rubocop:disable Layout/LineLength

Since:

  • 2.2.0

Instance Method Summary collapse

Constructor Details

#initialize(invalid_database, supported_databases) ⇒ DatabaseNotSupportedError

Returns a new instance of DatabaseNotSupportedError.

Since:

  • 2.2.0



117
118
119
# File 'lib/hanami/cli/errors.rb', line 117

def initialize(invalid_database, supported_databases)
  super("`#{invalid_database}' is not a supported database. Supported databases are: #{supported_databases.join(', ')}")
end