Documentation

AccessDeniedException extends RuntimeException
in package

AccessDeniedException is thrown when the account has not the required role.

Tags
author

Fabien Potencier fabien@symfony.com

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

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>

setAttributes()

public setAttributes(array<string|int, mixed>|string $attributes) : mixed
Parameters
$attributes : array<string|int, mixed>|string

        
On this page

Search results