Exception: Sqlx::ConnectionFailed
- Defined in:
- runtime/sqlx/errors.rb,
runtime/sqlx/errors.rbs
Overview
Raised when a database connection fails: a statement finds the session gone, or a checkout cannot get a healthy connection. When the failure happened while a statement was running, the unit's outcome is unknown — it may have committed — so retry the whole unit, never the statement alone. The adapter discards a lost connection; a later checkout that finds no free connection opens a replacement.
Instance Method Summary collapse
-
#initialize(message = "Sqlx::ConnectionFailed") ⇒ ConnectionFailed
constructor
A new instance of ConnectionFailed.
Constructor Details
#initialize(message = "Sqlx::ConnectionFailed") ⇒ ConnectionFailed
Returns a new instance of ConnectionFailed.
23 |
# File 'runtime/sqlx/errors.rbs', line 23
def initialize: (?String message) -> void
|