}
try {
$link = new SqliteDb($db);
- } catch (Exception $ex) {
+ } catch (\Exception $ex) {
$connection->error = $ex->getMessage();
return false;
}
$options[\PDO::ATTR_STATEMENT_CLASS] = array('Adminer\PdoDbStatement');
try {
$this->pdo = new \PDO($dsn, $username, $password, $options);
- } catch (Exception $ex) {
+ } catch (\Exception $ex) {
auth_error(h($ex->getMessage()));
}
$this->server_info = @$this->pdo->getAttribute(\PDO::ATTR_SERVER_VERSION);
function executeDbCommand($db, $command) {
try {
return $this->_link->executeCommand($db, new \MongoDB\Driver\Command($command));
- } catch (Exception $e) {
+ } catch (\Exception $e) {
$this->error = $e->getMessage();
return array();
}
$results = $this->_link->executeBulkWrite($namespace, $bulk);
$this->affected_rows = $results->$counter();
return true;
- } catch (Exception $e) {
+ } catch (\Exception $e) {
$this->error = $e->getMessage();
return false;
}
$skip = $page * $limit;
try {
return new Result($this->conn->_link->executeQuery($this->conn->_db_name . ".$table", new \MongoDB\Driver\Query($where, array('projection' => $select, 'limit' => $limit, 'skip' => $skip, 'sort' => $sort))));
- } catch (Exception $e) {
+ } catch (\Exception $e) {
$this->conn->error = $e->getMessage();
return false;
}