Skip to content

Commit c4881f0

Browse files
author
michele
committed
bugfix transaction not found in handleGetDocumentExceptions
1 parent ee0e241 commit c4881f0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

β€Žsrc/main/java/com/arangodb/internal/ArangoCollectionAsyncImpl.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ private <T> Function<Throwable, T> handleGetDocumentExceptions(Boolean isCatchEx
123123
if (throwable instanceof CompletionException) {
124124
if (throwable.getCause() instanceof ArangoDBException) {
125125
ArangoDBException arangoDBException = (ArangoDBException) throwable.getCause();
126+
127+
// handle Response: 404, Error: 1655 - transaction not found
128+
if (arangoDBException.getErrorNum() != null && arangoDBException.getErrorNum() == 1655) {
129+
throw (CompletionException) throwable;
130+
}
131+
126132
if ((arangoDBException.getResponseCode() != null && (arangoDBException.getResponseCode() == 404 || arangoDBException.getResponseCode() == 304
127133
|| arangoDBException.getResponseCode() == 412)) && isCatchException) {
128134
return null;

0 commit comments

Comments
 (0)