vmailadmin/app/Exceptions/PermissionException.php
2020-05-23 15:20:01 +02:00

20 lines
355 B
PHP

<?php
namespace App\Exceptions;
use Exception;
class PermissionException extends Exception
{
protected $role;
public function __construct($role)
{
parent::__construct("Current user does not have role '{$role}' on this domain");
$this->role = $role;
}
public function role()
{
return $this->role;
}
}