Description
When writing some code to look for and create indexes if not available, a QueryException was thrown.
I wrote something to look at the exception
if (ex is QueryException) { |
QueryException qx = ex as QueryException; |
Console.WriteLine($"Query exception message: {qx.Message}; status: {qx.Status}"); |
}
|
that prints out this:
Query exception message: Exception of type 'Couchbase.Query.QueryException' was thrown.; status: Success
Per the sdk-rfc, this should probably have contextual status.
Logs on the server side show:
2020-01-03T11:53:26.521-08:00 [Info] CreateIndex 0 verification/#primary using:GSI exprType:N1QL whereExpr:<ud>()</ud> secExprs:<ud>([])</ud> desc:[] isPrimary:true scheme:SINGLE partitionKeys:<ud>([])</ud> with: - elapsed(11.563µs) err(Index #primary already exists.)
|
But this didn't come through.