APIv3 - Use the Exception rather than the rule
authorColeman Watts <coleman@civicrm.org>
Tue, 15 Nov 2022 15:58:26 +0000 (10:58 -0500)
committerColeman Watts <coleman@civicrm.org>
Tue, 15 Nov 2022 16:02:31 +0000 (11:02 -0500)
commit6e00ea9b532dd9556d9188b4263f2ae137f65003
tree6473a4d36d545f4c8029b7d547755e0deb590367
parent1231d25933119433671fcb00672368617cb13136
APIv3 - Use the Exception rather than the rule

Following up on #19323 this converts APIv3 in Smarty and Ajax to use exceptions instead
of overriding the PEAR exception handler. Now that PEAR throws exceptions there is
no need to do so and it was interfering with try/catch handlers within the api call.
CRM/Core/Smarty/plugins/function.crmAPI.php
CRM/Core/Smarty/plugins/function.crmSetting.php
CRM/Utils/REST.php