<?php

namespace Drupal\straker_translate\Exception;

use Drupal\Core\Entity\ContentEntityInterface;

/**
 * An exception for issues when storing content entity translations.
 *
 * @package Drupal\straker_translate\Exception
 */
class StrakerTranslateContentEntityFieldTooLongStorageException extends StrakerTranslateContentEntityStorageException {

  /**
   *
   */
  public function __construct(ContentEntityInterface $entity, string $field_name, $message = NULL, $code = 0) {
    parent::__construct($entity, NULL, $message, $code);
    $this->table = $field_name;
  }

}
