code/error/error.php
public static function handleDie(&$error, $options)
	{
		JLog::add('JError::handleDie() is deprecated.', JLog::WARNING, 'deprecated');

		$level_human = self::translateErrorLevel($error->get('level'));

		if (isset($_SERVER['HTTP_HOST']))
		{
			// Output as html
			jexit("<br /><b>J$level_human</b>: " . $error->get('message') . "<br />\n");
		}
		else
		{
			// Output as simple text
			if (defined('STDERR'))
			{
				fwrite(STDERR, "J$level_human: " . $error->get('message') . "\n");
				jexit();
			}
			else
			{
				jexit("J$level_human: " . $error->get('message') . "\n");
			}
		}

		return $error;
	}
public static function handleDie(&$error, $options)
	{
		JLog::add('JError::handleDie() is deprecated.', JLog::WARNING, 'deprecated');

		$level_human = self::translateErrorLevel($error->get('level'));

		if (isset($_SERVER['HTTP_HOST']))
		{
			// Output as html
			jexit("<br /><b>J$level_human</b>: " . $error->get('message') . "<br />\n");
		}
		else
		{
			// Output as simple text
			if (defined('STDERR'))
			{
				fwrite(STDERR, "J$level_human: " . $error->get('message') . "\n");
				jexit();
			}
			else
			{
				jexit("J$level_human: " . $error->get('message') . "\n");
			}
		}

		return $error;
	}
public static function handleDie ( & $ error , $ options ) { JLog :: add ( 'JError::handleDie() is deprecated.' , JLog :: WARNING , 'deprecated' ) ; $ level_human = self :: translateErrorLevel ( $ error -> get ( 'level' ) ) ; if ( isset ( $ _SERVER [ 'HTTP_HOST' ] ) ) { // Output as html jexit ( "<br /><b>J$level_human</b>: " . $ error -> get ( 'message' ) . "<br />\n" ) ; } else { // Output as simple text if ( defined ( 'STDERR' ) ) { fwrite ( STDERR , "J$level_human: " . $ error -> get ( 'message' ) . "\n" ) ; jexit ( ) ; } else { jexit ( "J$level_human: " . $ error -> get ( 'message' ) . "\n" ) ; } } return $ error ; }
Die error handler
- Echos the error message to output and then dies

@param   JException  &$error   Exception object to handle
@param   array       $options  Handler options

@return  void  Calls die()

@deprecated  12.1
@see         JError::raise()
@since       11.1
Die error handler - Echos the error message to output and then dies