class DB::ConnectionLost

Overview

Raised when an established connection is lost probably due to socket/network issues. It is used by the connection pool retry logic.

Defined in:

db/error.cr

Constructors

Instance Method Summary

Instance methods inherited from class DB::PoolResourceLost(DB::Connection)

resource : T resource

Constructor methods inherited from class DB::PoolResourceLost(DB::Connection)

new(resource : T, cause : Exception | Nil = nil) new

Constructor Detail

def self.new(resource : T, cause : Exception | Nil = nil) #

[View source]

Instance Method Detail

def connection #

[View source]