geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject [08/12] geode git commit: [GEODE-2295] Add constructors for LocatorCancelException
Date Thu, 09 Feb 2017 23:34:42 GMT
[GEODE-2295] Add constructors for LocatorCancelException

and update one place where it's used.


Project: http://git-wip-us.apache.org/repos/asf/geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode/commit/ec245114
Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/ec245114
Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/ec245114

Branch: refs/heads/feature/GEODE-2456
Commit: ec2451147154320ccd4a0b0e3b687fd324783e6e
Parents: cd22911
Author: Galen O'Sullivan <gosullivan@pivotal.io>
Authored: Wed Jan 11 17:00:05 2017 -0800
Committer: Bruce Schuchardt <bschuchardt@pivotal.io>
Committed: Thu Feb 9 14:33:32 2017 -0800

----------------------------------------------------------------------
 .../internal/tcpserver/LocatorCancelException.java     | 13 ++++++++++++-
 .../distributed/internal/tcpserver/TcpClient.java      |  2 +-
 2 files changed, 13 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/ec245114/geode-core/src/main/java/org/apache/geode/distributed/internal/tcpserver/LocatorCancelException.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/tcpserver/LocatorCancelException.java
b/geode-core/src/main/java/org/apache/geode/distributed/internal/tcpserver/LocatorCancelException.java
index aec0fe6..1c07a87 100644
--- a/geode-core/src/main/java/org/apache/geode/distributed/internal/tcpserver/LocatorCancelException.java
+++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/tcpserver/LocatorCancelException.java
@@ -17,6 +17,17 @@ package org.apache.geode.distributed.internal.tcpserver;
 import org.apache.geode.CancelException;
 
 public class LocatorCancelException extends CancelException {
+  public LocatorCancelException(final String message) {
+    super(message);
+  }
 
-  public LocatorCancelException(final String s) {}
+  public LocatorCancelException(Throwable cause) {
+    super(cause);
+  }
+
+  public LocatorCancelException(String message, Throwable cause) {
+    super(message, cause);
+  }
+
+  public LocatorCancelException() {}
 }

http://git-wip-us.apache.org/repos/asf/geode/blob/ec245114/geode-core/src/main/java/org/apache/geode/distributed/internal/tcpserver/TcpClient.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/tcpserver/TcpClient.java
b/geode-core/src/main/java/org/apache/geode/distributed/internal/tcpserver/TcpClient.java
index 2e27f3d..47b5703 100644
--- a/geode-core/src/main/java/org/apache/geode/distributed/internal/tcpserver/TcpClient.java
+++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/tcpserver/TcpClient.java
@@ -265,7 +265,7 @@ public class TcpClient {
       sock = socketCreator.connect(ipAddr.getAddress(), ipAddr.getPort(), timeout, null,
false);
       sock.setSoTimeout(timeout);
     } catch (SSLHandshakeException e) {
-      throw new LocatorCancelException("Unrecognisable response received");
+      throw new LocatorCancelException("Unrecognisable response received", e);
     }
 
     try {


Mime
View raw message