Skip to content

Commit

Permalink
Delegate UnknownHostException as RuntimeException (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafa sancar koyunlu authored and asimarslan committed Apr 20, 2017
1 parent 88e8feb commit fabf95f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.hazelcast.annotation.Codec;
import com.hazelcast.client.impl.protocol.ClientMessage;
import com.hazelcast.client.impl.protocol.util.ParameterUtil;
import com.hazelcast.core.HazelcastException;
import com.hazelcast.nio.Address;
import com.hazelcast.nio.Bits;

Expand All @@ -36,7 +37,7 @@ public static Address decode(ClientMessage clientMessage) {
try {
return new Address(host, port);
} catch (UnknownHostException e) {
return null;
throw new HazelcastException(e);
}
}

Expand Down

0 comments on commit fabf95f

Please sign in to comment.