This repository was archived by the owner on Sep 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/main/java/com/arangodb/tinkerpop/gremlin/client Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 2121import com .arangodb .tinkerpop .gremlin .persistence .EdgeData ;
2222import com .arangodb .tinkerpop .gremlin .persistence .VertexData ;
2323import com .arangodb .tinkerpop .gremlin .structure .*;
24+ import org .apache .tinkerpop .gremlin .process .traversal .util .TraversalInterruptedException ;
2425import org .apache .tinkerpop .gremlin .structure .Direction ;
2526import org .apache .tinkerpop .gremlin .structure .Graph ;
2627import org .slf4j .Logger ;
@@ -76,8 +77,14 @@ private ArangoDBExceptions() {
7677 * @param ex the ex
7778 * @return The ArangoDBClientException
7879 */
79-
80+ // FIXME: match errors on code and error num instead of pattern matching on message string
8081 public static ArangoDBGraphException getArangoDBException (ArangoDBException ex ) {
82+ if (ex .getCause () instanceof InterruptedException ) {
83+ TraversalInterruptedException ie = new TraversalInterruptedException ();
84+ ie .initCause (ex );
85+ throw ie ;
86+ }
87+
8188 String errorMessage = ex .getMessage ();
8289 Matcher m = ERROR_CODE .matcher (errorMessage );
8390 if (m .matches ()) {
You can’t perform that action at this time.
0 commit comments