}
public TraceProfileAddReply addTraceConfig(TraceConfig traceConfig,
- final InstanceIdentifier<TraceConfig> id) throws Exception {
+ final InstanceIdentifier<TraceConfig> id) throws WriteFailedException {
TraceProfileAdd traceProfileAdd = new TraceProfileAdd();
traceProfileAdd.traceType = traceConfig.getTraceType().byteValue(); //trace type
}
public TraceProfileDelReply deleteTraceConfig(TraceConfig dataBefore,
- final InstanceIdentifier<TraceConfig> id) throws Exception {
+ final InstanceIdentifier<TraceConfig> id) throws WriteFailedException {
TraceProfileDel del = new TraceProfileDel();
/* Write to VPP */
String.valueOf(prefix)));
} catch (UnknownHostException e) {
throw new IllegalArgumentException(
- "Cannot create prefix for address[" + Arrays.toString(address) + "],prefix[" + prefix + "]");
+ "Cannot create prefix for address[" + Arrays.toString(address) + "],prefix[" + prefix + "]", e);
}
}
}
String.valueOf(prefix)));
} catch (UnknownHostException e) {
throw new IllegalArgumentException(
- "Cannot create prefix for address[" + Arrays.toString(address) + "],prefix[" + prefix + "]");
+ "Cannot create prefix for address[" + Arrays.toString(address) + "],prefix[" + prefix + "]", e);
}
}