Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataModel\Services\Lookup\UnresolvedEntityRedirectException Class Reference

Exception indicating that an attempt was made to access a redirected EntityId without resolving the redirect first. More...

+ Inheritance diagram for Wikibase\DataModel\Services\Lookup\UnresolvedEntityRedirectException:
+ Collaboration diagram for Wikibase\DataModel\Services\Lookup\UnresolvedEntityRedirectException:

Public Member Functions

 __construct (EntityId $entityId, EntityId $redirectTargetId, $message=null, Exception $previous=null)
 
 getRedirectTargetId ()
 Returns the ID of the entity referenced by the redirect.
 
- Public Member Functions inherited from Wikibase\DataModel\Services\Lookup\EntityLookupException
 __construct (EntityId $entityId, $message=null, Exception $previous=null)
 
 getEntityId ()
 

Private Attributes

 $redirectTargetId
 

Detailed Description

Exception indicating that an attempt was made to access a redirected EntityId without resolving the redirect first.

Since
1.1
Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Services\Lookup\UnresolvedEntityRedirectException::__construct ( EntityId $entityId,
EntityId $redirectTargetId,
$message = null,
Exception $previous = null )
Parameters
EntityId$entityId
EntityId$redirectTargetIdThe ID of the target Entity of the redirect
string | null$messageAdded in 3.1
Exception | null$previousAdded in 3.1

Member Function Documentation

◆ getRedirectTargetId()

Wikibase\DataModel\Services\Lookup\UnresolvedEntityRedirectException::getRedirectTargetId ( )

Returns the ID of the entity referenced by the redirect.

Returns
EntityId

Member Data Documentation

◆ $redirectTargetId

Wikibase\DataModel\Services\Lookup\UnresolvedEntityRedirectException::$redirectTargetId
private

The documentation for this class was generated from the following file: