public function failConnect(FailedConnectionEvent $args)
    {
        $e = $args->getException();
        $this->logger->debug($e->getMessage(), ['event' => 'exception', 'exception' => $e]);

        throw new DatabaseConnectionException($args->getDriver()->getName(), $e->getMessage(), $e);
    }
public function failConnect(FailedConnectionEvent $args)
    {
        $e = $args->getException();
        $this->logger->debug($e->getMessage(), ['event' => 'exception', 'exception' => $e]);

        throw new DatabaseConnectionException($args->getDriver()->getName(), $e->getMessage(), $e);
    }
public function failConnect ( FailedConnectionEvent $ args ) { $ e = $ args -> getException ( ) ; $ this -> logger -> debug ( $ e -> getMessage ( ) , [ 'event' => 'exception' , 'exception' => $ e ] ) ; throw new DatabaseConnectionException ( $ args -> getDriver ( ) -> getName ( ) , $ e -> getMessage ( ) , $ e ) ; }
Event fired on database connection failure.

@param FailedConnectionEvent $args

@throws DatabaseConnectionException
Event fired on database connection failure .