Skip to:
The AnalyticClient calls ShouldRetry on the analytics result if a failure is detected, which has a switch statement which defaults to a CouchbaseException. This makes nearly every error fail with the wrong exception type.
https://github.com/couchbase/couchbase-net-client/blob/master/src/Couchbase/Analytics/AnalyticsClient.cs#L105
https://github.com/couchbase/couchbase-net-client/blob/master/src/Couchbase/Analytics/AnalyticsResultBase.cs#L47-L75
The AnalyticClient calls ShouldRetry on the analytics result if a failure is detected, which has a switch statement which defaults to a CouchbaseException. This makes nearly every error fail with the wrong exception type.
https://github.com/couchbase/couchbase-net-client/blob/master/src/Couchbase/Analytics/AnalyticsClient.cs#L105
https://github.com/couchbase/couchbase-net-client/blob/master/src/Couchbase/Analytics/AnalyticsResultBase.cs#L47-L75