code: private static <X extends CouchbaseException, R extends CouchbaseResponse> X addDetails(X ex, R r) {
          return Utils.addDetails(ex, r);
      }
docs: Helper method to encapsulate the logic of enriching the exception with detailed status info.