protected function sendNotifyException ($exception)
        {
            $adminEmail = Main\Config\Option::get ('main', 'email_from');
            $logFile = Application::getDocumentRoot () . $this->__path . '/' . $this->exceptionLog;

            if (!is_file ($logFile) && $adminEmail)
            {
                $this->lang = new Lang(get_class ());
                $date = date ('Y-m-d H:m:s');

                bxmail (
                    $adminEmail,
                    $this->lang->getMessage (
                        'BBC_COMPONENT_EXCEPTION_EMAIL_SUBJECT',
                        array ('#SITE_URL#' => SITE_SERVER_NAME)
                    ),
                    $this->lang->getMessage (
                        'BBC_COMPONENT_EXCEPTION_EMAIL_TEXT',
                        array (
                            '#URL#'               => 'http://' . SITE_SERVER_NAME . Main\Context::getCurrent ()->getRequest ()->getRequestedPage (),
                            '#DATE#'              => $date,
                            '#EXCEPTION_MESSAGE#' => $exception->getMessage (),
                            '#EXCEPTION#'         => $exception,
                        )
                    ),
                    'Content-Type: text/html; charset=utf-8'
                );

                $log = fopen ($logFile, 'w');
                fwrite ($log, '[' . $date . '] Catch exception: ' . PHP_EOL . $exception);
                fclose ($log);
            }
        }