first commit
This commit is contained in:
15
app/Exceptions/Entities/NotEnoughRightsException.php
Normal file
15
app/Exceptions/Entities/NotEnoughRightsException.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions\Entities;
|
||||
|
||||
use Flugg\Responder\Exceptions\Http\HttpException;
|
||||
|
||||
class NotEnoughRightsException extends HttpException
|
||||
{
|
||||
public function __construct(string $message = 'Not enoughs rights')
|
||||
{
|
||||
$this->status = 403;
|
||||
|
||||
parent::__construct($message);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user