File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
hugegraph-loader/src/test/java/org/apache/hugegraph/loader/test/functional Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1717
1818package org .apache .hugegraph .loader .test .functional ;
1919
20- import org .apache .hugegraph .loader .exception .LoadException ;
21-
2220import java .sql .Connection ;
2321import java .sql .DriverManager ;
2422import java .sql .SQLException ;
2523import java .sql .Statement ;
2624
25+ import org .apache .hugegraph .loader .exception .LoadException ;
26+
2727public class DBUtil {
2828
2929 private final String driver ;
@@ -47,10 +47,10 @@ public void connect() {
4747 this .conn = DriverManager .getConnection (url , this .user , this .pass );
4848 } catch (ClassNotFoundException e ) {
4949 throw new LoadException ("Invalid driver class '%s'" ,
50- e , this .driver );
50+ e , this .driver );
5151 } catch (SQLException e ) {
5252 throw new LoadException ("Failed to connect database via '%s'" ,
53- e , this .url );
53+ e , this .url );
5454 }
5555 }
5656
@@ -63,10 +63,10 @@ public void connect(String database) {
6363 this .conn = DriverManager .getConnection (url , this .user , this .pass );
6464 } catch (ClassNotFoundException e ) {
6565 throw new LoadException ("Invalid driver class '%s'" ,
66- e , this .driver );
66+ e , this .driver );
6767 } catch (SQLException e ) {
6868 throw new LoadException ("Failed to connect database via '%s'" ,
69- e , this .url );
69+ e , this .url );
7070 }
7171 }
7272
You can’t perform that action at this time.
0 commit comments