Elgg  Version 3.0
GroupToolGatekeeperException.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Http\Exception;
4 
5 use Throwable;
7 
12 
16  public function __construct(string $message = "", int $code = 0, Throwable $previous = null) {
17  if (!$message) {
18  $message = elgg_echo('groups:tool_gatekeeper');
19  }
20 
21  parent::__construct($message, $code, $previous);
22  }
23 }
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$code
Thrown when one of the gatekeepers prevents access.
Thrown when the requested group tool isn&#39;t enabled for a group.
__construct(string $message="", int $code=0, Throwable $previous=null)
{}