src/ExceptionHandler.php
public static function handleError($code, $message, $filename = '', $line = 0)
    {
        throw new \ErrorException($message, $code, 0, $filename, $line);
    }
public static function handleError($code, $message, $filename = '', $line = 0)
    {
        throw new \ErrorException($message, $code, 0, $filename, $line);
    }
Convert application error into exception.

@param int    $code
@param string $message
@param string $filename
@param int    $line

@throws \ErrorException