Go Driver: How to "catch" transaction errors thrown by apoc.util.validate?

Hello, sorry for the late reply, this fell off my radar.
You can run something like this:

if neo4jErr, ok := err.(*neo4j.Neo4jError); ok {  
   // example raw error is: Neo.ClientError.General.ForbiddenReadOnlyDatabase  
   classification := neo4jErr.Classification() // ClientError  
   category := neo4jErr.Category() // General  
   title := neo4jErr.Title() // ForbiddenReadOnlyDatabase  
   // do something with these
}
1 Like