Skip to content

Commit 7d7edd8

Browse files
committed
Performer: Convert DocumentTooDeepException to SDK_DOCUMENT_TOO_DEEP_EXCEPTION
SDK_DOCUMENT_TOO_DEEP_EXCEPTION has now been added to the gRPC definition, as it now also exists in the RFCs and other SDKs for couchbase2 mode. We should handle the different exception that JMV SDKs raise in classic mode (DocumentTooDeepException instead of PathTooDeepException) on the driver-side instead. Change-Id: I2583606ca5172e6d03b541daa9f7656523c1ebe4 Reviewed-on: https://review.couchbase.org/c/couchbase-jvm-clients/+/227766 Reviewed-by: David Nault <[email protected]> Tested-by: Build Bot <[email protected]>
1 parent 8c92a39 commit 7d7edd8

File tree

1 file changed

+1
-2
lines changed
  • core-fit-performer/src/main/java/com/couchbase/client/performer/core/util

1 file changed

+1
-2
lines changed

core-fit-performer/src/main/java/com/couchbase/client/performer/core/util/ErrorUtil.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ private ErrorUtil() {
4848
private static final Map<String, CouchbaseExceptionType> irregular = Map.of(
4949
"DurableWriteReCommitInProgressException", SDK_DURABLE_WRITE_RECOMMIT_IN_PROGRESS_EXCEPTION,
5050
"RequestCanceledException", SDK_REQUEST_CANCELLED_EXCEPTION,
51-
"PathTooDeepException", SDK_PATH_TOO_BIG_EXCEPTION,
52-
"DocumentTooDeepException", SDK_PATH_TOO_DEEP_EXCEPTION
51+
"PathTooDeepException", SDK_PATH_TOO_BIG_EXCEPTION
5352
);
5453

5554
public static @Nullable CouchbaseExceptionType convertException(String simpleClassName) {

0 commit comments

Comments
 (0)