src/Connection/AbstractConnection.php
private function createExceptionMessage($message)
    {
        $parameters = $this->parameters;

        if ($parameters->scheme === 'unix') {
            return "$message [$parameters->scheme:$parameters->path]";
        }

        if (filter_var($parameters->host, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
            return "$message [$parameters->scheme://[$parameters->host]:$parameters->port]";
        }

        return "$message [$parameters->scheme://$parameters->host:$parameters->port]";
    }
private function createExceptionMessage($message)
    {
        $parameters = $this->parameters;

        if ($parameters->scheme === 'unix') {
            return "$message [$parameters->scheme:$parameters->path]";
        }

        if (filter_var($parameters->host, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
            return "$message [$parameters->scheme://[$parameters->host]:$parameters->port]";
        }

        return "$message [$parameters->scheme://$parameters->host:$parameters->port]";
    }
private function createExceptionMessage ( $ message ) { $ parameters = $ this -> parameters ; if ( $ parameters -> scheme === 'unix' ) { return "$message [$parameters->scheme:$parameters->path]" ; } if ( filter_var ( $ parameters -> host , FILTER_VALIDATE_IP , FILTER_FLAG_IPV6 ) ) { return "$message [$parameters->scheme://[$parameters->host]:$parameters->port]" ; } return "$message [$parameters->scheme://$parameters->host:$parameters->port]" ; }
Helper method that returns an exception message augmented with useful
details from the connection parameters.

@param string $message Error message.

@return string
Helper method that returns an exception message augmented with useful details from the connection parameters .