Sonar issue fix: generic exception
[bgpcep.git] / pcep / impl / src / main / java / org / opendaylight / protocol / pcep / impl / PCEPSessionImpl.java
index f415d15a6bab0d50ae2b0559cef8c4aecdb375df..c68cbf316f40c138b1e35128d8fd2f58dd22779a 100644 (file)
@@ -394,8 +394,8 @@ public class PCEPSessionImpl extends SimpleChannelInboundHandler<Message> implem
 
         try {
             super.channelInactive(ctx);
-        } catch (Exception e) {
-            throw new RuntimeException("Failed to delegate channel inactive event on channel " + ctx.channel(), e);
+        } catch (final Exception e) {
+            throw new IllegalStateException("Failed to delegate channel inactive event on channel " + ctx.channel(), e);
         }
     }