You are here

public function MaestroSaveEntityException::__construct in Maestro 8.2

Same name and namespace in other branches
  1. 3.x src/Engine/Exception/MaestroSaveEntityException.php \Drupal\maestro\Engine\Exception\MaestroSaveEntityException::__construct()

Constructs an MaestroSaveEntityException.

Parameters

string $entity_identifier: The entity identifier.

string $condition: The condition in which this exception ocurred.

File

src/Engine/Exception/MaestroSaveEntityException.php, line 20

Class

MaestroSaveEntityException
Exception thrown if the saving of an entity fails.

Namespace

Drupal\maestro\Engine\Exception

Code

public function __construct($entity_identifier, $condition) {
  $message = sprintf('The saving of entity "%s" failed during %s', $entity_identifier, $condition);
  parent::__construct($message);
}