I’m using the Java SDK to connect to Couchbase and I have a question regarding error handling of N1QL queries.
Bucket.query() to obtain a
N1qlQueryResult. According to the docs,
it is also important to check the finalSuccess() method as well as to check the errors() method since it is possible that errors during streaming may come up.
errors() returns a list of JSON objects and the javadocs just say this:
A list of errors or warnings encountered while executing the query.
My question is, where can I learn more about the format of the returned JSON objects? I would like to know what fields it can contain and how to distinguish between errors and warnings at least.
Thanks in advance!