Exception: Sqlx::ConnectionFailed

Inherits:
StandardError
  • Object
show all
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

Constructor Details

#initialize(message = "Sqlx::ConnectionFailed") ⇒ ConnectionFailed

Returns a new instance of ConnectionFailed.

Parameters:

  • message (String) (defaults to: "Sqlx::ConnectionFailed")


23
# File 'runtime/sqlx/errors.rbs', line 23

def initialize: (?String message) -> void