Add YangNetconfError 83/96883/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 14 Jul 2021 09:05:58 +0000 (11:05 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 14 Jul 2021 09:08:11 +0000 (11:08 +0200)
commitb515240f20addcf26e503f606fc00aec9c4cf96e
tree52d613d344ebb11428d0d782252687c6e1482922
parent5ac768bf89419c1398de34904d16df3eeef37fdd
Add YangNetconfError

This is a yang-data-api specialization of a well-known RFC4741/6020
construct, which we have tried to model in yang.common.RpcError and
then via yang.common.YangError.

Unlike YangError, which is directly glued to exceptions,
YangNetconfError has a builder-based immutable implementation, which can
be attached to other objects via YangNetconfErrorAware.

JIRA: YANGTOOLS-1305
Change-Id: I7aa1b587ea74c552996b62514861b4b8b262361e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
data/yang-data-api/pom.xml
data/yang-data-api/src/main/java/module-info.java
data/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/YangNetconfError.java [new file with mode: 0644]
data/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/YangNetconfErrorAware.java [new file with mode: 0644]