Description
The Java demo app using the new 3.0.0 SDK handles errors that may occur when running a N1QL query like this:
QueryResult result = null; |
try { |
result = cluster.query(query);
|
} catch (QueryException e) { |
LOGGER.warn("Query failed with exception: " + e); |
throw new DataRetrievalFailureException("Query error: " + result); |
}
|
We should agree on what the right way to do this is, and implement it for every query call in the demo app.