Bug 1586: Do not use JaxRS 2.0 unnecessarily
[controller.git] / 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 {