public function LingotekContentEntityStorageException::__construct in Lingotek Translation 3.0.x
Same name and namespace in other branches
- 8 src/Exception/LingotekContentEntityStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityStorageException::__construct()
- 8.2 src/Exception/LingotekContentEntityStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityStorageException::__construct()
- 4.0.x src/Exception/LingotekContentEntityStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityStorageException::__construct()
- 3.1.x src/Exception/LingotekContentEntityStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityStorageException::__construct()
- 3.2.x src/Exception/LingotekContentEntityStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityStorageException::__construct()
- 3.3.x src/Exception/LingotekContentEntityStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityStorageException::__construct()
- 3.4.x src/Exception/LingotekContentEntityStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityStorageException::__construct()
- 3.5.x src/Exception/LingotekContentEntityStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityStorageException::__construct()
- 3.6.x src/Exception/LingotekContentEntityStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityStorageException::__construct()
- 3.7.x src/Exception/LingotekContentEntityStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityStorageException::__construct()
- 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\ExceptionCode
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();
}