You are here

class MaestroSaveEntityException in Maestro 8.2

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

Exception thrown if the saving of an entity fails.

Hierarchy

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\Exception
View 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

Namesort descending Modifiers Type Description Overrides
MaestroSaveEntityException::__construct public function Constructs an MaestroSaveEntityException.