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