Skip to content

Commit 8f53764

Browse files
author
chengyitian
committed
AJ-639: modify log info when DBConnection has not connect;
1 parent f3b5ca9 commit 8f53764

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/com/xxdb/streaming/cep/EventSender.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ public EventSender(List<EventScheme> eventSchemes, List<String> eventTimeKeys, L
2121

2222
public void connect(DBConnection conn, String tableName) throws IOException {
2323
if (this.isConnected)
24-
throw new RuntimeException("This eventSender is already connected");
24+
throw new RuntimeException("This eventSender is already connected.");
25+
26+
if (!conn.isConnected())
27+
throw new RuntimeException("The connection to dolphindb has not been established.");
2528

2629
this.conn = conn;
2730

0 commit comments

Comments
 (0)