throw new RestconfDocumentedException("Input is required.", ErrorType.PROTOCOL, ErrorTag.MALFORMED_MESSAGE);
}
try {
- return broker.patchConfigurationDataWithinTransaction(context, controllerContext.getGlobalSchema());
- } catch (TransactionCommitFailedException e) {
+ return broker.patchConfigurationDataWithinTransaction(context);
+ } catch (Exception e) {
LOG.debug("Patch transaction failed", e);
throw new RestconfDocumentedException(e.getMessage());
}
throw new RestconfDocumentedException("Input is required.", ErrorType.PROTOCOL, ErrorTag.MALFORMED_MESSAGE);
}
try {
- return broker.patchConfigurationDataWithinTransaction(context, controllerContext.getGlobalSchema());
- } catch (TransactionCommitFailedException e) {
+ return broker.patchConfigurationDataWithinTransaction(context);
+ } catch (Exception e) {
LOG.debug("Patch transaction failed", e);
throw new RestconfDocumentedException(e.getMessage());
}