public static function couldNotConnect(
        ConnectionOptions $options,
        $description,
        \Exception $previous = null
    )
    {
        return new self(
            sprintf(
                'Unable to connect to AMQP broker [%s:%d], check connection options and network connectivity (%s).',
                $options->getHost(),
                $options->getPort(),
                rtrim($description, '.')
            ),
            0,
            $previous
        );
    }
public static function couldNotConnect(
        ConnectionOptions $options,
        $description,
        \Exception $previous = null
    )
    {
        return new self(
            sprintf(
                'Unable to connect to AMQP broker [%s:%d], check connection options and network connectivity (%s).',
                $options->getHost(),
                $options->getPort(),
                rtrim($description, '.')
            ),
            0,
            $previous
        );
    }
public static function couldNotConnect ( ConnectionOptions $ options , $ description , \ Exception $ previous = null ) { return new self ( sprintf ( 'Unable to connect to AMQP broker [%s:%d], check connection options and network connectivity (%s).' , $ options -> getHost ( ) , $ options -> getPort ( ) , rtrim ( $ description , '.' ) ) , 0 , $ previous ) ; }
Create an exception that indicates a failure to establish a connection to
an AMQP broker.

@param ConnectionOptions $options The options used when establishing the connection.
@param string $description A description of the problem.
@param \Exception|null $previous The exception that caused this exception, if any.
@return AMQPConnectionException
Create an exception that indicates a failure to establish a connection to an AMQP broker .