protected DatabaseLockBackend::catchException(\Exception $e)
Act on an exception when semaphore might be stale.
If the table does not yet exist, that's fine, but if the table exists and yet the query failed, then the semaphore is stale and the exception needs to propagate.
$e: The exception.
\Exception
protected function catchException(\Exception $e) { if ($this->database->schema()->tableExists(static::TABLE_NAME)) { throw $e; } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Lock!DatabaseLockBackend.php/function/DatabaseLockBackend::catchException/8.1.x