source/Core/Exception/ExceptionHandler.php
public function handleUncaughtException(\Throwable $exception)
    {
        try {
            Registry::getLogger()->error(
                $exception->getMessage(),
                [$exception]
            );
        } catch (\Throwable $loggerException) {
            /**
             * Logger is broken because of exception.
             * Throw original exception in order to show the root cause of a problem.
             */
        }

        if ($this->_iDebug || defined('OXID_PHP_UNIT')) {
            throw $exception;
        } else {
            $this->displayOfflinePage();
            $this->exitApplication();
        }
    }
public function handleUncaughtException(\Throwable $exception)
    {
        try {
            Registry::getLogger()->error(
                $exception->getMessage(),
                [$exception]
            );
        } catch (\Throwable $loggerException) {
            /**
             * Logger is broken because of exception.
             * Throw original exception in order to show the root cause of a problem.
             */
        }

        if ($this->_iDebug || defined('OXID_PHP_UNIT')) {
            throw $exception;
        } else {
            $this->displayOfflinePage();
            $this->exitApplication();
        }
    }
public function handleUncaughtException ( \ Throwable $ exception ) { try { Registry :: getLogger ( ) -> error ( $ exception -> getMessage ( ) , [ $ exception ] ) ; } catch ( \ Throwable $ loggerException ) { /**
             * Logger is broken because of exception.
             * Throw original exception in order to show the root cause of a problem.
             */ } if ( $ this -> _iDebug || defined ( 'OXID_PHP_UNIT' ) ) { throw $ exception ; } else { $ this -> displayOfflinePage ( ) ; $ this -> exitApplication ( ) ; } }
Handler for uncaught exceptions. As this is the las resort no fancy business logic should be applied here.

@param \Throwable $exception exception object

@throws \Throwable
Handler for uncaught exceptions . As this is the las resort no fancy business logic should be applied here .