public static function fromError(\Error $e)
    {
        return new self($e->getMessage(), $e->getCode(), 1, $e->getFile(), $e->getLine(), $e);
    }
public static function fromError(\Error $e)
    {
        return new self($e->getMessage(), $e->getCode(), 1, $e->getFile(), $e->getLine(), $e);
    }
public static function fromError ( \ Error $ e ) { return new self ( $ e -> getMessage ( ) , $ e -> getCode ( ) , 1 , $ e -> getFile ( ) , $ e -> getLine ( ) , $ e ) ; }
Create an ErrorException from an Error.

@param \Error $e

@return ErrorException
Create an ErrorException from an Error .