Skip to content
Snippets Groups Projects
Commit 01432442 authored by mattwire's avatar mattwire
Browse files

Replace deprecated exception

parent 19e5b18a
No related branches found
No related tags found
No related merge requests found
......@@ -28,8 +28,6 @@ class CRM_Mjwshared_Check {
*
* @param array $messages
*
* @throws \API_Exception
* @throws \Civi\API\Exception\UnauthorizedException
*/
public function __construct($messages) {
$this->messages = $messages;
......@@ -37,7 +35,6 @@ class CRM_Mjwshared_Check {
/**
* @return array
* @throws \API_Exception
* @throws \CRM_Core_Exception
* @throws \Civi\API\Exception\UnauthorizedException
*/
......@@ -188,7 +185,6 @@ class CRM_Mjwshared_Check {
/**
* We don't support "Separate Membership Payment" configuration
*
* @throws \API_Exception
* @throws \CRM_Core_Exception
* @throws \Civi\API\Exception\UnauthorizedException
*/
......@@ -280,7 +276,6 @@ class CRM_Mjwshared_Check {
}
/**
* @throws \API_Exception
* @throws \CRM_Core_Exception
* @throws \Civi\API\Exception\UnauthorizedException
*/
......
......@@ -32,12 +32,12 @@ function civicrm_api3_mjwpayment_notificationretry($params) {
$paymentProcessorType = civicrm_api3('PaymentProcessor', 'getsingle', ['id' => $paymentProcessorId]);
}
else {
throw new API_Exception('Unsupported payment processor');
throw new CRM_Core_Exception('Unsupported payment processor');
}
$processorClassName = "CRM_Core_{$paymentProcessorType['class_name']}";
if (!method_exists($processorClassName, 'processPaymentNotification')) {
throw new API_Exception('Unsupported payment processor');
throw new CRM_Core_Exception('Unsupported payment processor');
}
$result = FALSE;
......
......@@ -269,7 +269,7 @@ In your IPN code instead of using a `main()` method create two functions:
* Process the given webhook
*
* @return bool
* @throws \API_Exception
* @throws \CRM_Core_Exception
* @throws \Civi\API\Exception\UnauthorizedException
*/
public function processWebhook() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment