function FailureMarker::assertNotExists

Asserts the failure file doesn't exist.

Throws

\Drupal\package_manager\Exception\StageFailureMarkerException Thrown if the marker file exists.

File

core/modules/package_manager/src/FailureMarker.php, line 136

Class

FailureMarker
Handles failure marker file operation.

Namespace

Drupal\package_manager

Code

public function assertNotExists() : void {
    if ($message = $this->getMessage()) {
        throw new StageFailureMarkerException($message);
    }
}

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