Jeroen De Dauw has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/67517


Change subject: Use InvalidArgumentException in SiteLink
......................................................................

Use InvalidArgumentException in SiteLink

Change-Id: Iec580382a2744fc5dd9ba2910411cb6ea9c493aa
---
M DataModel/DataModel/SiteLink.php
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/17/67517/1

diff --git a/DataModel/DataModel/SiteLink.php b/DataModel/DataModel/SiteLink.php
index 7cfc36e..77368cd 100644
--- a/DataModel/DataModel/SiteLink.php
+++ b/DataModel/DataModel/SiteLink.php
@@ -2,7 +2,7 @@
 
 namespace Wikibase;
 
-use MWException;
+use InvalidArgumentException;
 use Site;
 use Sites;
 
@@ -90,11 +90,11 @@
         * @param Site   $site  The site the page link points to
         * @param String $page  The target page's title. This is expected to 
already be normalized.
         *
-        * @throws MWException
+        * @throws InvalidArgumentException
         */
        public function __construct( Site $site, $page ) {
                if ( !is_string( $page ) ) {
-                       throw new MWException( '$page must be a string' );
+                       throw new InvalidArgumentException( '$page must be a 
string' );
                }
 
                $this->site = $site;

-- 
To view, visit https://gerrit.wikimedia.org/r/67517
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iec580382a2744fc5dd9ba2910411cb6ea9c493aa
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to