class MultiversionException in Multiversion 8.2
Same name and namespace in other branches
- 8 src/Entity/Exception/MultiversionException.php \Drupal\multiversion\Entity\Exception\MultiversionException
Hierarchy
- class \Drupal\multiversion\Entity\Exception\MultiversionException extends \Drupal\multiversion\Entity\Exception\Exception implements MultiversionExceptionInterface
Expanded class hierarchy of MultiversionException
File
- src/
Entity/ Exception/ MultiversionException.php, line 7
Namespace
Drupal\multiversion\Entity\ExceptionView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MultiversionException:: |
protected | property | ||
MultiversionException:: |
public | function |
Overrides MultiversionExceptionInterface:: |
|
MultiversionException:: |
public | function |