kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 83bf2897a22e0d6b6db6639cf36a5c2a6430bf4eb9246c6cdbf4b343d8fac4ef |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2016-03-22 18:03 +01:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2016-03-22 18:03 +01:00 |
| Parents | 048a473cdec0 |
3 files changed
modified driver-core/src/main/java/com/datastax/driver/core/ConnectionException.java +5 −1
| @@ -17,7 +17,11 @@ | ||
| 17 | 17 | |
| 18 | 18 | import java.net.InetSocketAddress; |
| 19 | 19 | |
| 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 { | |
| 21 | 25 | |
| 22 | 26 | private static final long serialVersionUID = 0; |
| 23 | 27 |
modified driver-core/src/main/java/com/datastax/driver/core/OperationTimedOutException.java +1 −1
| @@ -21,7 +21,7 @@ | ||
| 21 | 21 | * Thrown on a client-side timeout, i.e. when the client didn't hear back from the server within |
| 22 | 22 | * {@link SocketOptions#getReadTimeoutMillis()}. |
| 23 | 23 | */ |
| 24 | -class OperationTimedOutException extends ConnectionException { | |
| 24 | +public class OperationTimedOutException extends ConnectionException { | |
| 25 | 25 | public OperationTimedOutException(InetSocketAddress address) { |
| 26 | 26 | super(address, "Operation timed out"); |
| 27 | 27 | } |
modified driver-core/src/main/java/com/datastax/driver/core/TransportException.java +1 −1
| @@ -21,7 +21,7 @@ | ||
| 21 | 21 | * A connection exception that has to do with the transport itself, i.e. that |
| 22 | 22 | * suggests the node is down. |
| 23 | 23 | */ |
| 24 | -class TransportException extends ConnectionException { | |
| 24 | +public class TransportException extends ConnectionException { | |
| 25 | 25 | private static final long serialVersionUID = 0; |
| 26 | 26 | |
| 27 | 27 | public TransportException(InetSocketAddress address, String msg, Throwable cause) { |