Elgg  Version 3.0
EntityNotFoundException.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg;
4 
5 use Throwable;
6 
11 
15  public function __construct(string $message = "", int $code = 0, Throwable $previous = null) {
16  if (!$message) {
17  $message = elgg_echo('EntityNotFoundException');
18  }
19  if (!$code) {
21  }
22  parent::__construct($message, $code, $previous);
23  }
24 }
Generic HTTP exception.
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
Thrown when entity can not be found.
$code
Configuration exception.
__construct(string $message="", int $code=0, Throwable $previous=null)
{}
const ELGG_HTTP_NOT_FOUND
Definition: constants.php:83