diff --git a/src/Operation/Replace.php b/src/Operation/Replace.php index 32213d2e..0bcf3fbc 100644 --- a/src/Operation/Replace.php +++ b/src/Operation/Replace.php @@ -93,7 +93,7 @@ public function execute(Connection $connection, IDataSet $dataSet) $insertStatement->execute($insertArgs); } - } catch (Exception $e) { + } catch (\Exception $e) { throw new Exception( $this->operationName, $query, $args, $table, $e->getMessage() ); diff --git a/src/Operation/RowBased.php b/src/Operation/RowBased.php index 504edb62..f14d7c1f 100644 --- a/src/Operation/RowBased.php +++ b/src/Operation/RowBased.php @@ -91,7 +91,7 @@ public function execute(Connection $connection, IDataSet $dataSet) try { $statement->execute($args); - } catch (Exception $e) { + } catch (\Exception $e) { throw new Exception( $this->operationName, $query, $args, $table, $e->getMessage() );