X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-rest-connector%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Frestconf%2Fimpl%2FRestconfDocumentedException.java;h=bfa987ab8d4292e08da2cfd75ee5c9b7c0abd898;hb=e8ee8a8897013fb90376e21ccd9fc54a98a8c251;hp=2ceef3203c808df7414a43a2292f19d7730f8685;hpb=d206d27042eef2185c875f85cf6eac61a1bd77c4;p=controller.git diff --git a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/RestconfDocumentedException.java b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/RestconfDocumentedException.java index 2ceef3203c..bfa987ab8d 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/RestconfDocumentedException.java +++ b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/RestconfDocumentedException.java @@ -87,7 +87,9 @@ public class RestconfDocumentedException extends WebApplicationException { * Constructs an instance with the given errors. */ public RestconfDocumentedException(String message, Throwable cause, List errors) { - super(message, cause); + // FIXME: We override getMessage so supplied message is lost for any public access + // this was lost also in original code. + super(cause); if(!errors.isEmpty()) { this.errors = ImmutableList.copyOf(errors); } else {