Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-1367

agree on correct pattern for detecting/handling errors after query call

    XMLWordPrintable

Details

    • Improvement
    • Status: New
    • Major
    • Resolution: Unresolved
    • 3.0.0
    • None
    • N1QL, Query
    • None
    • 1

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          There are no comments yet on this issue.

          People

            david.nault David Nault
            johan.larson Johan Larson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty