[NETCONF-139] In BrokerFacade figure out and catch specific Netconf Runtime Exceptions Instead of generic RuntimeException during merge operations. Created: 03/Feb/16 Updated: 13/Aug/19 |
|
| Status: | Confirmed |
| Project: | netconf |
| Component/s: | restconf-nb |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Balaji Varadaraju | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 5197 |
| Description |
|
While fixing the issue where a Netconf device was unable to handle empty list merges, we are catching the generic RuntimeException in BrokerFacace.java since there was no clarity on all possible exceptions thrown from the underlying broker. This fixes the issue but it is better to understand the exceptions thrown by NETCONF and catch specific exceptions. Alternatively we can make the NETCONF broker to throw specific exception during merge operations and catch it. |
| Comments |
| Comment by Tomas Cere [ 03/Feb/16 ] |
|
Netconf throws NetconfDocumentedException from the editConfig() but it gets caught and indeed a RuntimeException is rethrown, so a specific exception would need to be added to the interface. |