Remove DocumentedException.ErrorType
[netconf.git] / restconf / restconf-nb-rfc8040 / src / main / java / org / opendaylight / restconf / nb / rfc8040 / rests / utils / FutureCallbackTx.java
index fddf1a78eb2b8dc2ce16807151c6b48a7f98d8af..1e0697b46fd98508c64c385c5256b8c37874f6f7 100644 (file)
@@ -120,7 +120,7 @@ final class FutureCallbackTx {
                     if (error instanceof NetconfDocumentedException) {
                         throw new RestconfDocumentedException(error.getMessage(),
                                 RestconfError.ErrorType.valueOfCaseInsensitive(
-                                        ((NetconfDocumentedException) error).getErrorType().getTypeValue()),
+                                        ((NetconfDocumentedException) error).getErrorType().elementBody()),
                                 RestconfError.ErrorTag.valueOfCaseInsensitive(
                                         ((NetconfDocumentedException) error).getErrorTag().getTagValue()), e);
                     }