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'
ファイルを表示
Open project: efficiently/authority-controller
Public Properties
Public Methods
Method Details
__construct()
public method
public __construct ( $message = null, $action = null, $subject = null, $code, Exception $previous = null ) |
$previous |
Exception |
|
__toString()
public method
getAction()
public method
getDefaultMessage()
public method
getSubject()
public method
setDefaultMessage()
public method
Property Details
$action public_oe property
$defaultMessage public_oe property
$subject public_oe property