BUG-731: Raw RuntimeExceptions should not be thrown
[bgpcep.git] / pcep / topology-provider-config / src / main / java / org / opendaylight / controller / config / yang / pcep / topology / provider / PCEPTopologyProviderModule.java
index 23ba7a702b9a029c8ee7c4ff77c55469f8f3f3ac..87d51e311efec5a4697de313ec79b9edf38e4f21 100644 (file)
@@ -144,7 +144,7 @@ org.opendaylight.controller.config.yang.pcep.topology.provider.AbstractPCEPTopol
                                                        getRpcRegistryDependency(), topology, getStatefulPluginDependency());
                } catch (InterruptedException | ExecutionException e) {
                        LOG.error("Failed to instantiate topology provider at {}", address, e);
-                       throw new RuntimeException("Failed to instantiate provider", e);
+                       throw new IllegalStateException("Failed to instantiate provider", e);
                }
        }
 }