You are here

MaestroSaveEntityException.php in Maestro 8.2

Same filename and directory in other branches
  1. 3.x src/Engine/Exception/MaestroSaveEntityException.php

File

src/Engine/Exception/MaestroSaveEntityException.php
View source
<?php

namespace Drupal\maestro\Engine\Exception;


/**
 * Exception thrown if the saving of an entity fails.
 *
 * @see hook_entity_info_alter()
 */
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);
  }

}

Classes

Namesort descending Description
MaestroSaveEntityException Exception thrown if the saving of an entity fails.