Report checked exception in instance identifier writeout 55/107955/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 22 Sep 2023 23:33:03 +0000 (01:33 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 22 Sep 2023 23:48:41 +0000 (01:48 +0200)
commit1ca7a65e5458b997162fb7255d7cbc782ae28371
tree1e57abc699ebbb05b7696a2e82099610f589675d
parent64f229f79a1f3e0d725479d4c4b0c9cefe701faf
Report checked exception in instance identifier writeout

Both XML and JSON codecs are talking to a source of
IllegalArgumentExceptions. They should convert them to
XMLStreamException/IOException.

JIRA: YANGTOOLS-1542
Change-Id: Ia5ac633e37ed19c29d4593e2e886501c7baa59dd
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
codec/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/JSONInstanceIdentifierCodec.java
codec/yang-data-codec-gson/src/test/java/org/opendaylight/yangtools/yang/data/codec/gson/YT1473Test.java
codec/yang-data-codec-gson/src/test/java/org/opendaylight/yangtools/yang/data/codec/gson/YT1542Test.java [new file with mode: 0644]
codec/yang-data-codec-xml/src/main/java/org/opendaylight/yangtools/yang/data/codec/xml/XmlStringInstanceIdentifierCodec.java
codec/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/YT1542Test.java [new file with mode: 0644]