You are here

class LingotekContentEntityFieldTooLongStorageException in Lingotek Translation 4.0.x

Same name and namespace in other branches
  1. 3.8.x src/Exception/LingotekContentEntityFieldTooLongStorageException.php \Drupal\lingotek\Exception\LingotekContentEntityFieldTooLongStorageException

An exception for issues when storing content entity translations.

@package Drupal\lingotek\Exception

Hierarchy

Expanded class hierarchy of LingotekContentEntityFieldTooLongStorageException

1 file declares its use of LingotekContentEntityFieldTooLongStorageException
LingotekContentTranslationService.php in src/LingotekContentTranslationService.php

File

src/Exception/LingotekContentEntityFieldTooLongStorageException.php, line 12

Namespace

Drupal\lingotek\Exception
View source
class LingotekContentEntityFieldTooLongStorageException extends LingotekContentEntityStorageException {
  public function __construct(ContentEntityInterface $entity, string $field_name, $message = NULL, $code = 0) {
    parent::__construct($entity, NULL, $message, $code);
    $this->table = $field_name;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
LingotekContentEntityFieldTooLongStorageException::__construct public function Overrides LingotekContentEntityStorageException::__construct
LingotekContentEntityStorageException::$entity protected property The entity that could not be saved.
LingotekContentEntityStorageException::$table protected property
LingotekContentEntityStorageException::extractTableFromPreviousExceptionMessage protected function Extract the problematic table from the previous exception message.
LingotekContentEntityStorageException::getTable public function Gets the table name that failed to update.