function SandboxManagerBase::rethrowAsStageException
Wraps an exception in a StageException and re-throws it.
Parameters
\Throwable $e: The throwable to wrap.
4 calls to SandboxManagerBase::rethrowAsStageException()
- SandboxManagerBase::apply in core/
modules/ package_manager/ src/ SandboxManagerBase.php - Applies staged changes to the active directory.
- SandboxManagerBase::create in core/
modules/ package_manager/ src/ SandboxManagerBase.php - Copies the active code base into the stage directory.
- SandboxManagerBase::getPathsToExclude in core/
modules/ package_manager/ src/ SandboxManagerBase.php - Collects paths that Composer Stager should exclude.
- SandboxManagerBase::require in core/
modules/ package_manager/ src/ SandboxManagerBase.php - Adds or updates packages in the sandbox directory.
File
-
core/
modules/ package_manager/ src/ SandboxManagerBase.php, line 378
Class
- SandboxManagerBase
- Creates and manages a stage directory in which to install or update code.
Namespace
Drupal\package_managerCode
private function rethrowAsStageException(\Throwable $e) : never {
throw new SandboxException($this, $e->getMessage(), $e->getCode(), $e);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.