protected function catchException(\Exception $exception, $notifier = null)
    {
        global $USER;

        $this->abortCache();

        if ($USER->IsAdmin())
        {
            $this->showExceptionAdmin($exception);
        }
        else
        {
            $this->showExceptionUser($exception);
        }

        if (($notifier === true) || ($this->exceptionNotifier && $notifier !== false) && BX_EXC_NOTIFY !== false)
        {
            $this->sendNotifyException($exception);
        }
    }