function SandboxEventException::__construct

Constructs a StageEventException object.

Parameters

\Drupal\package_manager\Event\SandboxEvent $event: The stage event during which this exception is thrown.

string|null $message: (optional) The exception message. Defaults to a plain text representation of the validation results.

mixed ...$arguments: Additional arguments to pass to the parent constructor.

Overrides SandboxException::__construct

File

core/modules/package_manager/src/Exception/SandboxEventException.php, line 31

Class

SandboxEventException
Exception thrown if an error related to an event occurs.

Namespace

Drupal\package_manager\Exception

Code

public function __construct(SandboxEvent $event, ?string $message = NULL, ...$arguments) {
    parent::__construct($event->sandboxManager, $message ?: $this->getResultsAsText(), ...$arguments);
}

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