Merge "Bug 1586: Do not use JaxRS 2.0 unnecessarily"
authorEd Warnicke <eaw@cisco.com>
Thu, 21 Aug 2014 14:38:56 +0000 (14:38 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 21 Aug 2014 14:38:56 +0000 (14:38 +0000)
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/RestconfDocumentedException.java

index 2ceef3203c808df7414a43a2292f19d7730f8685..bfa987ab8d4292e08da2cfd75ee5c9b7c0abd898 100644 (file)
@@ -87,7 +87,9 @@ public class RestconfDocumentedException extends WebApplicationException {
      * Constructs an instance with the given errors.
      */
     public RestconfDocumentedException(String message, Throwable cause, List<RestconfError> 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 {