commit | b68919e831c493e06c173887a50ca95dd612e144 | [log] [tgz] |
---|---|---|
author | Jonathan Hart <jono@onlab.us> | Fri Feb 05 15:22:36 2016 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Fri Feb 05 23:47:40 2016 +0000 |
tree | 650ae2ab46ddbf78a2d5f375c520e3f2dbdc185e | |
parent | 85060ace94788c6e19b7111adfb87e1305d3697f [diff] |
Catch and print Errors as well as exceptions in CoreEventDispatcher Change-Id: I8c41404aba26ad9c09b9b1bdc2e31b8350b1924c
diff --git a/core/net/src/main/java/org/onosproject/event/impl/CoreEventDispatcher.java b/core/net/src/main/java/org/onosproject/event/impl/CoreEventDispatcher.java index 79ce74b..e63ecdf 100644 --- a/core/net/src/main/java/org/onosproject/event/impl/CoreEventDispatcher.java +++ b/core/net/src/main/java/org/onosproject/event/impl/CoreEventDispatcher.java
@@ -124,7 +124,7 @@ process(event); } catch (InterruptedException e) { log.warn("Dispatch loop interrupted"); - } catch (Exception e) { + } catch (Exception | Error e) { log.warn("Error encountered while dispatching event:", e); } }