Skip to content

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