Skip to content

Cleanup error codes #228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 7, 2017
Merged

Cleanup error codes #228

merged 3 commits into from
Apr 7, 2017

Conversation

lutovich
Copy link
Contributor

@lutovich lutovich commented Apr 6, 2017

PR makes sure direct and routing driver throw exceptions with correct error codes. Direct driver throws errors with code ServiceUnavailable on connection failures. Routing driver throws errors with code ServiceUnavailable only when rediscovery fails or no servers are available. It also throws errors with code SessionExpired on connection failures.

lutovich added 3 commits April 6, 2017 13:46
This commit makes sure direct and routing driver throw exceptions with correct
error codes. Direct driver throws errors with code `ServiceUnavailable` on
connection failures. Routing driver throws errors with code
`ServiceUnavailable` only when rediscovery fails or no servers are available.
It also throws errors with code `SessionExpired` on connection failures.
This commit introduces a dedicated named configuration class for
`NodeChannel` and `WebSocketChannel`. It encapsulates information
needed to establish a connection and logic of extracting values
from the user-defined driver configuration.
@lutovich lutovich mentioned this pull request Apr 6, 2017
@zhenlineo zhenlineo merged commit b806db6 into neo4j:1.2 Apr 7, 2017
@lutovich lutovich deleted the 1.2-error-codes branch April 7, 2017 12:47
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