Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/v3/Sms/Send.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions api/v3/Smsinbound/Get.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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]);
}
Expand Down
2 changes: 1 addition & 1 deletion api/v3/Smsinbound/Updatestate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/CRM/UtilsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down