mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-16 01:41:26 +02:00
Catch Exceptions, not Throwable to remove blockers found in SonarQube
Change-Id: I49ab731ce0c9950b55063e2afa4ce9226a7b6b4a
This commit is contained in:
parent
3fa9e8d8d5
commit
24a00d9b0b
@ -400,7 +400,7 @@ public class FlowRuleManager
|
||||
extraneousFlow(rule);
|
||||
}
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
} catch (Exception e) {
|
||||
log.debug("Can't process added or extra rule {}", e.getMessage());
|
||||
continue;
|
||||
}
|
||||
@ -409,7 +409,7 @@ public class FlowRuleManager
|
||||
try {
|
||||
// there are rules in the store that aren't on the switch
|
||||
flowMissing(rule);
|
||||
} catch (Throwable e) {
|
||||
} catch (Exception e) {
|
||||
log.debug("Can't add missing flow rule {}", e.getMessage());
|
||||
continue;
|
||||
}
|
||||
|
@ -102,8 +102,8 @@ public class NettyMessagingManager implements MessagingService {
|
||||
serverChannelClass = EpollServerSocketChannel.class;
|
||||
clientChannelClass = EpollSocketChannel.class;
|
||||
return;
|
||||
} catch (Throwable t) {
|
||||
log.warn("Failed to initialize native (epoll) transport. Reason: {}. Proceeding with nio.", t.getMessage());
|
||||
} catch (Exception e) {
|
||||
log.warn("Failed to initialize native (epoll) transport. Reason: {}. Proceeding with nio.", e.getMessage());
|
||||
}
|
||||
clientGroup = new NioEventLoopGroup();
|
||||
serverGroup = new NioEventLoopGroup();
|
||||
|
@ -103,7 +103,7 @@ public abstract class SelectorLoop implements Runnable {
|
||||
state = State.STARTING;
|
||||
try {
|
||||
loop();
|
||||
} catch (Throwable e) {
|
||||
} catch (Exception e) {
|
||||
error = e;
|
||||
log.error("Loop aborted", e);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user