Merge pull request #21562 from jitendrapurohit/notify-user
[civicrm-core.git] / CRM / Core / ClassLoader.php
index 18e608aca10ff819f6f2c98c7f988d2fcf37476b..688470b9d9b70a2f2758acf75f6691b93aa5354e 100644 (file)
@@ -198,7 +198,7 @@ class CRM_Core_ClassLoader {
    * @param $class
    */
   public function loadClass($class) {
-    if ($class === 'CiviCRM_API3_Exception') {
+    if ($class === 'CiviCRM_API3_Exception' || $class === 'API_Exception') {
       //call internal error class api/Exception first
       // allow api/Exception class call external error class
       // CiviCRM_API3_Exception