source/Core/ShopControl.php
protected function reportDatabaseConnectionException(DatabaseConnectionException $exception)
    {
        /**
         * If the shop is not in debug mode, a "shop offline" warning is send to the shop admin.
         * In order not to spam the shop admin, the warning will be sent in a certain interval of time.
         */
        if ($this->messageWasSentWithinThreshold() || $this->_isDebugMode()) {
            return;
        }

        $result = $this->sendOfflineWarning($exception);
        if ($result) {
            file_put_contents($this->offlineWarningTimestampFile, time());
        }
    }
protected function reportDatabaseConnectionException(DatabaseConnectionException $exception)
    {
        /**
         * If the shop is not in debug mode, a "shop offline" warning is send to the shop admin.
         * In order not to spam the shop admin, the warning will be sent in a certain interval of time.
         */
        if ($this->messageWasSentWithinThreshold() || $this->_isDebugMode()) {
            return;
        }

        $result = $this->sendOfflineWarning($exception);
        if ($result) {
            file_put_contents($this->offlineWarningTimestampFile, time());
        }
    }
protected function reportDatabaseConnectionException ( DatabaseConnectionException $ exception ) { /**
         * If the shop is not in debug mode, a "shop offline" warning is send to the shop admin.
         * In order not to spam the shop admin, the warning will be sent in a certain interval of time.
         */ if ( $ this -> messageWasSentWithinThreshold ( ) || $ this -> _isDebugMode ( ) ) { return ; } $ result = $ this -> sendOfflineWarning ( $ exception ) ; if ( $ result ) { file_put_contents ( $ this -> offlineWarningTimestampFile , time ( ) ) ; } }
Notify the shop owner about database connection problems.

This method forms part of the exception handling process. Any further exceptions must be caught.

@param DatabaseConnectionException $exception Database connection exception to report

@return null
Notify the shop owner about database connection problems .