}
$stmt = $this->dba->select('locks', ['name'], $where);
+ } catch (\Exception $exception) {
+ throw new LockPersistenceException(sprintf('Cannot get lock with prefix %s', $prefix), $exception);
+ }
+ try {
$keys = [];
while ($key = $this->dba->fetch($stmt)) {
array_push($keys, $key['name']);
} else {
$configs = $this->db->select(static::$table_name, ['cat', 'v', 'k'], ['cat' => $cat, 'uid' => $uid]);
}
+ } catch (\Exception $exception) {
+ throw new PConfigPersistenceException(sprintf('Cannot load config category "%s" for user %d', $cat, $uid), $exception);
+ }
+ try {
while ($config = $this->db->fetch($configs)) {
$key = $config['k'];
$value = ValueConversion::toConfigValue($config['v']);
}
}
} catch (\Exception $exception) {
- throw new PConfigPersistenceException(sprintf('Cannot load config category %s for user %d', $cat, $uid), $exception);
+ throw new PConfigPersistenceException(sprintf('Cannot load config category "%s" for user %d', $cat, $uid), $exception);
} finally {
$this->db->close($configs);
}