Exception: Sqlx::ConnectionTimeout

Inherits:
StandardError
  • Object
show all
Defined in:
runtime/sqlx/errors.rb,
runtime/sqlx/errors.rbs

Overview

Raised when a connection-pool checkout could not get a connection inside the adapter's wait budget. The statement did not run, so the caller may retry the unit; a request that keeps hitting it needs a larger pool or a shorter transaction, not a longer wait.

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ConnectionTimeout.

Parameters:

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


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

def initialize: (?String message) -> void