Final Class Yiisoft\Rbac\Exception\ItemAlreadyExistsException
| Inheritance | Yiisoft\Rbac\Exception\ItemAlreadyExistsException » RuntimeException |
|---|
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Rbac\Exception\ItemAlreadyExistsException |
Method Details
| public mixed __construct ( Yiisoft\Rbac\Item $item, integer $code = 0, Throwable|null $previous = null ) | ||
| $item | Yiisoft\Rbac\Item | |
| $code | integer | |
| $previous | Throwable|null | |
public function __construct(Item $item, int $code = 0, ?Throwable $previous = null)
{
parent::__construct(
"Role or permission with name \"{$item->getName()}\" already exists.",
$code,
$previous,
);
}
Signup or Login in order to comment.