src/Exception.php
final public static function raise(int $level, string $message, string $file = null, int $line = null)
    {
        if (error_reporting() === 0) {
            return false;
        }

        throw new ErrorException($message, 0, $level, $file, $line);
    }
final public static function raise(int $level, string $message, string $file = null, int $line = null)
    {
        if (error_reporting() === 0) {
            return false;
        }

        throw new ErrorException($message, 0, $level, $file, $line);
    }
final public static function raise ( int $ level , string $ message , string $ file = null , int $ line = null ) { if ( error_reporting ( ) === 0 ) { return false ; } throw new ErrorException ( $ message , 0 , $ level , $ file , $ line ) ; }
Throws a new \ErrorException based on the error information provided.

@param integer $level   The level of the error raised.
@param string  $message The error message.
@param string  $file    The filename from which the error was raised.
@param integer $line    The line number at which the error was raised.

@return bool false

@throws ErrorException Thrown based on information given in parameters.
Throws a new \ ErrorException based on the error information provided .