public function MaestroSaveEntityException::__construct in Maestro 3.x
Same name and namespace in other branches
- 8.2 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\ExceptionCode
public function __construct($entity_identifier, $condition) {
$message = sprintf('The saving of entity "%s" failed during %s', $entity_identifier, $condition);
parent::__construct($message);
}