diff --git a/api/v3/Sms/Send.php b/api/v3/Sms/Send.php index 45b6360..4b77e86 100644 --- a/api/v3/Sms/Send.php +++ b/api/v3/Sms/Send.php @@ -22,7 +22,7 @@ function _civicrm_api3_sms_Send_spec(&$spec) { * @return array API result descriptor * @see civicrm_api3_create_success * @see civicrm_api3_create_error - * @throws API_Exception + * @throws CRM_Core_Exception */ function civicrm_api3_sms_Send($params) { $smsProviderId = array_key_exists('sms_provider_id', $params) ? $params['sms_provider_id'] : NULL; diff --git a/api/v3/Smsinbound/Get.php b/api/v3/Smsinbound/Get.php index c8ab1f6..cf750e1 100644 --- a/api/v3/Smsinbound/Get.php +++ b/api/v3/Smsinbound/Get.php @@ -23,7 +23,7 @@ function _civicrm_api3_smsinbound_Get_spec(&$spec) { * * @see civicrm_api3_create_success * - * @throws API_Exception + * @throws CRM_Core_Exception */ function civicrm_api3_smsinbound_Get($params) { // Run a sanity check on input parameters. @@ -34,7 +34,7 @@ function civicrm_api3_smsinbound_Get($params) { foreach($keys as $key) { if (array_key_exists($key, $options)) { if (!is_numeric($options[$key])) { - throw new API_Exception(E::ts("The %1 option must be numeric.", array(1 => $key)), 'type_error'); + throw new CRM_Core_Exception(E::ts("The %1 option must be numeric.", array(1 => $key)), 'type_error'); } $options[$key] = intval($options[$key]); } diff --git a/api/v3/Smsinbound/Updatestate.php b/api/v3/Smsinbound/Updatestate.php index 271252e..bc22ecf 100644 --- a/api/v3/Smsinbound/Updatestate.php +++ b/api/v3/Smsinbound/Updatestate.php @@ -24,7 +24,7 @@ function _civicrm_api3_smsinbound_Updatestate_spec(&$spec) { * * @see civicrm_api3_create_success * - * @throws API_Exception + * @throws CRM_Core_Exception */ function civicrm_api3_smsinbound_Updatestate($params) { return civicrm_api3_create_success(CRM_Smsinbox_SmsInbound::update_state($params['activity_id'], $params['read_status']), $params, 'SmsInbound', 'Updatestate'); diff --git a/tests/phpunit/CRM/UtilsTest.php b/tests/phpunit/CRM/UtilsTest.php index e108296..b9d658d 100644 --- a/tests/phpunit/CRM/UtilsTest.php +++ b/tests/phpunit/CRM/UtilsTest.php @@ -55,7 +55,7 @@ public function testGetAddressCoordinatesWithException() { CRM_Bedsafe_Utils::getAddressCoordinatesWithException($testContact['id']); $this->fail('This should have asserted.'); } - catch (CiviCRM_API3_Exception $exception) { + catch (CRM_Core_Exception $exception) { $this->assertEquals(0, $exception->getCode()); }