Skip to content

Commit 2c01b89

Browse files
authored
Merge pull request #77 from colemanw/updateException
Replace reference to deprecated exception class
2 parents c9d41b5 + 2703699 commit 2c01b89

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

percentagepricesetfield.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ function _percentagepricesetfield_rectify_price_options($field_values) {
719719
)
720720
);
721721
}
722-
catch (CiviCRM_API3_Exception $e) {
722+
catch (CRM_Core_Exception $e) {
723723
$error = $e->getMessage();
724724
CRM_Core_Error::fatal(ts('Percentage Price Set Field: fatal error (on line %1) while rectifying price options: %2', array(1 => __LINE__, 2 => $error)));
725725
}
@@ -733,7 +733,7 @@ function _percentagepricesetfield_rectify_price_options($field_values) {
733733
)
734734
);
735735
}
736-
catch (CiviCRM_API3_Exception $e) {
736+
catch (CRM_Core_Exception $e) {
737737
$error = $e->getMessage();
738738
CRM_Core_Error::fatal(ts('Percentage Price Set Field: fatal error (on line %1) while rectifying price options: %2', array(1 => __LINE__ . "|{$value['id']}", 2 => $error)));
739739
}
@@ -752,7 +752,7 @@ function _percentagepricesetfield_rectify_price_options($field_values) {
752752
)
753753
);
754754
}
755-
catch (CiviCRM_API3_Exception $e) {
755+
catch (CRM_Core_Exception $e) {
756756
$error = $e->getMessage();
757757
CRM_Core_Error::fatal(ts('Percentage Price Set Field: fatal error (on line %1) while rectifying price options: %2', array(1 => __LINE__, 2 => $error)));
758758
}
@@ -1083,7 +1083,7 @@ function _percentagepricesetfield_get_field_value($field_id) {
10831083
)
10841084
);
10851085
}
1086-
catch (CiviCRM_API3_Exception $e) {
1086+
catch (CRM_Core_Exception $e) {
10871087
CRM_Core_Error::debug_log_message('API Error in get PriceFieldValue: ' . $e->getMessage());
10881088
return '';
10891089
}

0 commit comments

Comments
 (0)