common.core: No longer swallow exceptions in bbq
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Sun, 20 Mar 2016 20:47:08 +0000 (16:47 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Fri, 13 May 2016 14:53:10 +0000 (10:53 -0400)
IllegalStateExceptions now propagate the parent exceptions.

Change-Id: I0cfb47c19d4462a04b9a009e72b1df372736cc6f
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/68874
Reviewed-by: Hudson CI
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
common/org.eclipse.tracecompass.common.core/src/org/eclipse/tracecompass/common/core/collect/BufferedBlockingQueue.java

index 5797273adf5c0eca0af9419d010581fbcef60a24..21533fbaabb4570018e891897f101c3e45350b6f 100644 (file)
@@ -184,7 +184,7 @@ public class BufferedBlockingQueue<T> implements Iterable<T> {
             return element;
         } catch (InterruptedException e) {
             Activator.instance().logError("Buffered queue interrupted", e); //$NON-NLS-1$
-            throw new IllegalStateException();
+            throw new IllegalStateException(e);
         } finally {
             fOutputLock.unlock();
         }
@@ -219,7 +219,7 @@ public class BufferedBlockingQueue<T> implements Iterable<T> {
             return checkNotNull(fOutputBuffer.peek());
         } catch (InterruptedException e) {
             Activator.instance().logError("Buffered queue interrupted", e); //$NON-NLS-1$
-            throw new IllegalStateException();
+            throw new IllegalStateException(e);
         } finally {
             fOutputLock.unlock();
         }
This page took 0.0264 seconds and 5 git commands to generate.