Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: optimizing ClassNotFoundException error message for MYSQL #2246

Merged
merged 1 commit into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@
} catch (BackendException e) {
String message = "Failed to open schema transaction";
LOG.error("{}", message, e);
throw new HugeException(message);
throw new HugeException(message, e);

Check warning on line 463 in hugegraph-core/src/main/java/org/apache/hugegraph/StandardHugeGraph.java

View check run for this annotation

Codecov / codecov/patch

hugegraph-core/src/main/java/org/apache/hugegraph/StandardHugeGraph.java#L463

Added line #L463 was not covered by tests
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
// Register JDBC driver
Class.forName(driverName);
} catch (ClassNotFoundException e) {
throw new BackendException("Invalid driver class '%s'",
throw new BackendException("Failed to register JDBC driver. Class '%s' not found. Please check if the MySQL driver package is available.",

Check warning on line 286 in hugegraph-mysql/src/main/java/org/apache/hugegraph/backend/store/mysql/MysqlSessions.java

View check run for this annotation

Codecov / codecov/patch

hugegraph-mysql/src/main/java/org/apache/hugegraph/backend/store/mysql/MysqlSessions.java#L286

Added line #L286 was not covered by tests
driverName);
}
return DriverManager.getConnection(url, username, password);
Expand Down
Loading