[NETCONF-333] Moving ErrorTag from RestconfError.java to a common module? Created: 04/Jan/17 Updated: 15/Mar/19 Resolved: 12/Oct/17 |
|
| Status: | Resolved |
| Project: | netconf |
| Component/s: | restconf-nb |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Harinath Mallepally | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 7482 |
| Description |
|
Hi, I think moving ErrorTag enum from RestconfError.java to its own class and making it avaialble for applications that will try to use it, will be a good idea. Right now I needed to duplicate this enum in order to use it. Thanks |
| Comments |
| Comment by Martin Ciglan [ 05/Jan/17 ] |
|
Hi ErrorTag is public, so you can use it in a same way as ErrorType. examples: |
| Comment by Harinath Mallepally [ 05/Jan/17 ] |
|
I had difficulty in making it work in my module. I think it was with dependency. When I added sal-rest-connector as dependency to my module it didn't come up so I needed to duplicate this enum. should it work with this dependency? I can try again. |
| Comment by Harinath Mallepally [ 05/Jan/17 ] |
|
I meant, the karaf did come up by my feature didnt load successfully. |
| Comment by Tomas Cere [ 12/Oct/17 ] |
|
RestconfError is located in restconf-commons so you need to import this module to have access to this class. |
| Comment by Tomas Cere [ 12/Oct/17 ] |
|
(In reply to Tomas Cere from comment #4) Correction, it's restconf-common |