Code example for SQLNonTransientConnectionException

0
                    String cypherPath = discovery.getCypherPath();
 
                    cypherResource = resources.getCypherResource(cypherPath);
                } catch (IOException e)
                { 
                    throw new SQLNonTransientConnectionException(e);
                } 
    } 
 
    public ExecutionResult executeQuery(String query, Map<String, Object> parameters) throws SQLException {
        final ClientResource resource = new ClientResource(cypherResource);
        try { 
            ObjectNode queryNode = queryParameter(query, parameters);
            Representation rep = resource.post(queryNode.toString());
            rep.setCharacterSet(new CharacterSet("UTF-8"));
            JsonNode node = mapper.readTree(rep.getReader());
            final ResultParser parser = new ResultParser(node);
            return new ExecutionResult(parser.getColumns(), parser.streamData());
        } catch (ResourceException e) {
            String msg=extractErrorMessage(resource);