diff options
author | Bruno Sakoto <bruno.sakoto@bell.ca> | 2021-03-12 19:21:55 -0500 |
---|---|---|
committer | Rishi Chail <rishi.chail@est.tech> | 2021-03-24 16:08:21 +0000 |
commit | 6f01b42f24d3d44febd09904d63d4afb43377cb5 (patch) | |
tree | fb14df6538e28df0bc538f816cc91943d4f6209c /cps-service/src | |
parent | 3f6f5b8eb76cbffd901917f69137045b5012cc1c (diff) |
Provide the reason why data is not compliant
Issue-ID: CPS-292
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: Ia58a8dfcf427e373b24bb3be7436abf6abd55492
Diffstat (limited to 'cps-service/src')
-rw-r--r-- | cps-service/src/main/java/org/onap/cps/utils/YangUtils.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cps-service/src/main/java/org/onap/cps/utils/YangUtils.java b/cps-service/src/main/java/org/onap/cps/utils/YangUtils.java index 873e14cd3a..6df973dc42 100644 --- a/cps-service/src/main/java/org/onap/cps/utils/YangUtils.java +++ b/cps-service/src/main/java/org/onap/cps/utils/YangUtils.java @@ -95,8 +95,8 @@ public class YangUtils { jsonParserStream.parse(jsonReader); } catch (final IOException | IllegalStateException | JsonSyntaxException exception) { - throw new DataValidationException("Failed to parse json data.", String - .format("Exception occurred on parsing string %s.", jsonData), exception); + throw new DataValidationException( + "Failed to parse json data: " + jsonData, exception.getMessage(), exception); } return normalizedNodeResult.getResult(); } |