Neuron-PHP

AuthorizationException extends CmsException
in package

Exception thrown when authorization fails

Table of Contents

Properties

$userMessage  : string

Methods

__construct()  : mixed
getUserMessage()  : string
Get user-friendly error message safe for display
shouldLog()  : bool
Authorization failures should always be logged

Properties

Methods

__construct()

public __construct(string $action[, string|null $resource = null ][, int $code = 0 ][, Throwable|null $previous = null ]) : mixed
Parameters
$action : string

Action being attempted

$resource : string|null = null

Resource being accessed

$code : int = 0

Error code

$previous : Throwable|null = null

Previous exception

getUserMessage()

Get user-friendly error message safe for display

public getUserMessage() : string
Return values
string

shouldLog()

Authorization failures should always be logged

public shouldLog() : bool
Return values
bool

        
On this page

Search results