PHP Class Efficiently\AuthorityController\Exceptions\AccessDenied

This usually happens within a call to ControllerAdditions::authorize() but can be raised manually. throw new Efficiently\AuthorityController\Exceptions\AccessDenied('Not authorized!', 'read', 'Product'); $exception->getMessage(); //-> "Not authorized!" $exception->action; //-> 'read' $exception->subject; //-> 'Product'
Inheritance: extends Exception
Mostrar archivo Open project: efficiently/authority-controller

Public Properties

Property Type Description
$action
$defaultMessage
$subject

Public Methods

Method Description
__construct ( $message = null, $action = null, $subject = null, $code, Exception $previous = null )
__toString ( )
getAction ( )
getDefaultMessage ( )
getSubject ( )
setDefaultMessage ( $value = null )

Method Details

__construct() public method

public __construct ( $message = null, $action = null, $subject = null, $code, Exception $previous = null )
$previous Exception

__toString() public method

public __toString ( )

getAction() public method

public getAction ( )

getDefaultMessage() public method

public getDefaultMessage ( )

getSubject() public method

public getSubject ( )

setDefaultMessage() public method

public setDefaultMessage ( $value = null )

Property Details

$action public_oe property

public $action

$defaultMessage public_oe property

public $defaultMessage

$subject public_oe property

public $subject