0 follower

Final Class Yiisoft\Rbac\Exception\ItemAlreadyExistsException

InheritanceYiisoft\Rbac\Exception\ItemAlreadyExistsException » RuntimeException

Method Details

Hide inherited methods

__construct() public method

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,
    );
}