for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Wikibase\DataModel\Services\Lookup;
use Exception;
use RuntimeException;
use Wikibase\DataModel\Entity\EntityId;
/**
* @since 2.0
*
* @license GPL-2.0-or-later
* @author Addshore
*/
class EntityRedirectLookupException extends RuntimeException {
* @var EntityId
private $entityId;
* @param EntityId $entityId
* @param string|null $message
* @param Exception|null $previous
public function __construct( EntityId $entityId, $message = null, Exception $previous = null ) {
$this->entityId = $entityId;
parent::__construct(
$message ?: 'Entity redirect lookup failed for: ' . $entityId,
0,
$previous
);
}
* @return EntityId
public function getEntityId() {
return $this->entityId;