Madan Jampani

Include ConsistentMap name in Timeout exception message

Change-Id: Ibfdd898f98b59862f2ed0e7d201ed265c1dcd592
...@@ -225,7 +225,7 @@ public class DefaultConsistentMap<K, V> extends Synchronous<AsyncConsistentMap<K ...@@ -225,7 +225,7 @@ public class DefaultConsistentMap<K, V> extends Synchronous<AsyncConsistentMap<K
225 Thread.currentThread().interrupt(); 225 Thread.currentThread().interrupt();
226 throw new ConsistentMapException.Interrupted(); 226 throw new ConsistentMapException.Interrupted();
227 } catch (TimeoutException e) { 227 } catch (TimeoutException e) {
228 - throw new ConsistentMapException.Timeout(); 228 + throw new ConsistentMapException.Timeout(name());
229 } catch (ExecutionException e) { 229 } catch (ExecutionException e) {
230 Throwables.propagateIfPossible(e.getCause()); 230 Throwables.propagateIfPossible(e.getCause());
231 throw new ConsistentMapException(e.getCause()); 231 throw new ConsistentMapException(e.getCause());
......
...@@ -36,6 +36,13 @@ public class ConsistentMapException extends StorageException { ...@@ -36,6 +36,13 @@ public class ConsistentMapException extends StorageException {
36 * ConsistentMap operation timeout. 36 * ConsistentMap operation timeout.
37 */ 37 */
38 public static class Timeout extends ConsistentMapException { 38 public static class Timeout extends ConsistentMapException {
39 + public Timeout() {
40 + super();
41 + }
42 +
43 + public Timeout(String message) {
44 + super(message);
45 + }
39 } 46 }
40 47
41 /** 48 /**
......