15 lines
317 B
PHP
15 lines
317 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Core\Exceptions;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 401 Unauthorized Exception
|
||
|
|
*/
|
||
|
|
class UnauthorizedException extends \Exception
|
||
|
|
{
|
||
|
|
public function __construct(string $message = "Unauthorized access", int $code = 401, ?\Throwable $previous = null)
|
||
|
|
{
|
||
|
|
parent::__construct($message, $code, $previous);
|
||
|
|
}
|
||
|
|
}
|