• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/diag/exceptionhandleroutput.php
  • Класс: BitrixMainDiagExceptionHandlerOutput
  • Вызов: ExceptionHandlerOutput::renderExceptionMessage
public function renderExceptionMessage($exception, $debug = false)
{
	if ($debug)
	{
		echo ExceptionHandlerFormatter::format($exception, false);
	}
	else
	{
		$context = MainApplication::getInstance();
		if ($context)
			echo MainLocalizationLoc::getMessage("eho_render_exception_message");
		else
			echo "A error occurred during execution of this script. You can turn on extended error reporting in .settings.php file.";
	}
}