association-1.0.0-alpha2/src/Entity/Exception/AlreadyAssociatedException.php
src/Entity/Exception/AlreadyAssociatedException.php
<?php namespace Drupal\association\Entity\Exception; /** * Exception when trying to associate an entity that is already associated. */ class AlreadyAssociatedException extends \Exception { /** * {@inheritdoc} */ public function __construct($message = '', $code = 0, \Throwable $previous = NULL) { if (empty($message)) { $message = 'Target entity is already associated to this association.'; } parent::__construct($message, $code, $previous); } }