Jobs setup
This commit is contained in:
15
api/common/Exception/Request/Auth/Unauthorized.php
Normal file
15
api/common/Exception/Request/Auth/Unauthorized.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace ProVM\Common\Exception\Request\Auth;
|
||||
|
||||
use Exception;
|
||||
use Throwable;
|
||||
|
||||
class Unauthorized extends Exception
|
||||
{
|
||||
public function __construct(?Throwable $previous = null)
|
||||
{
|
||||
$message = 'Unauthorized';
|
||||
$code = 401;
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user