MultiversionException.php in Multiversion 8.2
File
src/Entity/Exception/MultiversionException.php
View source
<?php
namespace Drupal\multiversion\Entity\Exception;
use Drupal\Core\Entity\EntityInterface;
class MultiversionException extends \Exception implements MultiversionExceptionInterface {
protected $entity;
public function __construct(EntityInterface $entity = NULL, $message = NULL, $code = 0, \Exception $previous = NULL) {
$this->entity = $entity;
parent::__construct($message, $code, $previous);
}
public function getEntity() {
return $this->entity;
}
}