jenkins-bot has submitted this change and it was merged.

Change subject: MWException -> Exception
......................................................................


MWException -> Exception

Change-Id: I6fb4d2750f57c127580c54229046e4a6aed5a436
---
M OAI.php
M OAIHooks.php
M OAIRepo_body.php
3 files changed, 6 insertions(+), 6 deletions(-)

Approvals:
  MaxSem: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/OAI.php b/OAI.php
index d143e54..7cb12a3 100644
--- a/OAI.php
+++ b/OAI.php
@@ -1,3 +1,3 @@
 <?php
 
-require_once( __DIR__ . '/OAIRepo.php' );
\ No newline at end of file
+require_once( __DIR__ . '/OAIRepo.php' );
diff --git a/OAIHooks.php b/OAIHooks.php
index b9bdb99..e9ff9e4 100644
--- a/OAIHooks.php
+++ b/OAIHooks.php
@@ -96,4 +96,4 @@
                self::updatePage( $id, 'modify' );
                return true;
        }
-}
\ No newline at end of file
+}
diff --git a/OAIRepo_body.php b/OAIRepo_body.php
index 736ef79..1783027 100644
--- a/OAIRepo_body.php
+++ b/OAIRepo_body.php
@@ -86,7 +86,7 @@
                        'YYYY-MM-DD'           => '$1-$2-$3',
                        'YYYY-MM-DDThh:mm:ssZ' => '$1-$2-$3T$4:$5:$6Z' );
                if( !isset( $formats[$granularity] ) ) {
-                       throw new MWException( 'oaiFormatDate given illegal 
output format' );
+                       throw new Exception( 'oaiFormatDate given illegal 
output format' );
                }
                return preg_replace(
                        '/^(....)(..)(..)(..)(..)(..)$/',
@@ -438,7 +438,7 @@
                        break;
                default:
                        # This shouldn't happen
-                       throw new MWException( 'Verb not implemented' );
+                       throw new Exception( 'Verb not implemented' );
                }
        }
 
@@ -689,7 +689,7 @@
                        $this->_db->freeResult( $result );
                        return $row->min;
                } else {
-                       throw new MWException( 'Bogus result.' );
+                       throw new Exception( 'Bogus result.' );
                }
        }
 
@@ -956,7 +956,7 @@
                        $data = $this->renderLSearch();
                        break;
                default:
-                       throw new MWException( 'Unsupported metadata format.' );
+                       throw new Exception( 'Unsupported metadata format.' );
                }
                return "<metadata>\n$data</metadata>\n";
        }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I6fb4d2750f57c127580c54229046e4a6aed5a436
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/OAI
Gerrit-Branch: master
Gerrit-Owner: Ori.livneh <o...@wikimedia.org>
Gerrit-Reviewer: MaxSem <maxsem.w...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to