X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=restconf%2Frestconf-nb-rfc8040%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Frestconf%2Fnb%2Frfc8040%2Fjersey%2Fproviders%2Ferrors%2FRestconfDocumentedExceptionMapper.java;h=9f6619c897938fd91f15f53d72a4df33cb0bb14f;hb=0cc245d37ebbe6d9d5933bcb0034a1ed9c5b093a;hp=60aeaba84371abd1818c7afe322eeb4bf48d4753;hpb=276fb1df2ffee67a9ee7fb5e7c9a78d1cb62bdc8;p=netconf.git diff --git a/restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/errors/RestconfDocumentedExceptionMapper.java b/restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/errors/RestconfDocumentedExceptionMapper.java index 60aeaba843..9f6619c897 100644 --- a/restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/errors/RestconfDocumentedExceptionMapper.java +++ b/restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/errors/RestconfDocumentedExceptionMapper.java @@ -144,7 +144,7 @@ public final class RestconfDocumentedExceptionMapper implements ExceptionMapper< final DataContainerNodeBuilder entryBuilder = ImmutableUnkeyedListEntryNodeBuilder.create() .withNodeIdentifier(NodeIdentifier.create(Error.QNAME)) - .withChild(ImmutableNodes.leafNode(ERROR_TYPE_QNAME, restconfError.getErrorType().getErrorTypeTag())) + .withChild(ImmutableNodes.leafNode(ERROR_TYPE_QNAME, restconfError.getErrorType().elementBody())) .withChild(ImmutableNodes.leafNode(ERROR_TAG_QNAME, restconfError.getErrorTag().getTagValue())); // filling in optional fields