Jonathan Hart
Committed by Gerrit Code Review

Catch and print Errors as well as exceptions in CoreEventDispatcher

Change-Id: I8c41404aba26ad9c09b9b1bdc2e31b8350b1924c
...@@ -124,7 +124,7 @@ public class CoreEventDispatcher extends DefaultEventSinkRegistry ...@@ -124,7 +124,7 @@ public class CoreEventDispatcher extends DefaultEventSinkRegistry
124 process(event); 124 process(event);
125 } catch (InterruptedException e) { 125 } catch (InterruptedException e) {
126 log.warn("Dispatch loop interrupted"); 126 log.warn("Dispatch loop interrupted");
127 - } catch (Exception e) { 127 + } catch (Exception | Error e) {
128 log.warn("Error encountered while dispatching event:", e); 128 log.warn("Error encountered while dispatching event:", e);
129 } 129 }
130 } 130 }
......