Propagate cause in OperationFailedException
[yangtools.git] / yang / yang-common / src / main / java / org / opendaylight / yangtools / yang / common / OperationFailedException.java
index dc4705326447cbb49b66409c47e424f8323ccfa0..289901397fff396ff0511f48ffd3adc771982747 100644 (file)
@@ -96,7 +96,7 @@ public class OperationFailedException extends Exception {
      * @param errors {@link RpcError} instances that provide additional error information about this exception
      */
     public OperationFailedException(final String message, final Throwable cause, final RpcError... errors) {
-        this(message, null, Arrays.asList(errors));
+        this(message, cause, Arrays.asList(errors));
     }
 
     /**