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

		$appl = JFactory::getApplication();
		$type = ($error->get('level') == E_NOTICE) ? 'notice' : 'error';
		$appl->enqueueMessage($error->get('message'), $type);

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

		$appl = JFactory::getApplication();
		$type = ($error->get('level') == E_NOTICE) ? 'notice' : 'error';
		$appl->enqueueMessage($error->get('message'), $type);

		return $error;
	}
public static function handleMessage ( & $ error , $ options ) { JLog :: add ( 'JError::hanleMessage() is deprecated.' , JLog :: WARNING , 'deprecated' ) ; $ appl = JFactory :: getApplication ( ) ; $ type = ( $ error -> get ( 'level' ) == E_NOTICE ) ? 'notice' : 'error' ; $ appl -> enqueueMessage ( $ error -> get ( 'message' ) , $ type ) ; return $ error ; }
Message error handler
Enqueues the error message into the system queue

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

@return  JException  The exception object

@deprecated  12.1
@see         JError::raise()
@since       11.1
Message error handler Enqueues the error message into the system queue