code/error/error.php
public static function registerErrorLevel($level, $name, $handler = 'ignore')
	{
		JLog::add('JError::registerErrorLevel() is deprecated.', JLog::WARNING, 'deprecated');

		if (isset(self::$levels[$level]))
		{
			return false;
		}

		self::$levels[$level] = $name;
		self::setErrorHandling($level, $handler);

		return true;
	}
public static function registerErrorLevel($level, $name, $handler = 'ignore')
	{
		JLog::add('JError::registerErrorLevel() is deprecated.', JLog::WARNING, 'deprecated');

		if (isset(self::$levels[$level]))
		{
			return false;
		}

		self::$levels[$level] = $name;
		self::setErrorHandling($level, $handler);

		return true;
	}
public static function registerErrorLevel ( $ level , $ name , $ handler = 'ignore' ) { JLog :: add ( 'JError::registerErrorLevel() is deprecated.' , JLog :: WARNING , 'deprecated' ) ; if ( isset ( self :: $ levels [ $ level ] ) ) { return false ; } self :: $ levels [ $ level ] = $ name ; self :: setErrorHandling ( $ level , $ handler ) ; return true ; }
Method to register a new error level for handling errors

This allows you to add custom error levels to the built-in
- E_NOTICE
- E_WARNING
- E_NOTICE

@param   integer  $level    Error level to register
@param   string   $name     Human readable name for the error level
@param   string   $handler  Error handler to set for the new error level [optional]

@return  boolean  True on success; false if the level already has been registered

@deprecated  12.1
@since   11.1
Method to register a new error level for handling errors