function StageBase::rethrowAsStageException

Wraps an exception in a StageException and re-throws it.

Parameters

\Throwable $e: The throwable to wrap.

4 calls to StageBase::rethrowAsStageException()
StageBase::apply in core/modules/package_manager/src/StageBase.php
Applies staged changes to the active directory.
StageBase::create in core/modules/package_manager/src/StageBase.php
Copies the active code base into the stage directory.
StageBase::getPathsToExclude in core/modules/package_manager/src/StageBase.php
Collects paths that Composer Stager should exclude.
StageBase::require in core/modules/package_manager/src/StageBase.php
Adds or updates packages in the stage directory.

File

core/modules/package_manager/src/StageBase.php, line 370

Class

StageBase
Creates and manages a stage directory in which to install or update code.

Namespace

Drupal\package_manager

Code

private function rethrowAsStageException(\Throwable $e) : never {
    throw new StageException($this, $e->getMessage(), $e->getCode(), $e);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.