Adamw has uploaded a new change for review.
https://gerrit.wikimedia.org/r/76840
Change subject: throw MWException
......................................................................
throw MWException
Change-Id: Ic0e904d6bdba8b1e07dc9fc1760860f92a862556
---
M globalcollect_gateway/globalcollect.adapter.php
1 file changed, 4 insertions(+), 4 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface
refs/changes/40/76840/1
diff --git a/globalcollect_gateway/globalcollect.adapter.php
b/globalcollect_gateway/globalcollect.adapter.php
index 44edaf0..2814e8f 100644
--- a/globalcollect_gateway/globalcollect.adapter.php
+++ b/globalcollect_gateway/globalcollect.adapter.php
@@ -1043,7 +1043,7 @@
* - These may need to move to the parent class
*
* @param string $payment_method Payment methods contain
payment submethods
- * @throws Exception
+ * @throws MWException
*/
public function getPaymentMethodMeta( $payment_method ) {
@@ -1053,7 +1053,7 @@
}
else {
$message = 'The payment method [ ' . $payment_method .
' ] was not found.';
- throw new Exception( $message );
+ throw new MWException( $message );
}
}
@@ -1065,7 +1065,7 @@
*
* @param string $payment_submethod Payment submethods are
mapped to paymentproductid
* @param array $options
- * @throws Exception
+ * @throws MWException
*/
public function getPaymentSubmethodMeta( $payment_submethod, $options =
array() ) {
@@ -1088,7 +1088,7 @@
}
else {
$message = 'The payment submethod [ ' .
$payment_submethod . ' ] was not found.';
- throw new Exception( $message );
+ throw new MWException( $message );
}
}
--
To view, visit https://gerrit.wikimedia.org/r/76840
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic0e904d6bdba8b1e07dc9fc1760860f92a862556
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Adamw <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits