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

		self::$stack[] = &$e;
	}
public static function addToStack(JException &$e)
	{
		JLog::add('JError::addToStack() is deprecated.', JLog::WARNING, 'deprecated');

		self::$stack[] = &$e;
	}
public static function addToStack ( JException & $ e ) { JLog :: add ( 'JError::addToStack() is deprecated.' , JLog :: WARNING , 'deprecated' ) ; self :: $ stack [ ] = & $ e ; }
Method to add non-JError thrown JExceptions to the JError stack for debugging purposes

@param   JException  &$e  Add an exception to the stack.

@return  void

@since       11.1
@deprecated  12.1
Method to add non - JError thrown JExceptions to the JError stack for debugging purposes