Exception: Tina4::DatabaseConnectionError
- Inherits:
-
StandardError
- Object
- StandardError
- Tina4::DatabaseConnectionError
- Defined in:
- lib/tina4/database.rb
Overview
Raised at the first USE of a database whose connect failed.
Connecting is deliberately non-fatal at boot (log loud, then degrade - the same policy the session backends follow), so the failure has to resurface somewhere. It used to resurface as a nil dereference inside the driver ("NoMethodError: private method `exec' called for nil:NilClass"), which named neither the database nor the reason. This carries both.