21 lines
500 B
PHP
21 lines
500 B
PHP
<?php
|
|
|
|
namespace KTXF\Resource\Exceptions;
|
|
|
|
use Exception;
|
|
|
|
/**
|
|
* Exemption for unauthorized access
|
|
*/
|
|
class UnauthorizedException extends Exception {
|
|
|
|
/**
|
|
* @param string $message The exception message
|
|
* @param int $code The exception code
|
|
* @param Exception|null $previous The previous exception
|
|
*/
|
|
public function __construct($message = "Unauthorized access", $code = 0, ?Exception $previous = null) {
|
|
parent::__construct($message, $code, $previous);
|
|
}
|
|
|
|
} |