AppserverIo\Appserver\ServletEngine\Utils\ErrorUtil::fromException PHP Method

fromException() public method

Create's a new error instance from the passed exception.
public fromException ( Exception $e ) : AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface
$e Exception The exception to create the error instance from
return AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface The error instance
    public function fromException(\Exception $e)
    {
        return new Error(E_EXCEPTION, $e->__toString(), $e->getFile(), $e->getLine());
    }