vmailadmin/app/Exceptions/PermissionException.php

20 lines
355 B
PHP
Raw Normal View History

2020-05-23 15:20:01 +02:00
<?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;
}
}