Elffuss BraidHub

kikocis/java-driver public

Expose ConnectionException and subclasses.
Changeset83bf2897a22e0d6b6db6639cf36a5c2a6430bf4eb9246c6cdbf4b343d8fac4ef
Authorolim7t <omichallat+github@gmail.com> · 2016-03-22 18:03 +01:00
Committerolim7t <omichallat+github@gmail.com> · 2016-03-22 18:03 +01:00
Parents048a473cdec0

Browse the files at this changeset

3 files changed

modified driver-core/src/main/java/com/datastax/driver/core/ConnectionException.java +5 −1
@@ -17,7 +17,11 @@
1717
1818 import java.net.InetSocketAddress;
1919
20-class ConnectionException extends Exception {
20+/**
21+ * Indicates that a connection to a host has encountered a problem
22+ * and that it should be closed.
23+ */
24+public class ConnectionException extends Exception {
2125
2226 private static final long serialVersionUID = 0;
2327
modified driver-core/src/main/java/com/datastax/driver/core/OperationTimedOutException.java +1 −1
@@ -21,7 +21,7 @@
2121 * Thrown on a client-side timeout, i.e. when the client didn't hear back from the server within
2222 * {@link SocketOptions#getReadTimeoutMillis()}.
2323 */
24-class OperationTimedOutException extends ConnectionException {
24+public class OperationTimedOutException extends ConnectionException {
2525 public OperationTimedOutException(InetSocketAddress address) {
2626 super(address, "Operation timed out");
2727 }
modified driver-core/src/main/java/com/datastax/driver/core/TransportException.java +1 −1
@@ -21,7 +21,7 @@
2121 * A connection exception that has to do with the transport itself, i.e. that
2222 * suggests the node is down.
2323 */
24-class TransportException extends ConnectionException {
24+public class TransportException extends ConnectionException {
2525 private static final long serialVersionUID = 0;
2626
2727 public TransportException(InetSocketAddress address, String msg, Throwable cause) {