Skip to content

New ConnectionAcquisitionTimeoutError instead of ClientError - #1169

Merged
robsdedude merged 3 commits into
neo4j:6.xfrom
robsdedude:errors/driver-error-on-connection-acquitision-timeout
May 15, 2025
Merged

robsdedude merged 3 commits into
neo4j:6.xfrom
robsdedude:errors/driver-error-on-connection-acquitision-timeout

Conversation

@robsdedude

Copy link
Copy Markdown
Member

Raise a new ConnectionAcquisitionTimeoutError (subclass of DriverError) instead of ClientError (subclass of Neo4jError) when the connection acquisition timeout is exceeded.

This improves the differentiation between DriverError for client-side errors and Neo4jError for server-side errors.

@AndyHeap-NeoTech AndyHeap-NeoTech left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread src/neo4j/_async/io/_pool.py Resolved
Comment thread src/neo4j/_sync/io/_pool.py Resolved
@robsdedude
robsdedude force-pushed the errors/driver-error-on-connection-acquitision-timeout branch from 13ba48a to 8a1ab22 Compare May 15, 2025 09:59
AndyHeap-NeoTech and others added 2 commits May 15, 2025 11:59
@robsdedude
robsdedude enabled auto-merge (squash) May 15, 2025 11:52
@robsdedude
robsdedude merged commit 7154681 into neo4j:6.x May 15, 2025
@robsdedude
robsdedude deleted the errors/driver-error-on-connection-acquitision-timeout branch May 15, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants