Skip to content

Commit 17545ad

Browse files
committed
Expose ConnectionException and subclasses.
1 parent 69f7df0 commit 17545ad

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

driver-core/src/main/java/com/datastax/driver/core/ConnectionException.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -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

driver-core/src/main/java/com/datastax/driver/core/OperationTimedOutException.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -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
}

driver-core/src/main/java/com/datastax/driver/core/TransportException.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -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) {

0 commit comments

Comments
 (0)