Skip to content

Commit bfe49f9

Browse files
author
mpv1989
committed
fixed exception handling in Connection (issue #110)
1 parent 65cc2a5 commit bfe49f9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
v4.1.11 (2017-03-xx)
22
---------------------------
33
* added convenience methods (ArangoDatabase.arango(), ArangoCollection.db(), ArangoGraph.db())
4+
* fixed exception handling in Connection (issue #110)
45

56
v4.1.10 (2017-02-22)
67
---------------------------

src/main/java/com/arangodb/internal/velocystream/Connection.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ private synchronized void sendProtocolHeader() throws IOException {
186186
outputStream.flush();
187187
}
188188

189-
protected synchronized void writeIntern(final Message message, final Collection<Chunk> chunks) {
189+
protected synchronized void writeIntern(final Message message, final Collection<Chunk> chunks)
190+
throws ArangoDBException {
190191
for (final Chunk chunk : chunks) {
191192
try {
192193
if (LOGGER.isDebugEnabled()) {
@@ -209,7 +210,7 @@ protected synchronized void writeIntern(final Message message, final Collection<
209210
}
210211
outputStream.flush();
211212
} catch (final IOException e) {
212-
throw new RuntimeException(e);
213+
throw new ArangoDBException(e);
213214
}
214215
}
215216
}

0 commit comments

Comments
 (0)