code/error/error.php
public static function raise($level, $code, $msg, $info = null, $backtrace = false)
	{
		JLog::add('JError::raise() is deprecated.', JLog::WARNING, 'deprecated');

		// Build error object
		$class     = $code == 404 ? 'JExceptionNotFound' : 'JException';
		$exception = new $class($msg, $code, $level, $info, $backtrace);

		return self::throwError($exception);
	}
public static function raise($level, $code, $msg, $info = null, $backtrace = false)
	{
		JLog::add('JError::raise() is deprecated.', JLog::WARNING, 'deprecated');

		// Build error object
		$class     = $code == 404 ? 'JExceptionNotFound' : 'JException';
		$exception = new $class($msg, $code, $level, $info, $backtrace);

		return self::throwError($exception);
	}
public static function raise ( $ level , $ code , $ msg , $ info = null , $ backtrace = false ) { JLog :: add ( 'JError::raise() is deprecated.' , JLog :: WARNING , 'deprecated' ) ; // Build error object $ class = $ code == 404 ? 'JExceptionNotFound' : 'JException' ; $ exception = new $ class ( $ msg , $ code , $ level , $ info , $ backtrace ) ; return self :: throwError ( $ exception ) ; }
Create a new JException object given the passed arguments

@param   integer  $level      The error level - use any of PHP's own error levels for
this: E_ERROR, E_WARNING, E_NOTICE, E_USER_ERROR,
E_USER_WARNING, E_USER_NOTICE.
@param   string   $code       The application-internal error code for this error
@param   string   $msg        The error message, which may also be shown the user if need be.
@param   mixed    $info       Optional: Additional error information (usually only
developer-relevant information that the user should never see,
like a database DSN).
@param   boolean  $backtrace  Add a stack backtrace to the exception.

@return  JException

@since       11.1
@deprecated  12.1  Use PHP Exception
@see         JException
Create a new JException object given the passed arguments