public static function notOpen(
        ConnectionOptions $options,
        \Exception $previous = null
    )
    {
        return new self(
            sprintf(
                'Unable to use connection to AMQP broker [%s:%d] because it is closed.',
                $options->getHost(),
                $options->getPort()
            ),
            0,
            $previous
        );
    }
public static function notOpen(
        ConnectionOptions $options,
        \Exception $previous = null
    )
    {
        return new self(
            sprintf(
                'Unable to use connection to AMQP broker [%s:%d] because it is closed.',
                $options->getHost(),
                $options->getPort()
            ),
            0,
            $previous
        );
    }
public static function notOpen ( ConnectionOptions $ options , \ Exception $ previous = null ) { return new self ( sprintf ( 'Unable to use connection to AMQP broker [%s:%d] because it is closed.' , $ options -> getHost ( ) , $ options -> getPort ( ) ) , 0 , $ previous ) ; }
Create an exception that indicates an attempt to use a connection that has
already been closed.

@param ConnectionOptions $options The options used when establishing the connection.
@param \Exception|null $previous The exception that caused this exception, if any.
@return AMQPConnectionException
Create an exception that indicates an attempt to use a connection that has already been closed .