Additional uncaught exception thrown while handling exception.

Original

PDOException: SQLSTATE[HY000] [1040] Too many connections in hierarchy_get_repository_type() (line 681 of /data/www/drupal/sites/all/modules/dabar/dabar_modules/dabar_hierarchy/hierarchy.module).

Additional

PDOException: SQLSTATE[HY000] [1040] Too many connections in lock_may_be_available() (line 167 of /data/www/drupal/includes/lock.inc).