class LostConnectionDetector implements LostConnectionDetector (View source)

Properties

static protected Throwable): bool|null $detectUsingCallback

The callback that should be used to detect additional lost connections.

Methods

bool
causedByLostConnection(Throwable $e)

Determine if the given exception was caused by a lost connection.

static void
detectUsing(callable|null $callback)

Register a callback to detect additional lost connections.

Details

bool causedByLostConnection(Throwable $e)

Determine if the given exception was caused by a lost connection.

Parameters

Throwable $e

Return Value

bool

static void detectUsing(callable|null $callback)

Register a callback to detect additional lost connections.

Parameters

callable|null $callback

Return Value

void