AccessDeniedException
extends RuntimeException
in package
AccessDeniedException is thrown when the account has not the required role.
Tags
Table of Contents
- $attributes : mixed
- $subject : mixed
- __construct() : mixed
- getAttributes() : array<string|int, mixed>
- getSubject() : mixed
- setAttributes() : mixed
- setSubject() : mixed
Properties
$attributes
private
mixed
$attributes
= []
$subject
private
mixed
$subject
Methods
__construct()
public
__construct([string $message = 'Access Denied.' ][, Throwable $previous = null ]) : mixed
Parameters
- $message : string = 'Access Denied.'
- $previous : Throwable = null
Return values
mixed —getAttributes()
public
getAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed> —getSubject()
public
getSubject() : mixed
Return values
mixed —setAttributes()
public
setAttributes(array<string|int, mixed>|string $attributes) : mixed
Parameters
- $attributes : array<string|int, mixed>|string
Return values
mixed —setSubject()
public
setSubject(mixed $subject) : mixed
Parameters
- $subject : mixed