Skip to content

Commit 0653061

Browse files
exaby73transistive
authored andcommitted
refactor: Remove unused method
1 parent 733f278 commit 0653061

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/Bolt/BoltUnmanagedTransaction.php

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -176,25 +176,6 @@ public function runStatements(iterable $statements): CypherList
176176
return new CypherList($tbr);
177177
}
178178

179-
/**
180-
* @throws Neo4jException
181-
*/
182-
private function handleMessageException(Neo4jException $e): never
183-
{
184-
$exception = $e->getErrors()[0];
185-
if (!($exception->getClassification() === 'ClientError' && $exception->getCategory() === 'Request')) {
186-
$this->connection->reset();
187-
}
188-
if (!$this->isFinished() && in_array(
189-
$exception->getClassification(),
190-
TransactionHelper::ROLLBACK_CLASSIFICATIONS
191-
)) {
192-
$this->state = TransactionState::ROLLED_BACK;
193-
}
194-
195-
throw $e;
196-
}
197-
198179
public function isRolledBack(): bool
199180
{
200181
return $this->state === TransactionState::ROLLED_BACK || $this->state === TransactionState::TERMINATED;

0 commit comments

Comments
 (0)