public function onClientError(ClientErrorEvent $event)
    {
        $conn = $event->getConnection();
        $e = $event->getException();

        echo "connection error occurred: " . $e->getMessage() . PHP_EOL;
    }
public function onClientError(ClientErrorEvent $event)
    {
        $conn = $event->getConnection();
        $e = $event->getException();

        echo "connection error occurred: " . $e->getMessage() . PHP_EOL;
    }
public function onClientError ( ClientErrorEvent $ event ) { $ conn = $ event -> getConnection ( ) ; $ e = $ event -> getException ( ) ; echo "connection error occurred: " . $ e -> getMessage ( ) . PHP_EOL ; }
Called whenever a client errors

@param ClientErrorEvent $event
Called whenever a client errors