for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* _ __ __ _____ _____ ___ ____ _____
* | | / // // ___//_ _// || __||_ _|
* | |/ // /(__ ) / / / /| || | | |
* |___//_//____/ /_/ /_/ |_||_| |_|
* @link https://vistart.me/
* @copyright Copyright (c) 2016 - 2017 vistart
* @license https://vistart.me/license/
*/
namespace rhosocial\organization\exceptions;
use Yii;
use yii\web\UnauthorizedHttpException;
* Class UnauthorizedManageProfileException
* @package rhosocial\organization\exceptions
* @version 1.0
* @author vistart <[email protected]>
class UnauthorizedManageProfileException extends UnauthorizedHttpException
{
* Constructor.
* @param int $code error code
* @param \Exception $previous The previous exception used for the exception chaining.
public function __construct($code = 0, \Exception $previous = null)
parent::__construct(Yii::t('organization', 'You do not have permission to manage the profile of this organization / department.'), $code, $previous);
}
public function getName()
return 'UnauthorizedManageProfileException';