Details
-
Improvement
-
Status: Resolved
-
Medium
-
Resolution: Done
-
None
Description
If a request is made to display a YANG model that is not loaded or if the request contains a typo, YangLib returns a 500 error instead of a useful response.
The YangLibProvider handles this scenario by throwing an IllegalStateException with a message. This exception can be used in a way that results in a correct response.
Attachments
| # | Subject | Branch | Project | Status | CR | V |
|---|---|---|---|---|---|---|
| 105867,8 | Refactor exception handling | master | netconf | Status: MERGED | +2 | +1 |
| 106300,7 | Throw NotFoundException on MissingSchemaSource | master | netconf | Status: MERGED | +2 | +1 |
| 106301,5 | Refactor schema retrieval exception messages | master | netconf | Status: MERGED | +2 | +1 |