AppserverIo\Appserver\ServletEngine\Utils\ErrorUtil::fromException PHP Метод

fromException() публичный Метод

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
Результат AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface The error instance
    public function fromException(\Exception $e)
    {
        return new Error(E_EXCEPTION, $e->__toString(), $e->getFile(), $e->getLine());
    }