class MaestroSaveEntityException in Maestro 8.2
Same name and namespace in other branches
- 3.x src/Engine/Exception/MaestroSaveEntityException.php \Drupal\maestro\Engine\Exception\MaestroSaveEntityException
Exception thrown if the saving of an entity fails.
Hierarchy
- class \Drupal\maestro\Engine\Exception\MaestroSaveEntityException extends \Drupal\maestro\Engine\Exception\Exception
Expanded class hierarchy of MaestroSaveEntityException
See also
hook_entity_info_alter()
2 files declare their use of MaestroSaveEntityException
- MaestroEngine.php in src/
Engine/ MaestroEngine.php - MaestroSpawnSubFlowTask.php in src/
Plugin/ EngineTasks/ MaestroSpawnSubFlowTask.php
File
- src/
Engine/ Exception/ MaestroSaveEntityException.php, line 10
Namespace
Drupal\maestro\Engine\ExceptionView source
class MaestroSaveEntityException extends \Exception {
/**
* Constructs an MaestroSaveEntityException.
*
* @param string $entity_identifier
* The entity identifier.
* @param string $condition
* The condition in which this exception ocurred.
*/
public function __construct($entity_identifier, $condition) {
$message = sprintf('The saving of entity "%s" failed during %s', $entity_identifier, $condition);
parent::__construct($message);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MaestroSaveEntityException:: |
public | function | Constructs an MaestroSaveEntityException. |