diff --git a/hugegraph-core/src/main/java/com/baidu/hugegraph/task/TaskCallable.java b/hugegraph-core/src/main/java/com/baidu/hugegraph/task/TaskCallable.java index 11f75a6df8..bb21ac8554 100644 --- a/hugegraph-core/src/main/java/com/baidu/hugegraph/task/TaskCallable.java +++ b/hugegraph-core/src/main/java/com/baidu/hugegraph/task/TaskCallable.java @@ -126,15 +126,6 @@ protected void save() { } } - private static boolean needSaveWithEx(String message) { - for (String error : ERROR_MESSAGES) { - if (message.contains(error)) { - return true; - } - } - return false; - } - protected void graph(HugeGraph graph) { this.graph = graph; } @@ -165,6 +156,15 @@ public static TaskCallable fromClass(String className) { } } + private static boolean needSaveWithEx(String message) { + for (String error : ERROR_MESSAGES) { + if (message.contains(error)) { + return true; + } + } + return false; + } + public static TaskCallable empty(Exception e) { return new TaskCallable() { @Override