You are here

public function LingotekContentEntityStorageException::__construct in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 8 src/Exception/LingotekContentEntityStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityStorageException::__construct()
  2. 8.2 src/Exception/LingotekContentEntityStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityStorageException::__construct()
  3. 4.0.x src/Exception/LingotekContentEntityStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityStorageException::__construct()
  4. 3.0.x src/Exception/LingotekContentEntityStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityStorageException::__construct()
  5. 3.1.x src/Exception/LingotekContentEntityStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityStorageException::__construct()
  6. 3.2.x src/Exception/LingotekContentEntityStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityStorageException::__construct()
  7. 3.3.x src/Exception/LingotekContentEntityStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityStorageException::__construct()
  8. 3.5.x src/Exception/LingotekContentEntityStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityStorageException::__construct()
  9. 3.6.x src/Exception/LingotekContentEntityStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityStorageException::__construct()
  10. 3.7.x src/Exception/LingotekContentEntityStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityStorageException::__construct()
  11. 3.8.x src/Exception/LingotekContentEntityStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityStorageException::__construct()

File

src/Exception/LingotekContentEntityStorageException.php, line 26

Class

LingotekContentEntityStorageException
An exception for issues when storing content entity translations.

Namespace

Drupal\lingotek\Exception

Code

public function __construct(ContentEntityInterface $entity, \Exception $previous = NULL, $message = NULL, $code = 0) {
  parent::__construct($message, $code, $previous);
  $this->entity = $entity;
  $this->table = $this
    ->extractTableFromPreviousExceptionMessage($previous);
  $this->code = $previous
    ->getCode();
}