neo4j / neo4j-dotnet-driver

Neo4j Bolt driver for .NET
Apache License 2.0
226 stars 69 forks source link

Refactor generation of exceptions from code strings #757

Closed RichardIrons-neo4j closed 8 months ago

RichardIrons-neo4j commented 9 months ago

This PR changes how exceptions are generated from error codes. Now exceptions that inherit from Neo4jException can be marked with the ErrorCode attribute, which allows the code that causes the exception to be specified. This type of exception will then automatically be thrown when that error code is received from the server.