public function fromException(\Exception $e)
    {
        return new Error(E_EXCEPTION, $e->__toString(), $e->getFile(), $e->getLine(), $e->getCode());
    }
public function fromException(\Exception $e)
    {
        return new Error(E_EXCEPTION, $e->__toString(), $e->getFile(), $e->getLine(), $e->getCode());
    }
public function fromException ( \ Exception $ e ) { return new Error ( E_EXCEPTION , $ e -> __toString ( ) , $ e -> getFile ( ) , $ e -> getLine ( ) , $ e -> getCode ( ) ) ; }
Create's a new error instance from the passed exception.

@param \Exception $e The exception to create the error instance from

@return \AppserverIo\Appserver\Core\Utilities\ErrorInterface The error instance
Create s a new error instance from the passed exception .