lib/hanami/model/error.rb in hanami-model-1.2.0 vs lib/hanami/model/error.rb in hanami-model-1.3.0.beta1
- old
+ new
@@ -116,7 +116,16 @@
# Unknown attribute error
#
# @since 1.2.0
class UnknownAttributeError < Error
end
+
+ # Unknown database adapter error
+ #
+ # @since 1.2.1
+ class UnknownDatabaseAdapterError < Error
+ def initialize(url)
+ super("Unknown database adapter for URL: #{url.inspect}. Please check your database configuration (hint: ENV['DATABASE_URL']).")
+ end
+ end
end
end