src/Connection/AbstractConnection.php
protected function onConnectionError($message, $code = null)
    {
        CommunicationException::handle(
            new ConnectionException($this, static::createExceptionMessage($message), $code)
        );
    }
protected function onConnectionError($message, $code = null)
    {
        CommunicationException::handle(
            new ConnectionException($this, static::createExceptionMessage($message), $code)
        );
    }
protected function onConnectionError ( $ message , $ code = null ) { CommunicationException :: handle ( new ConnectionException ( $ this , static :: createExceptionMessage ( $ message ) , $ code ) ) ; }
Helper method to handle connection errors.

@param string $message Error message.
@param int    $code    Error code.
Helper method to handle connection errors .