You are here

class MultiversionException in Multiversion 8.2

Same name and namespace in other branches
  1. 8 src/Entity/Exception/MultiversionException.php \Drupal\multiversion\Entity\Exception\MultiversionException

Hierarchy

Expanded class hierarchy of MultiversionException

File

src/Entity/Exception/MultiversionException.php, line 7

Namespace

Drupal\multiversion\Entity\Exception
View source
class MultiversionException extends \Exception implements MultiversionExceptionInterface {

  /**
   * @var \Drupal\Core\Entity\EntityInterface
   */
  protected $entity;

  /**
   * @param EntityInterface $entity
   * @param null|string $message
   * @param int $code
   * @param \Exception $previous
   */
  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;
  }

}

Members