Skip to content

Commit 940f500

Browse files
author
Mark
committed
refactor
1 parent 9560b0a commit 940f500

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ protected Message createMessage(final Request request) throws VPackParserExcepti
132132
return new Message(id, vpack.serialize(request), request.getBody());
133133
}
134134

135-
protected Collection<Chunk> buildChunks(final Message message) throws IOException {
135+
protected Collection<Chunk> buildChunks(final Message message) {
136136
final Collection<Chunk> chunks = new ArrayList<Chunk>();
137137
final VPackSlice head = message.getHead();
138138
int size = head.getByteSize();

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
package com.arangodb.internal.velocystream;
2222

23-
import java.io.IOException;
24-
2523
import javax.net.ssl.SSLContext;
2624

2725
import org.slf4j.Logger;
@@ -123,13 +121,11 @@ public Response execute(final Request request) throws ArangoDBException {
123121
return response;
124122
} catch (final VPackParserException e) {
125123
throw new ArangoDBException(e);
126-
} catch (final IOException e) {
127-
throw new ArangoDBException(e);
128124
}
129125

130126
}
131127

132-
private Message send(final Message message) throws IOException {
128+
private Message send(final Message message) throws ArangoDBException {
133129
if (LOGGER.isDebugEnabled()) {
134130
LOGGER.debug(String.format("Send Message (id=%s, head=%s, body=%s)", message.getId(), message.getHead(),
135131
message.getBody() != null ? message.getBody() : "{}"));

0 commit comments

Comments
 (0)