Prooph\ServiceBus\Plugin\Guard\UnauthorizedException::__construct PHP Method

__construct() public method

UnauthorizedException constructor.
public __construct ( string $messageName = '' )
$messageName string
    public function __construct($messageName = '')
    {
        if (!empty($messageName)) {
            $this->message = 'You are not authorized to access the resource "' . $messageName . '"';
        }
    }
UnauthorizedException