public function handler($errno, $errstr, $errfile, $errline)
    {
        throw new \ErrorException($errstr, $errno, 0, $errfile, $errline);
    }
public function handler($errno, $errstr, $errfile, $errline)
    {
        throw new \ErrorException($errstr, $errno, 0, $errfile, $errline);
    }
public function handler ( $ errno , $ errstr , $ errfile , $ errline ) { throw new \ ErrorException ( $ errstr , $ errno , 0 , $ errfile , $ errline ) ; }
Handles errors, throws them as Exceptions

@param int    $errno
@param string $errstr
@param string $errfile
@param int    $errline

@throws \ErrorException
Handles errors throws them as Exceptions