AuthorizationException
extends Exception
in package
Exception thrown when an authenticated user lacks the required permissions
Used by AuthManager::requireAdmin() when a user is not an administrator. HTTP status code: 403 Forbidden
Tags
Table of Contents
Methods
- __construct() : mixed
Methods
__construct()
public
__construct([string $message = 'Access denied' ][, int $code = 403 ][, Throwable|null $previous = null ]) : mixed
Parameters
- $message : string = 'Access denied'
-
Error message
- $code : int = 403
-
HTTP status code (default: 403)
- $previous : Throwable|null = null
-
Previous exception for chaining