Exception: Hanami::CLI::DatabaseNotSupportedError

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

Overview

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



98
99
100
# File 'lib/hanami/cli/errors.rb', line 98

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