Add new \Civi\Exception\DBQueryException & throw that rather than a PEAR_ERROR
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 21 Feb 2023 02:13:46 +0000 (15:13 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 26 Feb 2023 20:46:51 +0000 (09:46 +1300)
commitba964907b92666d9e8250a4475a930e964ac6857
tree93731d496e53c764d1f7c80a5f3d89f36e31fcd7
parent47fe109e6a3bcc1e788f9ff9894da0e8e2202f1e
Add new \Civi\Exception\DBQueryException & throw that rather than a PEAR_ERROR

Fix api v3 handling of exception to not include the exception (fails on print_r())

m
CRM/Core/DAO.php
CRM/Core/Error.php
CRM/Core/Exception.php
Civi/API/Kernel.php
Civi/Core/Exception/DBQueryException.php [new file with mode: 0644]
tests/phpunit/CRM/Core/ErrorTest.php