Skip to content

Commit c4414cc

Browse files
committed
fix deprecation, but compatible to 3.0
1 parent 29e9474 commit c4414cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/arangodb/springframework/core/convert/resolver/DefaultResolverFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public <A extends Annotation> Optional<ReferenceResolver<A>> getReferenceResolve
5050
return Optional.of((ReferenceResolver<A>) new RefResolver(template.getObject(), transactionBridge.getIfUnique()));
5151
}
5252
} catch (final Exception e) {
53-
throw new ArangoDBException(e);
53+
throw ArangoDBException.of(e);
5454
}
5555
return Optional.empty();
5656
}
@@ -76,7 +76,7 @@ public <A extends Annotation> Optional<RelationResolver<A>> getRelationResolver(
7676
return Optional.of((RelationResolver<A>) new RelationsResolver(template.getObject(), transactionBridge.getIfUnique()));
7777
}
7878
} catch (final Exception e) {
79-
throw new ArangoDBException(e);
79+
throw ArangoDBException.of(e);
8080
}
8181
return Optional.empty();
8282
}

0 commit comments

Comments
 (0)